mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-12-26 02:30:24 +01:00
fix player doesnt hear nether teleporter sound, thanks to @crabman77
This commit is contained in:
parent
40997320b0
commit
1e0bcbb709
2
LICENSE.txt
Normal file
2
LICENSE.txt
Normal file
@ -0,0 +1,2 @@
|
||||
GPLv3 (lkloel's version)
|
||||
WTFPL for the changes
|
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
||||
[Mod] nether-pack [nether-pack]
|
||||
|
||||
This is a modified version of lkjoel's nether mod.
|
||||
Look here if you want to see the differences:
|
||||
https://github.com/HybridDog/minetest-nether/compare/lkjoel:master...master
|
||||
Sadly lkjoel's one disappeared…
|
||||
|
||||
**Depends:** see [depends.txt](https://raw.githubusercontent.com/HybridDog/nether-pack/master/nether/depends.txt)
|
||||
**License:** see [LICENSE.txt](https://raw.githubusercontent.com/HybridDog/nether-pack/master/LICENSE.txt)
|
||||
**Download:** [zip](https://github.com/HybridDog/nether-pack/archive/master.zip), [tar.gz](https://github.com/HybridDog/nether-pack/tarball/master)
|
||||
|
||||
this happens really selden to me
|
||||
![I'm a screenshot!](http://i.imgur.com/pMZYqt9.png)
|
||||
|
||||
If you got ideas or found bugs, please tell them to me.
|
||||
|
||||
[How to install a mod?](http://wiki.minetest.net/Installing_Mods)
|
||||
|
||||
|
||||
TODO:
|
||||
— find a way to get the perlin noise inside [-1; 1] or use another noise
|
10
README.txt
10
README.txt
@ -1,10 +0,0 @@
|
||||
This is a modified version of lkjoel's nether mod.
|
||||
Look here if you want to see the differences:
|
||||
https://github.com/HybridDog/minetest-nether/compare/lkjoel:master...master
|
||||
|
||||
this happens really selden to me
|
||||
http://i.imgur.com/pMZYqt9.png
|
||||
|
||||
|
||||
TODO:
|
||||
— find a way to get the perlin noise inside [-1; 1] or use another noise
|
@ -222,6 +222,7 @@ minetest.register_abm({
|
||||
nodenames = {"nether:portal"},
|
||||
interval = 1,
|
||||
chance = 2,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
if not abm_allowed then
|
||||
return
|
||||
@ -535,10 +536,13 @@ 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})
|
||||
pos.y = 100
|
||||
player:moveto(pos)
|
||||
else
|
||||
player:moveto({x=pos.x, y=portal_target+math.random(4), z=pos.z})
|
||||
pos.y = portal_target+math.random(4)
|
||||
player:moveto(pos)
|
||||
player_to_nether(player, true)
|
||||
end
|
||||
minetest.sound_play("nether_teleporter", {pos=pos})
|
||||
return true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user