mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-26 01:30:29 +01:00
Spawn from the Nether to the real world modified
This commit is contained in:
parent
4d690103a9
commit
bccb1d2c5b
@ -208,7 +208,7 @@ end
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"nether:portal"},
|
nodenames = {"nether:portal"},
|
||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
if not abm_allowed then
|
if not abm_allowed then
|
||||||
return
|
return
|
||||||
@ -522,7 +522,7 @@ function nether_port(player, pos)
|
|||||||
minetest.sound_play("nether_teleporter", {pos=pos})
|
minetest.sound_play("nether_teleporter", {pos=pos})
|
||||||
if pos.y < nether.start then
|
if pos.y < nether.start then
|
||||||
player_from_nether(player)
|
player_from_nether(player)
|
||||||
player:moveto({x=pos.x, y=100, z=pos.z})
|
player:moveto({x=5, y=35, z=-7})
|
||||||
else
|
else
|
||||||
player:moveto({x=pos.x, y=portal_target+math.random(4), z=pos.z})
|
player:moveto({x=pos.x, y=portal_target+math.random(4), z=pos.z})
|
||||||
player_to_nether(player, true)
|
player_to_nether(player, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user