Recipe tweaks, unify with Custom Elytra

This commit is contained in:
oitsjustjose 2022-01-18 22:29:45 -06:00
commit e3a2fd1de4
10 changed files with 781 additions and 10 deletions

View file

@ -0,0 +1,22 @@
// priority: 1024
onEvent("server.datapack.first", (_) => {
global.minecraftColors = [
"white",
"orange",
"magenta",
"light_blue",
"yellow",
"lime",
"pink",
"gray",
"light_gray",
"cyan",
"purple",
"blue",
"brown",
"green",
"red",
"black",
];
});

View file

@ -526,4 +526,12 @@ onEvent("recipes", (event) => {
multiservoPress(event);
stonecutter(event);
woodcutter(event);
global.minecraftColors.forEach((color) => {
event.smithing(
`storage_overhaul:${color}_shulker_box`,
`minecraft:${color}_shulker_box`,
"#forge:ingots/iron"
);
});
});

View file

@ -0,0 +1,59 @@
onEvent("recipes", (event) => {
event.remove({ input: "minecraft:elytra" });
event.remove({ id: "alexsmobs:tarantula_hawk_elytra" });
event.remove({ input: "customizableelytra:elytra_wing" });
event.remove({ id: "customizableelytra:elytra_wing" });
event.remove({ id: "customizableelytra:elytra_wing_vanilla" });
// Mekanism HDPE Elytra
event.custom({
type: "mekanism:mek_data",
result: { item: "mekanism:hdpe_elytra" },
pattern: ["AHA", "HPH", "H H"],
key: {
A: { tag: "mekanism:alloys/atomic" },
H: { item: "mekanism:hdpe_sheet" },
P: { tag: "forge:elytra" },
},
});
// Quark Elytra duplication via Dragon Scale
event
.shapeless("customizableelytra:customizable_elytra", [
"customizableelytra:customizable_elytra",
"quark:dragon_scale",
])
.keepIngredient("customizableelytra:customizable_elytra");
// Tarantula Hawk Elytra
event.shaped("alexsmobs:tarantula_hawk_elytra", ["WEW"], {
W: "alexsmobs:tarantula_hawk_wing",
E: "#forge:elytra",
});
// Tconstruct Slimelytra
event.custom({
type: "tconstruct:casting_basin",
cast: {
tag: "forge:elytra",
},
cast_consumed: true,
fluid: {
tag: "tconstruct:ender_slime",
amount: 8000,
},
result: "tconstruct:slime_chestplate",
cooling_time: 237,
});
});
/* Replaces all thrown elytra with CE Elytra */
onEvent("entity.spawned", (event) => {
if (event.getEntity().getType() === "minecraft:item") {
const itemEntity = event.getEntity();
if (itemEntity.getItem().getId() === "minecraft:elytra") {
itemEntity.setItem(Item.of("customizableelytra:customizable_elytra"));
}
}
});