1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-11-10 01:58:06 +01:00
aetheria/packwiz/1.20.1/kubejs/server_scripts/minecraft/buttons.js

27 lines
830 B
JavaScript
Executable file
Vendored

// Modifies the recipes for buttons to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"minecraft:oak_button",
"minecraft:spruce_button",
"minecraft:birch_button",
"minecraft:jungle_button",
"minecraft:acacia_button",
"minecraft:dark_oak_button",
"minecraft:mangrove_button",
"minecraft:cherry_button",
"minecraft:bamboo_button",
"minecraft:crimson_button",
"minecraft:warped_button",
].forEach((d) => gregifyButtonRecipe(event, "<identifier>:<name>", d));
["minecraft:stone_button", "minecraft:polished_blackstone_button"].forEach(
(d) =>
gregifyButtonRecipe(event, "<identifier>:<name>", d, [
`minecraft:${idToType(d)}`,
"#forge:tools/hammers",
])
);
event.remove({ id: "regions_unexplored:oak_button" });
});