mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-11 12:20:21 +02:00
- Delete useless files/mods
- Add builtin_falling (by Davedevils) for an amazing bugfix - Tweak node.lua from the subgame MFF and « sea » mod for builtin_falling - Remove news.lua from _misc - Remove _misc_me (empty now) - Add a new mod named « news » and tweak this mod, it works now, add texture for the news (Thank you Davedevils)
This commit is contained in:
17
mods/sea/whiteshell/init.lua
Executable file → Normal file
17
mods/sea/whiteshell/init.lua
Executable file → Normal file
@ -20,6 +20,23 @@ minetest.register_node("whiteshell:whiteshell", {
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if not pointed_thing.type == "node" then
|
||||
return itemstack
|
||||
end
|
||||
local pn = placer:get_player_name()
|
||||
if minetest.is_protected(pointed_thing.above, pn) then
|
||||
return itemstack
|
||||
end
|
||||
minetest.env:add_node(pointed_thing.above, {name=itemstack:get_name()})
|
||||
local meta = minetest.env:get_meta(pointed_thing.above)
|
||||
meta:set_string("owner", pn)
|
||||
nodeupdate(pointed_thing.above)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
-- WHITESHELL GENERATION
|
||||
|
Reference in New Issue
Block a user