#Help generating custom lootTable with LootJS

7 messages · Page 1 of 1 (latest)

spring nova
#

this code kinda works, i can add items with NBT tags normally, but i wanted to do it differently.

right now, the chance for choosing a weapon only rolls once every server reload, so it only has one weapon type being able to be found.

i wanted to make so that the loot table has: a chance to have a weapon and after that condition has been met, it chooses from the array of NBTs to choose the weapon it will generate on the chest.

i think i will probably need to make a custom lootTable and insert it into the loottable i want the gun in. but i dont know how to do that, and i read through all the documentation and found nothing

any help would be nice

worldly ploverBOT
#

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

swift copperBOT
#

Paste version of Loot.js from @spring nova

spring nova
#

i have a feeling this should be done using datapacks, but idk how to do that, im pretty new to modding this version

spring nova
#

ok so i have successfully made a custom lootTable, and i can give myself a chest with that lootTable and it works like i want it to

#

i just need to join this lootable into existing ones

spring nova
#

bump