1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-11-25 16:21:06 +01:00

feat: gregify button recipes

This commit is contained in:
Jozef Steinhübl 2024-06-23 21:46:51 +02:00
parent 799073db4a
commit 292b7c1a30
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
10 changed files with 146 additions and 0 deletions

View file

@ -0,0 +1,20 @@
// Modifies the recipes for buttons to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
["ad_astra:glacian_button"].forEach((d) =>
gregifyButtonRecipe(event, "<identifier>:<name>", d)
);
[
"ad_astra:iron_plating_button",
"ad_astra:steel_plating_button",
"ad_astra:desh_plating_button",
"ad_astra:ostrum_plating_button",
"ad_astra:calorite_plating_button",
].forEach((d) =>
gregifyButtonRecipe(event, "<identifier>:<name>", d, [
`ad_astra:${idToType(d)}`,
"#forge:tools/hammers",
])
);
});

View file

@ -0,0 +1,10 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyButtonRecipe(event, "<identifier>:<name>", "aether:skyroot_button");
gregifyButtonRecipe(event, "<identifier>:<name>", "aether:holystone_button", [
`aether:holystone`,
"#forge:tools/hammers",
]);
});

View file

@ -73,3 +73,23 @@ function gregifyTrapdoorRecipe(event, recipePattern, id, materials) {
S: materials[1] || "minecraft:stick",
});
}
function gregifyButtonRecipe(event, recipePattern, id, materials) {
const [identifier, name] = id.split(":");
const type = idToType(id);
event.remove({
id: recipePattern
.replace("<identifier>", identifier)
.replace("<name>", name)
.replace("<type>", type),
});
if (!materials) materials = [];
if (materials.length === 0) materials.push(`${identifier}:${type}_planks`);
event.shaped(Item.of(id, 6), [" ", "SW ", " "], {
W: materials[0],
S: materials[1] || "#forge:tools/saws",
});
}

View file

@ -0,0 +1,7 @@
// Modifies the recipes for buttons to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
["gtceu:rubber_button", "gtceu:treated_wood_button"].forEach((d) =>
gregifyButtonRecipe(event, "<identifier>:shapeless/<name>", d)
);
});

View file

@ -0,0 +1,5 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyButtonRecipe(event, "<identifier>:<name>", "meadow:pine_button");
});

View file

@ -0,0 +1,27 @@
// 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" });
});

View file

@ -0,0 +1,11 @@
// Modifies the recipes for buttons to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"quark:ancient_button",
"quark:azalea_button",
"quark:blossom_button",
].forEach((d) =>
gregifyButtonRecipe(event, "quark:world/crafting/woodsets/<type>/button", d)
);
});

View file

@ -0,0 +1,28 @@
// Modifies the recipes for buttons to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"regions_unexplored:baobab_button",
"regions_unexplored:blackwood_button",
"regions_unexplored:blue_bioshroom_button",
"regions_unexplored:brimwood_button",
"regions_unexplored:cobalt_button",
"regions_unexplored:cypress_button",
"regions_unexplored:dead_button",
"regions_unexplored:eucalyptus_button",
"regions_unexplored:green_bioshroom_button",
"regions_unexplored:joshua_button",
"regions_unexplored:kapok_button",
"regions_unexplored:larch_button",
"regions_unexplored:magnolia_button",
"regions_unexplored:maple_button",
"regions_unexplored:mauve_button",
"regions_unexplored:palm_button",
"regions_unexplored:pine_button",
"regions_unexplored:pink_bioshroom_button",
"regions_unexplored:redwood_button",
"regions_unexplored:socotra_button",
"regions_unexplored:willow_button",
"regions_unexplored:yellow_bioshroom_button",
].forEach((d) => gregifyButtonRecipe(event, "<identifier>:<name>", d));
});

View file

@ -0,0 +1,9 @@
// Modifies the recipes for doors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyButtonRecipe(
event,
"<identifier>:<name>",
"thermal:rubberwood_button"
);
});

View file

@ -0,0 +1,9 @@
// Modifies the recipes for doors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyButtonRecipe(
event,
"<identifier>:<name>",
"vinery:dark_cherry_button"
);
});