katubug

animania meats to vanilla animals script

Jun 7th, 2019
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //Major thanks to nihiltres from the Modded Minecraft Discord for helping me get this working
  2.  
  3. import loottweaker.vanilla.loot.LootTables;
  4. import loottweaker.vanilla.loot.LootTable;
  5. import loottweaker.vanilla.loot.LootPool;
  6. import crafttweaker.data.IData;
  7.  
  8. val minimalConditionArr as IData[] = [];
  9. val autoSmelt as IData[] = [{
  10. "function": "minecraft:furnace_smelt",
  11. "conditions": [
  12. {
  13. "properties": {
  14. "minecraft:on_fire": true
  15. },
  16. "entity": "this",
  17. "condition": "minecraft:entity_properties"
  18. }
  19. ]
  20. }];
  21.  
  22. val dtChicken = LootTables.getTable("minecraft:entities/chicken");
  23. val dtMeatChicken = dtChicken.getPool("pool1");
  24.  
  25. dtMeatChicken.removeEntry("minecraft:chicken");
  26. dtMeatChicken.addItemEntryJson(<minecraft:chicken>, 5 as int, 0 as int, autoSmelt as IData[], minimalConditionArr as IData[], "vanillaChicken");
  27. dtMeatChicken.addItemEntryJson(<animania:raw_prime_chicken>, 1 as int, 0 as int, autoSmelt as IData[], minimalConditionArr as IData[], "animaniaChicken");
Advertisement
Add Comment
Please, Sign In to add comment