init.lua 437 B

123456789101112131415161718
  1. if not minetest.global_exists("wieldhand") then wieldhand = {} end
  2. wieldhand.modpath = minetest.get_modpath("wieldhand")
  3. -- The Hand.
  4. minetest.register_item(":", {
  5. type = "none",
  6. wield_image = "wieldhand.png",
  7. wield_scale = {x=1,y=1,z=2.5},
  8. tool_capabilities = tooldata["hand_hand"],
  9. -- This seems to prevent the wieldhand from being used to dig things.
  10. --on_use = function(itemstack, user, pointed_thing)
  11. --end,
  12. })