Advertisement
renadi

Untitled

Apr 12th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. /*ChoppedWood by goreae
  2. *This will automagically create recipes for provided wood and axes.
  3. *To add to the log list, simply put the log in the front of the logs array and the planks in the front of the planks array.
  4. *To add to the axe list, add the desired axe to the oreDict, ensuring the axes name has wildcard damage, like <exampleMod:shitAze:*>
  5. */
  6.  
  7. import minetweaker.item.IItemStack;
  8. import minetweaker.item.IIngredient;
  9.  
  10. val logs = [<minecraft:log>, <minecraft:log:1>, <minecraft:log:2>, <minecraft:log:3>, <minecraft:log2>, <minecraft:log2:1>, <witchery:witchlog>, <witchery:witchlog:1>, <witchery:witchlog:2>, <erebus:logBaobab>, <erebus:logEucalyptus>, <erebus:logMahogany>, <erebus:logMossbark>, <erebus:logAsper>, <erebus:logCypress>, <erebus:logRotten>, <erebus:log_scorched>] as IItemStack[];
  11. val plank = [<minecraft:planks>, <minecraft:planks:1>, <minecraft:planks:2>, <minecraft:planks:3>, <minecraft:planks:4>, <minecraft:planks:5>, <witchery:witchwood>, <witchery:witchwood:1>, <witchery:witchwood:2>, <erebus:planks>, <erebus:planks:1>, <erebus:planks:2>, <erebus:planks:3>, <erebus:planks:4>, <erebus:planks:5>, <erebus:planks:9>, <erebus:planks_scorched>] as IItemStack[];
  12.  
  13. val axe = <ore:axe>;
  14. axe.add(<minecraft:wooden_axe:*>);
  15. axe.add(<minecraft:stone_axe:*>);
  16. axe.add(<minecraft:iron_axe:*>);
  17. axe.add(<minecraft:golden_axe:*>);
  18. axe.add(<minecraft:diamond_axe:*>);
  19. axe.add(<Botania:manasteelAxe:*>);
  20. axe.add(<Botania:elementiumAxe:*>);
  21. axe.add(<EnderIO:item.darkSteel_axe:*>);
  22. axe.add(<ThermalExpansion:tool.axeInvar:*>);
  23. axe.add(<appliedenergistics2:item.ToolCertusQuartzAxe:*>);
  24. axe.add(<appliedenergistics2:item.ToolNetherQuartzAxe:*>);
  25. axe.add(<bluepower:ruby_axe:*>);
  26. axe.add(<bluepower:sapphire_axe:*>);
  27. axe.add(<bluepower:amethyst_axe:*>);
  28. axe.add(<erebus:axeJade:*>);
  29. axe.add(<Railcraft:tool.steel.axe:*>);
  30.  
  31. for i, log in logs {
  32. recipes.remove(plank[i]);
  33. recipes.addShapeless(plank[i]*4, [log, axe.transformDamage()]);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement