#Dump all loot tables

22 messages · Page 1 of 1 (latest)

rough isle
#

I want to dump all loot tables using lootjs, and am unsure how best to do so.

spark edgeBOT
#

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

dry blaze
carmine saffron
#

bump

dry blaze
dry blaze
# carmine saffron bump

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
#

its pretty easy to understand tbh

carmine saffron
#

What

#

What's that?

dry blaze
#

u bumped it

#

so i thought u needed the scripts

carmine saffron
#

Yeah, but it's just replacing loot script

#

Not dumping all loot tables

dry blaze
#

pretty sure there removeloot somewhere aswell

carmine saffron
#

What You understand by dumping all loot tables?

dry blaze
carmine saffron
#

Nope, it's dumping all this into file

dry blaze
#

wouldnt tags work with that? u dump all the loottables according to the tag given to it
or assign a tag to it

carmine saffron
#

I have no idea how to do that