mirror of
https://github.com/xHyroM/aetheria.git
synced 2024-11-09 17:58:05 +01:00
feat: gregify trapdoor recipes
This commit is contained in:
parent
b0d8869d41
commit
dff9c3cf10
11 changed files with 167 additions and 0 deletions
16
packwiz/1.20.1/kubejs/server_scripts/ad_astra/trapdoor.js
vendored
Executable file
16
packwiz/1.20.1/kubejs/server_scripts/ad_astra/trapdoor.js
vendored
Executable 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"]
|
||||||
|
);
|
||||||
|
});
|
9
packwiz/1.20.1/kubejs/server_scripts/aether/trapdoor.js
vendored
Executable file
9
packwiz/1.20.1/kubejs/server_scripts/aether/trapdoor.js
vendored
Executable 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"
|
||||||
|
);
|
||||||
|
});
|
|
@ -53,3 +53,23 @@ function gregifyDoorRecipe(event, recipePattern, id, materials) {
|
||||||
B: "#forge:tools/saws",
|
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",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
14
packwiz/1.20.1/kubejs/server_scripts/meadow/trapdoor.js
vendored
Executable file
14
packwiz/1.20.1/kubejs/server_scripts/meadow/trapdoor.js
vendored
Executable 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"]
|
||||||
|
);
|
||||||
|
});
|
26
packwiz/1.20.1/kubejs/server_scripts/minecraft/trapdoor.js
vendored
Executable file
26
packwiz/1.20.1/kubejs/server_scripts/minecraft/trapdoor.js
vendored
Executable 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" });
|
||||||
|
});
|
16
packwiz/1.20.1/kubejs/server_scripts/quark/trapdoor.js
vendored
Executable file
16
packwiz/1.20.1/kubejs/server_scripts/quark/trapdoor.js
vendored
Executable 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`]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
});
|
28
packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/trapdoor.js
vendored
Executable file
28
packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/trapdoor.js
vendored
Executable 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));
|
||||||
|
});
|
10
packwiz/1.20.1/kubejs/server_scripts/snowyspirit/trapdoor.js
vendored
Executable file
10
packwiz/1.20.1/kubejs/server_scripts/snowyspirit/trapdoor.js
vendored
Executable 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"]
|
||||||
|
);
|
||||||
|
});
|
10
packwiz/1.20.1/kubejs/server_scripts/supplementaries/trapdoor.js
vendored
Executable file
10
packwiz/1.20.1/kubejs/server_scripts/supplementaries/trapdoor.js
vendored
Executable 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"]
|
||||||
|
);
|
||||||
|
});
|
9
packwiz/1.20.1/kubejs/server_scripts/thermal/trapdoor.js
vendored
Executable file
9
packwiz/1.20.1/kubejs/server_scripts/thermal/trapdoor.js
vendored
Executable 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"
|
||||||
|
);
|
||||||
|
});
|
9
packwiz/1.20.1/kubejs/server_scripts/vinery/trapdoor.js
vendored
Executable file
9
packwiz/1.20.1/kubejs/server_scripts/vinery/trapdoor.js
vendored
Executable 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"
|
||||||
|
);
|
||||||
|
});
|
Loading…
Reference in a new issue