#(lootJs help) removing item from chest generated loot
14 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Same *about loot knowledge
i want to know how diamonds remove from lootchests or make this very rare
this should remove a item from all chests:
LootJS.modifiers((event) => {
event
.addLootTableModifier(/^minecraft:chests\/.*/)
.removeLoot("cardiac:life_bottle");
});
but only in not already generated chuncks
LootJS.modifiers(event =>{
event.addLootTypeModifier(LootType.CHEST)
.removeLoot(Ingredient.of(['cardiac:life_bottle','minecraft:diamond']))
})
beat me to it lol
does it work if i remove those items and re add them again with custom rarity?
or would a datapack work?
like this for example "kubejs/data/farmersdelight/loottables/chests?
You can do this with lootjs too you don't need to do this via a datapack
how?
and can u remove enchanted items?