summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2014-07-25 12:29:35 +0200
committerWuzzy <almikes@aol.com>2014-07-25 12:29:35 +0200
commitd4666ea8aaa8dc5a0063a47d9c399e544af998bc (patch)
treee3b20673ecf949444faf997bd81c82252b77d9a8
parentcd1c6d1c2d999000ae575530e4f062cea220105a (diff)
Add neutralizers
-rw-r--r--init.lua51
1 files changed, 41 insertions, 10 deletions
diff --git a/init.lua b/init.lua
index 7d2718c..7d566ba 100644
--- a/init.lua
+++ b/init.lua
@@ -62,7 +62,7 @@ playereffects.register_effect_type("pepjumpminus", "Low jump", nil, {"jump"},
player:set_physics_override({jump=1})
end
)
-playereffects.register_effect_type("pepfloat", "No gravity", nil, {"gravity"},
+playereffects.register_effect_type("pepgrav0", "No gravity", nil, {"gravity"},
function(player)
player:set_physics_override({gravity=0})
end,
@@ -134,9 +134,9 @@ pep.register_potion({
duration = 10,
})
pep.register_potion({
- basename = "float",
+ basename = "grav0",
contentstring = "Non-Gravity Potion",
- effect_type = "pepfloat",
+ effect_type = "pepgrav0",
duration = 20,
})
pep.register_potion({
@@ -152,7 +152,8 @@ pep.register_potion({
duration = 30,
})
---[[ register crafts ]]
+--[=[ register crafts ]=]
+--[[ normal potions ]]
if(minetest.get_modpath("default") ~= nil) then
minetest.register_craft({
type = "shapeless",
@@ -170,11 +171,6 @@ if(minetest.get_modpath("default") ~= nil) then
output = "pep:jumpplus",
recipe = { "flowers:flower_geranium", "default:grass_1", "pep:water" }
})
- minetest.register_craft({
- type = "shapeless",
- output = "pep:speedplus",
- recipe = { "flowers:rose", "flowers:dandelion_yellow", "pep:water" }
- })
end
minetest.register_craft({
type = "shapeless",
@@ -193,7 +189,42 @@ if(minetest.get_modpath("default") ~= nil) then
})
minetest.register_craft({
type = "shapeless",
- output = "pep:float",
+ output = "pep:grav0",
recipe = { "default:mese_crystal", "pep:water" }
})
end
+if(minetest.get_modpath("flowers") ~= nil) then
+ minetest.register_craft({
+ type = "shapeless",
+ output = "pep:speedplus",
+ recipe = { "flowers:rose", "flowers:dandelion_yellow", "pep:water" }
+ })
+end
+
+--[[ neutralizers ]]
+
+minetest.register_craft({
+ type = "shapeless",
+ output = "pep:speedreset",
+ recipe = { "pep:speedplus", "pep:speedminus" }
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = "pep:antidote",
+ recipe = { "pep:regen", "pep:poison" }
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = "pep:antidote",
+ recipe = { "pep:regen2", "pep:poison2" }
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = "pep:jumpreset",
+ recipe = { "pep:jumpplus", "pep:jumpminus" }
+})
+minetest.register_craft({
+ type = "shapeless",
+ output = "pep:gravreset" ,
+ recipe = { "pep:grav0", "group:stone" }
+})