Advertisement
DeleteMetaInf

script1

Aug 3rd, 2022
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #loader contenttweaker
  2. import mods.contenttweaker.VanillaFactory;
  3. import mods.contenttweaker.Block;
  4. import mods.contenttweaker.DropHandler;
  5. print("ContentTweaker – Loading Kvikk Lunsj Ore and Block of Kvikk Lunsj.zs");
  6.  
  7. var kvikkLunsjOre = VanillaFactory.createBlock("kvikk_lunsj_ore", <blockmaterial:rock>);
  8. kvikkLunsjOre.setBlockHardness(2.5);
  9. kvikkLunsjOre.setBlockResistance(2.8);
  10. kvikkLunsjOre.setBlockSoundType(<soundtype:stone>);
  11. kvikkLunsjOre.setToolLevel(3);
  12. kvikkLunsjOre.setDropHandler(function(drops, world, position, state, item){
  13. drops.clear();
  14. drops.add(<item:contenttweaker:kvikk_lunsj_piece>);
  15. drops.add(<item:contenttweaker:kvikk_lunsj_piece> % 30);
  16. drops.add(<item:contenttweaker:kvikk_lunsj> % 6);
  17. drops.add(<item:contenttweaker:kvikk_lunsj_six_pack> % 1);
  18. });
  19. kvikkLunsjOre.register();
  20.  
  21. var blockOfKvikkLunsj = VanillaFactory.createBlock("kvikk_lunsj_block", <blockmaterial:iron>);
  22. blockOfKvikkLunsj.setBlockHardness(4.5);
  23. blockOfKvikkLunsj.setBlockResistance(2);
  24. blockOfKvikkLunsj.setToolLevel(3);
  25. blockOfKvikkLunsj.register();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement