init.lua 721 B

123456789101112131415161718192021222324252627
  1. if not minetest.global_exists("sand") then sand = {} end
  2. sand.modpath = minetest.get_modpath("sand")
  3. -- "default:silver_sand"
  4. minetest.register_node("sand:sand_with_ice_crystals", {
  5. description = "Silver Sand",
  6. tiles = {"sand_silver_sand.png"},
  7. groups = utility.dig_groups("sand", {falling_node = 1, sand = 1, fall_damage_add_percent = -20}),
  8. sounds = default.node_sound_sand_defaults(),
  9. movement_speed_multiplier = default.SLOW_SPEED,
  10. })
  11. minetest.register_craft({
  12. output = "sand:sand_with_ice_crystals",
  13. recipe = {
  14. {"default:snow", "default:snow", "default:snow"},
  15. {"default:snow", "default:sand", "default:snow"},
  16. {"default:snow", "default:snow", "default:snow"},
  17. },
  18. })