#loot table modification

16 messages · Page 1 of 1 (latest)

undone depot
#
ServerEvents.recipes(event => {
  event.remove({ mod: 'endrem' })
})

ServerEvents.blockLootTables(event => {
  // Remove any eye from End Remastered structure chests
  event.removeLoot({ mod: 'endrem' });
});```
Ive been trying to find a method on how to modify loot on kubejs 6.5 1.20.1 and this doesnt work. Im trying to avoid external mods because all im gonna do with loot tables is disable this loot and also add eyes of ender that drop from the wither (add to the pool, 100% chance) but i dont know how to do that with the native implementation
lofty latchBOT
#

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

undone depot
#

p.s is there a way I can create an eye item to put into the end portal

azure warren
#

or use the data folder in kubeJs and do it like a vanilla datapack

undone depot
azure warren
#

You have to use that or JsonIO if you don't want to use lootJS iirc

undone depot
azure warren
#

It allows you to write json files through scripts

#

Actually I forgot an option

#

The data load event

#

You can add the loottable there with the datapack function

#

I'm pretty sure someone has done that before if you search through support and examples

undone depot
#

is there a wiki page i can look on this for

#

@azure warren