1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-12-22 12:31:06 +01:00

feat: gregify trapdoor recipes

This commit is contained in:
Jozef Steinhübl 2024-06-22 21:59:23 +02:00
parent b0d8869d41
commit dff9c3cf10
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
11 changed files with 167 additions and 0 deletions

View file

@ -0,0 +1,16 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"ad_astra:aeronos_trapdoor",
"ad_astra:strophar_trapdoor",
"ad_astra:glacian_trapdoor",
].forEach((d) => gregifyTrapdoorRecipe(event, "<identifier>:<name>", d));
gregifyTrapdoorRecipe(
event,
"<identifier>:<name>",
"ad_astra:steel_trapdoor",
["gtceu:steel_plate", "#forge:rods/steel"]
);
});

View file

@ -0,0 +1,9 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyTrapdoorRecipe(
event,
"<identifier>:<name>",
"aether:skyroot_trapdoor"
);
});

View file

@ -53,3 +53,23 @@ function gregifyDoorRecipe(event, recipePattern, id, materials) {
B: "#forge:tools/saws",
});
}
function gregifyTrapdoorRecipe(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}_slab`);
event.shaped(Item.of(id, 1), ["WSW", "SSS", "WSW"], {
W: materials[0],
S: materials[1] || "minecraft:stick",
});
}

View file

@ -0,0 +1,14 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyTrapdoorRecipe(event, "<identifier>:<name>", "meadow:pine_trapdoor", [
"meadow:pine_planks",
]);
gregifyTrapdoorRecipe(
event,
"<identifier>:<name>",
"meadow:pine_barn_trapdoor",
["meadow:pine_slab"]
);
});

View file

@ -0,0 +1,26 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"minecraft:oak_trapdoor",
"minecraft:spruce_trapdoor",
"minecraft:birch_trapdoor",
"minecraft:jungle_trapdoor",
"minecraft:acacia_trapdoor",
"minecraft:dark_oak_trapdoor",
"minecraft:mangrove_trapdoor",
"minecraft:cherry_trapdoor",
"minecraft:bamboo_trapdoor",
"minecraft:crimson_trapdoor",
"minecraft:warped_trapdoor",
].forEach((d) => gregifyTrapdoorRecipe(event, "<identifier>:<name>", d));
gregifyTrapdoorRecipe(
event,
"<identifier>:<name>",
"minecraft:iron_trapdoor",
["gtceu:iron_plate", "#forge:rods/iron"]
);
event.remove({ id: "regions_unexplored:oak_trapdoor" });
});

View file

@ -0,0 +1,16 @@
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"quark:ancient_trapdoor",
"quark:azalea_trapdoor",
"quark:blossom_trapdoor",
].forEach((d) =>
gregifyTrapdoorRecipe(
event,
"quark:world/crafting/woodsets/<type>/trapdoor",
d,
[`quark:${idToType(d)}_planks_slab`]
)
);
});

View file

@ -0,0 +1,28 @@
// Modifies the recipes for doors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
[
"regions_unexplored:baobab_trapdoor",
"regions_unexplored:blackwood_trapdoor",
"regions_unexplored:blue_bioshroom_trapdoor",
"regions_unexplored:brimwood_trapdoor",
"regions_unexplored:cobalt_trapdoor",
"regions_unexplored:cypress_trapdoor",
"regions_unexplored:dead_trapdoor",
"regions_unexplored:eucalyptus_trapdoor",
"regions_unexplored:green_bioshroom_trapdoor",
"regions_unexplored:joshua_trapdoor",
"regions_unexplored:kapok_trapdoor",
"regions_unexplored:larch_trapdoor",
"regions_unexplored:magnolia_trapdoor",
"regions_unexplored:maple_trapdoor",
"regions_unexplored:mauve_trapdoor",
"regions_unexplored:palm_trapdoor",
"regions_unexplored:pine_trapdoor",
"regions_unexplored:pink_bioshroom_trapdoor",
"regions_unexplored:redwood_trapdoor",
"regions_unexplored:socotra_trapdoor",
"regions_unexplored:willow_trapdoor",
"regions_unexplored:yellow_bioshroom_trapdoor",
].forEach((d) => gregifyTrapdoorRecipe(event, "<identifier>:<name>", d));
});

View file

@ -0,0 +1,10 @@
// Modifies the recipes for doors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyTrapdoorRecipe(
event,
"<identifier>:<name>",
"snowyspirit:gingerbread_trapdoor",
["#snowyspirit:gingerbreads"]
);
});

View file

@ -0,0 +1,10 @@
// Modifies the recipes for doors to match the Gregified Integrations recipes
ServerEvents.recipes((event) => {
gregifyTrapdoorRecipe(
event,
"<identifier>:<name>",
"supplementaries:gold_trapdoor",
["gtceu:gold_plate", "#forge:rods/gold"]
);
});

View file

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

View file

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