diff --git a/.gitmodules b/.gitmodules index 8de349a..06e2566 100644 --- a/.gitmodules +++ b/.gitmodules @@ -39,4 +39,4 @@ url = ../an_televator.git [submodule "mods/enable-shadows"] path = mods/enable-shadows - url = https://git.brn.systems/blocky_portaling/enable-shadows.git + url = ../enable-shadows.git diff --git a/mods/enable-shadows b/mods/enable-shadows index c8c53dd..04ee2b9 160000 --- a/mods/enable-shadows +++ b/mods/enable-shadows @@ -1 +1 @@ -Subproject commit c8c53ddda15c32b951be4ebca5639e22de6a13de +Subproject commit 04ee2b972e0d51d20f66c7c3a4fc434bbfc693ce diff --git a/mods/player/init.lua b/mods/player/init.lua index 54a5806..b071205 100644 --- a/mods/player/init.lua +++ b/mods/player/init.lua @@ -1,5 +1,14 @@ --heal player every 4 ticks by 1 hp if isnt fully healed i = 0 +minetest.register_chatcommand("spawn", +{ + description = "Teleports a player to the spawn", + func = function (name, param) + local player = minetest.get_player_by_name(name) + player:setpos({x = 0, y = 0, z = 0}) + end, + +}) minetest.register_globalstep(function(dtime) if i>=4 then i=0 diff --git a/mods/portalgun b/mods/portalgun index 0cfd94d..f5718d3 160000 --- a/mods/portalgun +++ b/mods/portalgun @@ -1 +1 @@ -Subproject commit 0cfd94d7d0e3b701a21c88fbb44b0e96a42f6185 +Subproject commit f5718d37eba7be5688bfd1323f33902b9acfbd5b diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..ed381ae Binary files /dev/null and b/screenshot.png differ