mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-12-14 06:25:33 +01: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:
19
mods/sea/seawrecks/init.lua
Executable file → Normal file
19
mods/sea/seawrecks/init.lua
Executable file → Normal file
@@ -7,6 +7,23 @@ minetest.register_node("seawrecks:woodship", {
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1},
|
||||
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
|
||||
})
|
||||
|
||||
minetest.register_node("seawrecks:uboot", {
|
||||
@@ -939,4 +956,4 @@ local yp = {x = pos.x, y = pos.y + 8, z = pos.z}
|
||||
return
|
||||
end
|
||||
end
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user