#Dump all loot tables
22 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
lootjs is seperate from Kubejs, they do have a wiki for all there commands etc
bump
gimme a sec
https://docs.almostreliable.com/lootjs/loot-modifiers/event.html#addtablemodifier heres wiki
i know dumping singular items are easy
event.addTableModifier(LootType.CHEST)
.replaceLoot("minecraft:iron_sword","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_pickaxe","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_axe","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_shovel","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_hoe","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_helmet","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_chestplate","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_leggings","minecraft:iron_ingot")
.replaceLoot("minecraft:iron_boots","minecraft:iron_ingot")
}) ```
important that ```modifiers``` and everything is copied as is
just replace the items
Documentation for LootJS
its pretty easy to understand tbh
thats where common sense comes in, i just gave a basic guideline on how to use Lootjs
pretty sure there removeloot somewhere aswell
What You understand by dumping all loot tables?
dumping all items
Nope, it's dumping all this into file
ohhhhh i thought it meant removing all the items
wouldnt tags work with that? u dump all the loottables according to the tag given to it
or assign a tag to it
I have no idea how to do that