Advertisement
mbth

ShipmentBox.zs

Feb 16th, 2020
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. import minetweaker.item.IItemStack;
  2. val prices = {
  3. <minecraft:reeds> : 2,
  4. <minecraft:apple> : 10,
  5. <minecraft:fish> : 20,
  6. <minecraft:fish:1> : 20,
  7. <minecraft:fish:2> : 20,
  8. <minecraft:fish:3> : 20,
  9. <minecraft:cookie> : 30,
  10. <minecraft:bread> : 85,
  11. <minecraft:pumpkin_pie> : 150,
  12. <minecraft:diamond> : 25,
  13. <minecraft:emerald> : 75,
  14. <minecraft:golden_apple> : 50,
  15. <minecraft:golden_apple:1> : 450,
  16. <minecraft:golden_carrot> : 135,
  17. <biomesoplenty:berries> : 10,
  18. <biomesoplenty:pear> : 10,
  19. <biomesoplenty:peach> : 10,
  20. <biomesoplenty:persimmon> : 10,
  21. <biomesoplenty:turnip> : 10,
  22. <minecraft:nether_star> : 500,
  23. <hardcorewither:craftingItem> : 1000,
  24. <hardcorewither:starryApple>: 4100,
  25.  
  26. } as int[IItemStack];
  27. val pre_format = "Can be sold for ";
  28. val post_format = "g in the shipment box";
  29.  
  30. for entry in prices.entrySet {
  31. var item = entry.key as IItemStack;
  32. mods.harvestfestival.Shipping.addShipping(item, entry.value);
  33.  
  34. item.addTooltip(
  35. format.green(
  36. pre_format +
  37. entry.value +
  38. post_format
  39. )
  40. );
  41. }
  42.  
  43.  
  44.  
  45.  
  46.  
  47. mods.harvestfestival.Shipping.addShipping(<coins:coin>, 10);
  48. mods.harvestfestival.Shipping.addShipping(<coins:coin:1>, 100);
  49. mods.harvestfestival.Shipping.addShipping(<coins:coin:2>, 1000);
  50. mods.harvestfestival.Shipping.addShipping(<coins:coin:3>, 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement