#help to apply code 1.20.1 PLS HEEELP

21 messages · Page 1 of 1 (latest)

fallen prismBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

elder snow
#

what anyone help me 😦

lapis adder
#

you need the source of it all. the source is provided.

elder snow
lapis adder
#

those folders needs to go in kubejs/

elder snow
#

i will try this later

elder snow
#

work!

#

ahm

#

i need helpkk

#

im so confused with this

elder snow
# lapis adder those folders needs to go in kubejs/

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?

lapis adder
#

take a look at the scripts

elder snow
#

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)
}

})

elder snow