diff --git a/kubejs/assets/tfg/textures/block/piglin_disguise.png b/kubejs/assets/tfg/textures/block/piglin_disguise.png index c9d15b8eb..a7793f207 100644 Binary files a/kubejs/assets/tfg/textures/block/piglin_disguise.png and b/kubejs/assets/tfg/textures/block/piglin_disguise.png differ diff --git a/kubejs/data/tfg/loot_tables/blocks/piglin_disguise_block.json b/kubejs/data/tfg/loot_tables/blocks/piglin_disguise_block.json new file mode 100644 index 000000000..32e03b788 --- /dev/null +++ b/kubejs/data/tfg/loot_tables/blocks/piglin_disguise_block.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/kubejs/server_scripts/main_server_script.js b/kubejs/server_scripts/main_server_script.js index 3dc3f3ca7..7f77008b8 100644 --- a/kubejs/server_scripts/main_server_script.js +++ b/kubejs/server_scripts/main_server_script.js @@ -141,6 +141,7 @@ LootJS.modifiers((event) => { registerLootrLoots(event) registerPrimitiveCreatesLoots(event) registerTFCLoots(event) + registerTFGLoots(event) }); /** diff --git a/kubejs/server_scripts/tfg/loot_tables.block.js b/kubejs/server_scripts/tfg/loot_tables.js similarity index 98% rename from kubejs/server_scripts/tfg/loot_tables.block.js rename to kubejs/server_scripts/tfg/loot_tables.js index 4e7cef3b7..f9644fbba 100644 --- a/kubejs/server_scripts/tfg/loot_tables.block.js +++ b/kubejs/server_scripts/tfg/loot_tables.js @@ -1,7 +1,6 @@ +function registerTFGLoots(event) { -LootJS.modifiers((event) => { - - //Generated Vases Loot + //#region Vase Loot global.MINECRAFT_DYE_NAMES.forEach(color => { event.addBlockLootModifier(`tfg:decorative_vase/generated/${color}`) .removeLoot(Ingredient.all) @@ -81,4 +80,4 @@ LootJS.modifiers((event) => { ); }) }); -}); \ No newline at end of file +}; \ No newline at end of file