#help to apply code 1.20.1 PLS HEEELP
21 messages · Page 1 of 1 (latest)
what anyone help me 😦
you need the source of it all. the source is provided.
Oh, OK! And how do I apply this to the modpack? It's all new to me, I have zero knowledge... (except what you did yesterday which I took as a learning experience)
those folders needs to go in kubejs/
i will try this later
I managed to add the loot bags and everything works together with my custom recipes, now how do I add items inside the bags? Would you like some example that I could just copy or change the items inside? And would this be on the server or in the startup folder?
take a look at the scripts
yes I did that
From what I understand, I use the server folder, right?
ops
startup***
make_bag_itens.js
StartupEvents.registry('item', e => {
function make_bag(bagName, displayName, texture, rarity, glow){
e.create(bagName)
.displayName(displayName)
.texture(texture)
.rarity(rarity)
.glow(glow)
}
for (let i = 0; i < global.pouch_name.length; i++) {
make_bag(`${global.bag_name[i]}_bag_common`, global.pouch_name[i], global.pouch_color_map[global.pouch_color[i]], global.rarity[0], false)
make_bag(`${global.bag_name[i]}_bag_rare`, global.pouch_name[i], global.pouch_color_map[global.pouch_color[i]], global.rarity[1], false)
make_bag(`${global.bag_name[i]}_bag_epic`, global.pouch_name[i], global.pouch_color_map[global.pouch_color[i]], global.rarity[2], true)
}
})
The problem is that I'm lost on where to put the information 😦
Ticket closed!