crafts.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. -- Used to mute a player who spams.
  2. minetest.register_craftitem("command_tokens:mute_player", {
  3. description = "Gag Order\n\nUse this on someone who ruins chat for people.\nTarget will not be able to speak for some time.",
  4. inventory_image = "default_diamond_block.png",
  5. on_use = function(...) return command_tokens.mute.mute_player(...) end,
  6. })
  7. minetest.register_craft({
  8. output = 'command_tokens:mute_player 1',
  9. recipe = {
  10. {'default:diamond'},
  11. },
  12. })
  13. -- Use this to show someone's coordinates when they speak.
  14. minetest.register_craftitem("command_tokens:mark_player", {
  15. description = "Bounty Marker\n\nUse this to show a person's coordinates when they speak.",
  16. inventory_image = "default_gold_block.png",
  17. on_use = function(...) return command_tokens.mark.mark_player(...) end,
  18. })
  19. minetest.register_craft({
  20. output = 'command_tokens:mark_player',
  21. type = 'shapeless',
  22. recipe = {
  23. 'default:gold_ingot',
  24. 'default:gold_ingot',
  25. },
  26. })
  27. -- Use this to kick someone into jail, if they are in your area.
  28. minetest.register_craftitem("command_tokens:jail_player", {
  29. description = "Trespass Restraining Order\n\nUse this to kick someone into jail, if they are in your protected area.\nThey must also be in an area marked as city.\nPerfect for getting rid of annoying people.",
  30. inventory_image = "default_steel_block.png",
  31. on_use = function(...) return command_tokens.jail.jail_player(...) end,
  32. })
  33. minetest.register_craft({
  34. output = 'command_tokens:jail_player',
  35. recipe = {
  36. {'', 'default:steel_ingot', '' },
  37. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  38. {'', 'default:steel_ingot', '' },
  39. },
  40. })