mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
[_misc] Add sand swapping recipes (desert sand <-> sand)
This commit is contained in:
parent
bb92aceb99
commit
82af19b145
@ -27,3 +27,6 @@ dofile(minetest.get_modpath("_misc").."/uncraft_woll.lua")
|
||||
|
||||
-- List players
|
||||
dofile(minetest.get_modpath("_misc").."/list_players.lua")
|
||||
|
||||
-- Desert Sand/Sand swap
|
||||
dofile(minetest.get_modpath("_misc").."/sand_swapping.lua")
|
||||
|
13
mods/_misc/sand_swapping.lua
Normal file
13
mods/_misc/sand_swapping.lua
Normal file
@ -0,0 +1,13 @@
|
||||
-- Swap sands
|
||||
|
||||
-- desert -> normal
|
||||
minetest.register_craft({
|
||||
output = "default:sand",
|
||||
recipe = {{"default:desert_sand"}}
|
||||
})
|
||||
|
||||
-- normal -> desert
|
||||
minetest.register_craft({
|
||||
output = "default:desert_sand",
|
||||
recipe = {{"default:sand"}}
|
||||
})
|
Loading…
Reference in New Issue
Block a user