backpacks now keep inventory on crafting
DreamMasterXXL - Idiots! Do not upgrade your backpack with important stuff inside! nah jk my bad
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
ServerEvents.recipes((event) => {
|
ServerEvents.recipes((event) => {
|
||||||
// Regular Backpack
|
|
||||||
event.remove({ id: "sophisticatedbackpacks:backpack" });
|
event.remove({ id: "sophisticatedbackpacks:backpack" });
|
||||||
|
event.remove({ id: "sophisticatedbackpacks:iron_backpack" });
|
||||||
|
event.remove({ id: "sophisticatedbackpacks:gold_backpack" });
|
||||||
|
event.remove({ id: "sophisticatedbackpacks:diamond_backpack" });
|
||||||
|
event.remove({ id: "sophisticatedbackpacks:netherite_backpack" });
|
||||||
|
|
||||||
event.shaped("sophisticatedbackpacks:backpack", ["SLS", "LBL", "FPF"], {
|
event.shaped("sophisticatedbackpacks:backpack", ["SLS", "LBL", "FPF"], {
|
||||||
S: "#forge:screws/wrought_iron",
|
S: "#forge:screws/wrought_iron",
|
||||||
L: "minecraft:leather",
|
L: "minecraft:leather",
|
||||||
@@ -9,51 +13,82 @@ ServerEvents.recipes((event) => {
|
|||||||
P: "#forge:plates/red_alloy",
|
P: "#forge:plates/red_alloy",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Iron
|
event.custom({
|
||||||
event.remove({ id: "sophisticatedbackpacks:iron_backpack" });
|
type: "sophisticatedbackpacks:backpack_upgrade",
|
||||||
event.shaped("sophisticatedbackpacks:iron_backpack", ["SLS", "LBL", "FPF"], {
|
conditions: [
|
||||||
S: "#forge:screws/bronze",
|
{
|
||||||
L: "minecraft:leather",
|
itemRegistryName: "iron_backpack",
|
||||||
B: "sophisticatedbackpacks:backpack",
|
type: "sophisticatedbackpacks:item_enabled",
|
||||||
F: "minecraft:string",
|
},
|
||||||
P: "#forge:plates/invar",
|
],
|
||||||
|
pattern: ["SLS", "LBL", "FPF"],
|
||||||
|
key: {
|
||||||
|
S: { tag: "forge:screws/bronze" },
|
||||||
|
L: { item: "minecraft:leather" },
|
||||||
|
B: { item: "sophisticatedbackpacks:backpack" },
|
||||||
|
F: { item: "minecraft:string" },
|
||||||
|
P: { tag: "forge:plates/invar" },
|
||||||
|
},
|
||||||
|
result: { item: "sophisticatedbackpacks:iron_backpack" },
|
||||||
});
|
});
|
||||||
|
|
||||||
// Gold
|
|
||||||
event.remove({ id: "sophisticatedbackpacks:gold_backpack" });
|
event.remove({ id: "sophisticatedbackpacks:gold_backpack" });
|
||||||
event.shaped("sophisticatedbackpacks:gold_backpack", ["SLS", "LBL", "FPF"], {
|
event.custom({
|
||||||
S: "#forge:screws/steel",
|
type: "sophisticatedbackpacks:backpack_upgrade",
|
||||||
L: "minecraft:leather",
|
conditions: [
|
||||||
B: "sophisticatedbackpacks:iron_backpack",
|
{
|
||||||
F: "minecraft:string",
|
itemRegistryName: "gold_backpack",
|
||||||
P: "#forge:plates/rose_gold",
|
type: "sophisticatedbackpacks:item_enabled",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
pattern: ["SLS", "LBL", "FPF"],
|
||||||
|
key: {
|
||||||
|
S: { tag: "forge:screws/steel" },
|
||||||
|
L: { item: "minecraft:leather" },
|
||||||
|
B: { item: "sophisticatedbackpacks:iron_backpack" },
|
||||||
|
F: { item: "minecraft:string" },
|
||||||
|
P: { tag: "forge:plates/rose_gold" },
|
||||||
|
},
|
||||||
|
result: { item: "sophisticatedbackpacks:gold_backpack" },
|
||||||
});
|
});
|
||||||
|
|
||||||
// Diamond
|
|
||||||
event.remove({ id: "sophisticatedbackpacks:diamond_backpack" });
|
event.remove({ id: "sophisticatedbackpacks:diamond_backpack" });
|
||||||
event.shaped(
|
event.custom({
|
||||||
"sophisticatedbackpacks:diamond_backpack",
|
type: "sophisticatedbackpacks:backpack_upgrade",
|
||||||
["SLS", "LBL", "FPF"],
|
conditions: [
|
||||||
{
|
{
|
||||||
S: "#forge:screws/aluminium",
|
itemRegistryName: "diamond_backpack",
|
||||||
L: "minecraft:leather",
|
type: "sophisticatedbackpacks:item_enabled",
|
||||||
B: "sophisticatedbackpacks:gold_backpack",
|
},
|
||||||
F: "gtceu:carbon_fibers",
|
],
|
||||||
P: "#forge:plates/blue_alloy",
|
pattern: ["SLS", "LBL", "FPF"],
|
||||||
}
|
key: {
|
||||||
);
|
S: { tag: "forge:screws/aluminium" },
|
||||||
|
L: { item: "minecraft:leather" },
|
||||||
|
B: { item: "sophisticatedbackpacks:gold_backpack" },
|
||||||
|
F: { item: "gtceu:carbon_fibers" },
|
||||||
|
P: { tag: "forge:plates/blue_alloy" },
|
||||||
|
},
|
||||||
|
result: { item: "sophisticatedbackpacks:diamond_backpack" },
|
||||||
|
});
|
||||||
|
|
||||||
// Netherite
|
|
||||||
event.remove({ id: "sophisticatedbackpacks:netherite_backpack" });
|
event.remove({ id: "sophisticatedbackpacks:netherite_backpack" });
|
||||||
event.shaped(
|
event.custom({
|
||||||
"sophisticatedbackpacks:netherite_backpack",
|
type: "sophisticatedbackpacks:backpack_upgrade",
|
||||||
["SLS", "LBL", "FPF"],
|
conditions: [
|
||||||
{
|
{
|
||||||
S: "#forge:screws/stainless_steel",
|
itemRegistryName: "netherite_backpack",
|
||||||
L: "minecraft:leather",
|
type: "sophisticatedbackpacks:item_enabled",
|
||||||
B: "sophisticatedbackpacks:diamond_backpack",
|
},
|
||||||
F: "gtceu:carbon_fibers",
|
],
|
||||||
P: "#forge:plates/polytetrafluoroethylene",
|
pattern: ["SLS", "LBL", "FPF"],
|
||||||
}
|
key: {
|
||||||
);
|
S: { tag: "forge:screws/stainless_steel" },
|
||||||
|
L: { item: "minecraft:leather" },
|
||||||
|
B: { item: "sophisticatedbackpacks:diamond_backpack" },
|
||||||
|
F: { item: "gtceu:carbon_fibers" },
|
||||||
|
P: { tag: "forge:plates/polytetrafluoroethylene" },
|
||||||
|
},
|
||||||
|
result: { item: "sophisticatedbackpacks:netherite_backpack" },
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user