init
This commit is contained in:
commit
9bf349b774
|
@ -0,0 +1,3 @@
|
|||
For licenses of mods used check their folders
|
||||
Licenses: code: LGPL-2.1, media: CC BY-SA-4.0
|
||||
For changes check git or compare to original repo
|
|
@ -0,0 +1,6 @@
|
|||
name = Blocky portaling
|
||||
description = A puzzle game involving portals. Portal gun code originally by AiTechEye check readme and license there.
|
||||
allowed_mapgens = singlenode
|
||||
release = 1
|
||||
author = BRNSystems
|
||||
title = Modular Portals
|
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 812 B |
Binary file not shown.
After Width: | Height: | Size: 840 B |
|
@ -0,0 +1,14 @@
|
|||
minetest.register_alias("portalgun:gun", ":")
|
||||
--heal player every 4 ticks by 1 hp if isnt fully healed
|
||||
i = 0
|
||||
minetest.register_globalstep(function(dtime)
|
||||
if i>=4 then
|
||||
i=0
|
||||
for _,player in ipairs(minetest.get_connected_players()) do
|
||||
if player:get_hp()<20 then
|
||||
player:set_hp(player:get_hp()+1)
|
||||
end
|
||||
end
|
||||
end
|
||||
i=i+1
|
||||
end)
|
|
@ -0,0 +1,3 @@
|
|||
name = player
|
||||
description = Gamespecific
|
||||
depends = portalgun
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 034489359dff365f1ed5a59c6e77f7eb0ddd48af
|
Loading…
Reference in New Issue