hats.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. minetest.register_craftitem('clothing:hat_straw', {
  2. description = 'Straw Hat',
  3. tex = 'clothing_hat_straw.png',
  4. cost = 200,
  5. inventory_image = 'clothing_hat_straw_inv.png',
  6. stack_max = 1,
  7. groups = {clothing = 1, not_in_creative_inventory=1, clothing_hats=1},
  8. on_drop = lobby.no_drop
  9. })
  10. minetest.register_craftitem('clothing:hat_baseball', {
  11. description = 'Baseball Cap',
  12. tex = 'clothing_hat_baseball.png',
  13. cost = 15,
  14. inventory_image = 'clothing_hat_baseball_inv.png',
  15. stack_max = 1,
  16. groups = {clothing = 1, not_in_creative_inventory=1, clothing_hats=1},
  17. on_drop = lobby.no_drop
  18. })
  19. minetest.register_craftitem('clothing:hat_cowboy', {
  20. description = 'Cowboy Hat',
  21. tex = 'clothing_hat_cowboy.png',
  22. cost = 30,
  23. inventory_image = 'clothing_hat_cowboy_inv.png',
  24. stack_max = 1,
  25. groups = {clothing = 1, not_in_creative_inventory=1, clothing_hats=1},
  26. on_drop = lobby.no_drop
  27. })
  28. minetest.register_craftitem('clothing:hat_crown', {
  29. description = 'Royal Crown',
  30. tex = 'clothing_hat_crown.png',
  31. cost = 2000,
  32. inventory_image = 'clothing_hat_crown_inv.png',
  33. stack_max = 1,
  34. groups = {clothing = 1, not_in_creative_inventory=1, clothing_hats=1},
  35. on_drop = lobby.no_drop
  36. })