Generate end exit portal near the spawn in the End

This commit is contained in:
Wuzzy 2017-11-21 07:24:56 +01:00
parent 71be25f44a
commit fc17303b1e
4 changed files with 39 additions and 4 deletions

View file

@ -336,9 +336,11 @@ minetest.register_abm({
-- Teleport
obj:set_pos(target)
-- Look towards the End island
if obj:is_player() and dim ~= "end" then
obj:set_look_horizontal(math.pi/2)
if obj:is_player() then
-- Look towards the End island
if dim ~= "end" then
obj:set_look_horizontal(math.pi/2)
end
minetest.sound_play("mcl_portals_teleport", {pos=target, gain=0.5, max_hear_distance = 16})
end
end