- Added loot table to piglin disguise and updated its texture. (#1123)
- Reformated lootjs file
This commit is contained in:
parent
52dcc54089
commit
6a26c9b6e2
4 changed files with 24 additions and 4 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.2 KiB |
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"name": "loot_pool",
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "tfg:piglin_disguise_block"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -141,6 +141,7 @@ LootJS.modifiers((event) => {
|
||||||
registerLootrLoots(event)
|
registerLootrLoots(event)
|
||||||
registerPrimitiveCreatesLoots(event)
|
registerPrimitiveCreatesLoots(event)
|
||||||
registerTFCLoots(event)
|
registerTFCLoots(event)
|
||||||
|
registerTFGLoots(event)
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
function registerTFGLoots(event) {
|
||||||
|
|
||||||
LootJS.modifiers((event) => {
|
//#region Vase Loot
|
||||||
|
|
||||||
//Generated Vases Loot
|
|
||||||
global.MINECRAFT_DYE_NAMES.forEach(color => {
|
global.MINECRAFT_DYE_NAMES.forEach(color => {
|
||||||
event.addBlockLootModifier(`tfg:decorative_vase/generated/${color}`)
|
event.addBlockLootModifier(`tfg:decorative_vase/generated/${color}`)
|
||||||
.removeLoot(Ingredient.all)
|
.removeLoot(Ingredient.all)
|
||||||
|
|
@ -81,4 +80,4 @@ LootJS.modifiers((event) => {
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue