craftitems.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Map Tools: item definitions
  3. Copyright (c) 2012-2015 Calinou and contributors.
  4. Licensed under the zlib license. See LICENSE.md for more information.
  5. --]]
  6. local S = maptools.intllib
  7. maptools.creative = maptools.config["hide_from_creative_inventory"]
  8. minetest.register_craftitem("maptools:copper_coin", {
  9. description = S("Copper Coin"),
  10. inventory_image = "maptools_copper_coin.png",
  11. wield_scale = {x = 0.5, y = 0.5, z = 0.25},
  12. stack_max = 10000,
  13. groups = {not_in_creative_inventory = maptools.creative},
  14. })
  15. minetest.register_craftitem("maptools:silver_coin", {
  16. description = S("Silver Coin"),
  17. inventory_image = "maptools_silver_coin.png",
  18. wield_scale = {x = 0.5, y = 0.5, z = 0.25},
  19. stack_max = 10000,
  20. groups = {not_in_creative_inventory = maptools.creative},
  21. })
  22. minetest.register_craftitem("maptools:gold_coin", {
  23. description = S("Gold Coin"),
  24. inventory_image = "maptools_gold_coin.png",
  25. wield_scale = {x = 0.5, y = 0.5, z = 0.25},
  26. stack_max = 10000,
  27. groups = {not_in_creative_inventory = maptools.creative},
  28. })
  29. minetest.register_craftitem("maptools:infinitefuel", {
  30. description = S("Infinite Fuel"),
  31. inventory_image = "maptools_infinitefuel.png",
  32. stack_max = 10000,
  33. groups = {not_in_creative_inventory = maptools.creative},
  34. })
  35. minetest.register_craft({
  36. type = "fuel",
  37. recipe = "maptools:infinitefuel",
  38. burntime = 1000000000,
  39. })