LootTweaker

LootTweaker

17M Downloads

Is there a function to import a vanilla like JSON loot table?

Lothrazar opened this issue ยท 2 comments

commented

Adding loot tables the regular way you have something like below, this makes a bat drop a bat head ( player skin ). Is there a direct way to import this JSON without rewriting scripts?

{
"pools": [
{
"conditions": [
{
"condition": "killed_by_player"
},
{
"condition": "random_chance_with_looting",
"chance": 0.02,
"looting_multiplier": 0.02
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:skull",
"weight": 1,
"functions": [
{
"function": "set_data",
"data": 3
},
{
"function": "set_nbt",
"tag": "{display:{LocName:"Bat Head"},SkullOwner:{Id:"4ec40126-5a2d-4d6a-a0a3-125744548f0d",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmZmZDgwOGY4MTI3YjRhZDQ1OGQ5ZDJlMTgxYzY5MGFkZjQ4OWE2YWQzMmVlMmFhNGFjZmE2MzQxZmU4NDIifX19"}]}}}"
}
]
}
]
}
]
}

commented

No. All abilities of LootTweaker are documented in the wiki, if something isn't in the wiki, LootTweaker can't do it. I never leave new features undocumented for more than a day. That loot entry shouldn't be hard to convert anyway. If you have many to convert, I could investigate adding something to help.

commented

Closing due to lack of reply