mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Added forceload, pyramids, b_chests' support
- Beginners' chest updated (support for forceload) - Forceload mod by rubenwardy added - trmp_minetest_game added
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
default
|
||||
3d_armor
|
||||
forceload?
|
||||
|
@ -3,7 +3,7 @@
|
||||
Put some useful stuff in chests for the new players
|
||||
|
||||
Version : 1.1 - 11/8/2014_14h48UTC
|
||||
Last modification by Mg on the : 11/8/2014 @ 14h48 UTC
|
||||
Last modification by Mg on the : 14/3/2015 @ 14h48 UTC
|
||||
|
||||
Mod ßý Mg, based on an idea of MinetestForFun/Darcidride
|
||||
]]--
|
||||
@ -140,8 +140,15 @@ minetest.register_globalstep(function(dtime)
|
||||
if node.name ~= "ignore" then
|
||||
if node.name ~= "default:chest" then
|
||||
if node.name == "air" then
|
||||
minetest.add_node(chests[i].position,{name = "default:chest"})
|
||||
minetest.set_node(chests[i].position,{name = "default:chest"})
|
||||
minetest.log("action","[b_chest]["..i.."] Chest placed at "..chests[i].position.x..", "..chests[i].position.y..", "..chests[i].position.z)
|
||||
if minetest.get_modpath("forceload") ~= nil
|
||||
and (minetest.get_node({chests[i].position.x,chests[i].position.y-1,chests[i].position.z}).name == "air"
|
||||
or minetest.get_node({chests[i].position.x,chests[i].position.y-1,chests[i].position.z}).name == "default:dirt") then
|
||||
-- Enable use of forceload anchors
|
||||
minetest.set_node({chests[i].position.x,chests[i].position.y-1,chests[i].position.z},{name = "forceload:anchor"})
|
||||
minetest.log("action","[b_chest]["..i.."] Forceload anchor placed under chest")
|
||||
end
|
||||
else
|
||||
minetest.log("action","[b_chest]["..i.."] Unable to place chest at "..chests[i].position.x..", "..chests[i].position.y..", "..chests[i].position.z.." : place already in use.")
|
||||
break
|
||||
|
Reference in New Issue
Block a user