diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..d04c782 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,2 @@ +GPLv3 (lkloel's version) +WTFPL for the changes diff --git a/README.md b/README.md new file mode 100644 index 0000000..0714078 --- /dev/null +++ b/README.md @@ -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 diff --git a/README.txt b/README.txt deleted file mode 100644 index 7836a92..0000000 --- a/README.txt +++ /dev/null @@ -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 diff --git a/nether/portal.lua b/nether/portal.lua index 0937eeb..4234a16 100644 --- a/nether/portal.lua +++ b/nether/portal.lua @@ -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