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