Compare commits
5 Commits
6f91c379a6
...
31198c20a1
Author | SHA1 | Date |
---|---|---|
Wuzzy | 31198c20a1 | |
Wuzzy | ab408a4e78 | |
Wuzzy | 0f3318ce0e | |
Wuzzy | 692b57a29d | |
Wuzzy | 1062c7620f |
|
@ -13,7 +13,7 @@ All crafting recipes are shapeless.
|
|||
### Breath
|
||||
#### Air potion
|
||||
Gives you breath underwater for 30s.
|
||||
Craft: 8 papyri, 1 glass bottle.
|
||||
Craft: 1 cyan coral, 1 green coral, 1 pink coral, 1 glass bottle.
|
||||
|
||||
All 8 papyri must occupy one slot.
|
||||
|
||||
|
@ -70,7 +70,7 @@ Craft: 2 dry shrubs, 1 cotton seed, 1 mese crystal fragment, 1 glass bottle.
|
|||
|
||||
#### Strong mana potion
|
||||
Increases mana regeneration rate by 1 for 10 seconds.
|
||||
Craft: 4 dry shrubs, 1 jungle sapling, 1 acacia tree sapling, 1 mese crystal fragment, 1 weak mana potion.
|
||||
Craft: 4 dry shrubs, 1 jungle sapling, 1 marram grass, 1 mese crystal fragment, 1 weak mana potion.
|
||||
|
||||
### Other potions
|
||||
#### Mole potion
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
playereffects
|
||||
playerphysics?
|
||||
default?
|
||||
vessels?
|
||||
flowers?
|
||||
farming?
|
||||
mana?
|
||||
intllib?
|
|
@ -1 +0,0 @@
|
|||
Adds potions with temporary player effects.
|
27
init.lua
27
init.lua
|
@ -56,12 +56,9 @@ end
|
|||
function pep.moledig(playername)
|
||||
local player = minetest.get_player_by_name(playername)
|
||||
|
||||
local yaw = player:get_look_yaw()
|
||||
-- fix stupid oddity of Minetest, adding pi/2 to the actual player's look yaw...
|
||||
-- TODO: Remove this code as soon as Minetest fixes this.
|
||||
yaw = yaw - math.pi/2
|
||||
local yaw = player:get_look_horizontal()
|
||||
|
||||
local pos = vector.round(player:getpos())
|
||||
local pos = vector.round(player:get_pos())
|
||||
|
||||
local v = pep.yaw_to_vector(yaw)
|
||||
|
||||
|
@ -237,14 +234,6 @@ playereffects.register_effect_type("pepmole", S("Mole mode"), "pep_mole.png", {"
|
|||
pep.disable_mole_mode(player:get_player_name())
|
||||
end
|
||||
)
|
||||
playereffects.register_effect_type("pepglow", S("Glow"), "pep_glow.png", {"glow"},
|
||||
function(player)
|
||||
player:set_properties({glow=minetest.LIGHT_MAX})
|
||||
end,
|
||||
function(effect, player)
|
||||
player:set_properties({glow=0})
|
||||
end
|
||||
)
|
||||
|
||||
pep.register_potion({
|
||||
basename = "speedplus",
|
||||
|
@ -330,13 +319,6 @@ pep.register_potion({
|
|||
effect_type = "pepmole",
|
||||
duration = 18,
|
||||
})
|
||||
pep.register_potion({
|
||||
basename = "glow",
|
||||
contentstring = S("Glow Potion"),
|
||||
longdesc = S("Drinking it will make you glow. The effect lasts for 60 seconds."),
|
||||
effect_type = "pepglow",
|
||||
duration = 60,
|
||||
})
|
||||
if(minetest.get_modpath("mana")~=nil) then
|
||||
pep.register_potion({
|
||||
basename = "manaregen",
|
||||
|
@ -362,8 +344,7 @@ if(minetest.get_modpath("default")~=nil) then
|
|||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "pep:breath",
|
||||
recipe = { "default:papyrus", "default:papyrus", "default:papyrus", "default:papyrus",
|
||||
"default:papyrus", "default:papyrus", "default:papyrus", "default:papyrus", "vessels:glass_bottle" }
|
||||
recipe = { "default:coral_cyan", "default:coral_green", "default:coral_pink", "vessels:glass_bottle" }
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
|
@ -411,7 +392,7 @@ if(minetest.get_modpath("default")~=nil) then
|
|||
type = "shapeless",
|
||||
output = "pep:manaregen2",
|
||||
recipe = { "default:dry_shrub", "default:dry_shrub", "default:dry_shrub", "default:dry_shrub", "default:junglesapling",
|
||||
"default:acacia_sapling", "default:mese_crystal_fragment", "pep:manaregen" }
|
||||
"default:marram_grass_1", "default:mese_crystal_fragment", "pep:manaregen" }
|
||||
})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue