1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-12-23 04:51:07 +01:00
aetheria/packwiz/1.20.1/kubejs/server_scripts/minecraft/boats.js

25 lines
880 B
JavaScript
Executable file
Vendored

// Modifies the recipes for boats to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
const boats = [
"minecraft:oak_boat", // allow only wooden shovel
"minecraft:spruce_boat", // allow only wooden shovel
"minecraft:birch_boat", // allow only wooden shovel
"minecraft:jungle_boat", // allow only wooden shovel
"minecraft:acacia_boat", // allow only wooden shovel
"minecraft:dark_oak_boat", // allow only wooden shovel
"minecraft:mangrove_boat", // allow only wooden shovel
"minecraft:cherry_boat", // allow only wooden shovel
];
boats.forEach((id) => {
gregifyBoatRecipe(event, "<identifier>:<name>", id);
event.remove({ id: `gtceu:shaped/${id.split(":")[1]}` });
event.remove({
id: `quark:tweaks/crafting/utility/chest_boat/direct_${idToType(
id
)}_chest_boat`,
});
});
});