Compare commits

..

No commits in common. "master" and "1.4.0" have entirely different histories.

9 changed files with 118 additions and 107 deletions

View file

@ -1,2 +0,0 @@
Wuzzy <Wuzzy@disroot.org> <Wuzzy2@mail.ru>
Wuzzy <Wuzzy@disroot.org> <almikes@aol.com>

View file

@ -1,5 +1,5 @@
# Pep: Player Effect Potions
Version 1.5.0
# Pep: Player Effects Potions
Version 1.4.0
## Introduction
This little mod adds some simple potions which add temporary effects when consumed.
@ -13,7 +13,7 @@ All crafting recipes are shapeless.
### Breath
#### Air potion
Gives you breath underwater for 30s.
Craft: 1 cyan coral, 1 green coral, 1 pink coral, 1 glass bottle.
Craft: 8 papyri, 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 marram grass, 1 mese crystal fragment, 1 weak mana potion.
Craft: 4 dry shrubs, 1 jungle sapling, 1 acacia tree sapling, 1 mese crystal fragment, 1 weak mana potion.
### Other potions
#### Mole potion

8
depends.txt Normal file
View file

@ -0,0 +1,8 @@
playereffects
playerphysics?
default?
vessels?
flowers?
farming?
mana?
intllib?

1
description.txt Normal file
View file

@ -0,0 +1 @@
Adds potions with temporary player effects.

View file

@ -1,4 +1,10 @@
local S = minetest.get_translator("pep")
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
local ppa = minetest.get_modpath("playerphysics")
pep = {}
@ -17,7 +23,7 @@ function pep.register_potion(potiondef)
end
end
minetest.register_craftitem("pep:"..potiondef.basename, {
description = S("Glass Bottle (@1)", potiondef.contentstring),
description = string.format(S("Glass Bottle (%s)"), potiondef.contentstring),
_doc_items_longdesc = potiondef.longdesc,
_doc_items_usagehelp = S("Hold it in your hand, then left-click to drink it."),
inventory_image = "pep_"..potiondef.basename..".png",
@ -56,9 +62,12 @@ end
function pep.moledig(playername)
local player = minetest.get_player_by_name(playername)
local yaw = player:get_look_horizontal()
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 pos = vector.round(player:get_pos())
local pos = vector.round(player:getpos())
local v = pep.yaw_to_vector(yaw)
@ -344,7 +353,8 @@ if(minetest.get_modpath("default")~=nil) then
minetest.register_craft({
type = "shapeless",
output = "pep:breath",
recipe = { "default:coral_cyan", "default:coral_green", "default:coral_pink", "vessels:glass_bottle" }
recipe = { "default:papyrus", "default:papyrus", "default:papyrus", "default:papyrus",
"default:papyrus", "default:papyrus", "default:papyrus", "default:papyrus", "vessels:glass_bottle" }
})
minetest.register_craft({
type = "shapeless",
@ -392,7 +402,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:marram_grass_1", "default:mese_crystal_fragment", "pep:manaregen" }
"default:acacia_sapling", "default:mese_crystal_fragment", "pep:manaregen" }
})
end

45
locale/de.txt Normal file
View file

@ -0,0 +1,45 @@
Air Potion = Lufttrank
Drinking it gives you breath underwater for 30 seconds. = Trinken Sie dies, um im Wasser für 30 Sekunden lang einen perfekten Atem zu haben.
Drinking it makes you regenerate health quickly. Every second you get 2 HP, 10 times in total. = Trinken Sie dies, um Ihre Gesundheit zu regenerieren. Jede Sekunde erhalten Sie 2 TP, und das insgesamt 10 mal.
Drinking it makes you regenerate health. Every 2 seconds, you get 1 HP, 10 times in total. = Trinken Sie dies, um Ihre Gesundheit zu regenerieren. Alle 2 Sekunden erhalten Sie 1 TP, und das insgesamt 10 mal.
Drinking it will increase your mana regeneration rate by 0.5 for 10 seconds. = Trinken Sie dies, um Ihre Manaregenerierungsrate für 10 Sekunden um 0,5 zu erhöhen.
Drinking it will increase your mana regeneration rate by 1 for 10 seconds. = Trinken Sie dies, um Ihre Manaregenerierungsrate für 10 Sekunden um 1 zu erhöhen.
Drinking it will make you jump higher for 30 seconds. = Trinken Sie dies, um für 30 Sekunden lang höher springen zu können.
Drinking it will make you jump lower for 30 seconds. = Trinken Sie dies, um für 30 Sekunden lang Ihre Sprunghöhe zu reduzieren.
Drinking it will make you run faster for 30 seconds. = Trinken Sie dies, um für 30 Sekunden lang schneller laufen zu können.
Drinking it will make you walk slower for 30 seconds. = Trinken Sie dies, um für 30 Sekunden lang Ihre Gehschwindigkeit zu reduzieren.
Drinking it will start an effect which will magically attempt to mine any two blocks in front of you horizontally, as if you were using a steel pickaxe on them. The effect lasts for 18 seconds. = Wenn Sie diesen Trank trinken, wird eine Wirkung ausgelöst, welche auf magische Weise versucht, die beiden Blöcke horizontal vor Ihnen abzubauen, als ob Sie eine Stahlspitzhacke auf sie anwenden würden. Die Wirkung dauert 18 Sekunden.
Drinking it will stop all gravity effects you currently have. = Trinken Sie dies, um alle Schwerkraftwirkungen, die Sie momentan haben, aufzuheben.
Drinking it will stop all jumping effects you may currently have. = Trinken Sie dies, um alle Sprungwirkungen, die Sie momentan haben, aufzuheben.
Drinking it will stop all speed effects you may currently have. = Trinken Sie dies, um alle Geschwindigkeitswirkungen, die Sie momentan haben, aufzuheben.
Glass Bottle (%s) = Glasflasche (%s)
Gravity Neutralizer = Schwerkraftneutralisator
Gravity neutralizer = Schwerkraftneutralisator
High Jumping Potion = Hochsprungtrank
High jump = Hochsprung
High speed = Schnell
# »ihn« = der Trank
Hold it in your hand, then left-click to drink it. = Halten Sie ihn in Ihrer Hand, dann klicken Sie mit der linken Maustaste, um ihn zu trinken.
Jump Neutralizer = Sprungneutralisator
Jump height neutralizer = Sprunghöhenneutralisator
Low Jumping Potion = Tiefsprungtrank
Low jump = Tiefsprung
Low speed = Langsam
Mole Potion = Maulwurfstrank
Mole mode = Maulwurfsmodus
No gravity = Schwerelos
Non-Gravity Potion = Schwerelosigkeitstrank
Perfect breath = Perfekter Atem
Regeneration = Regeneration
Running Potion = Lauftrank
Slug Potion = Schneckentrank
Speed Neutralizer = Temponeutralisator
Speed neutralizer = Temponeutralisator
Strong Healing Potion = Starker Heiltrank
Strong Mana Potion = Starker Manatrank
Strong mana boost = Staker Manaschub
Strong regeneration = Starke Regeneration
Weak Healing Potion = Schwacher Heiltrank
Weak Mana Potion = Schwacher Manatrank
Weak mana boost = Schwacher Manaschub
When you drink this potion, gravity stops affecting you, as if you were in space. The effect lasts for 20 seconds. = Wenn Sie diesen Trank trinken, wird die Schwerkraft Sie nicht mehr beeinflussen, als ob Sie im Weltall wären. Die Wirkung hält für 20 Sekunden an.

View file

@ -1,46 +0,0 @@
# textdomain: pep
Air Potion=Lufttrank
Drinking it gives you breath underwater for 30 seconds.=Trinken Sie dies, um im Wasser für 30 Sekunden lang einen perfekten Atem zu haben.
Drinking it makes you regenerate health quickly. Every second you get 2 HP, 10 times in total.=Trinken Sie dies, um Ihre Gesundheit zu regenerieren. Jede Sekunde erhalten Sie 2 TP, und das insgesamt 10 mal.
Drinking it makes you regenerate health. Every 2 seconds, you get 1 HP, 10 times in total.=Trinken Sie dies, um Ihre Gesundheit zu regenerieren. Alle 2 Sekunden erhalten Sie 1 TP, und das insgesamt 10 mal.
Drinking it will increase your mana regeneration rate by 0.5 for 10 seconds.=Trinken Sie dies, um Ihre Manaregenerierungsrate für 10 Sekunden um 0,5 zu erhöhen.
Drinking it will increase your mana regeneration rate by 1 for 10 seconds.=Trinken Sie dies, um Ihre Manaregenerierungsrate für 10 Sekunden um 1 zu erhöhen.
Drinking it will make you jump higher for 30 seconds.=Trinken Sie dies, um für 30 Sekunden lang höher springen zu können.
Drinking it will make you jump lower for 30 seconds.=Trinken Sie dies, um für 30 Sekunden lang Ihre Sprunghöhe zu reduzieren.
Drinking it will make you run faster for 30 seconds.=Trinken Sie dies, um für 30 Sekunden lang schneller laufen zu können.
Drinking it will make you walk slower for 30 seconds.=Trinken Sie dies, um für 30 Sekunden lang Ihre Gehschwindigkeit zu reduzieren.
Drinking it will start an effect which will magically attempt to mine any two blocks in front of you horizontally, as if you were using a steel pickaxe on them. The effect lasts for 18 seconds.=Wenn Sie diesen Trank trinken, wird eine Wirkung ausgelöst, welche auf magische Weise versucht, die beiden Blöcke horizontal vor Ihnen abzubauen, als ob Sie eine Stahlspitzhacke auf sie anwenden würden. Die Wirkung dauert 18 Sekunden.
Drinking it will stop all gravity effects you currently have.=Trinken Sie dies, um alle Schwerkraftwirkungen, die Sie momentan haben, aufzuheben.
Drinking it will stop all jumping effects you may currently have.=Trinken Sie dies, um alle Sprungwirkungen, die Sie momentan haben, aufzuheben.
Drinking it will stop all speed effects you may currently have.=Trinken Sie dies, um alle Geschwindigkeitswirkungen, die Sie momentan haben, aufzuheben.
Glass Bottle (@1)=Glasflasche (@1)
Gravity Neutralizer=Schwerkraftneutralisator
Gravity neutralizer=Schwerkraftneutralisator
High Jumping Potion=Hochsprungtrank
High jump=Hochsprung
High speed=Schnell
# »ihn«=der Trank
Hold it in your hand, then left-click to drink it.=Halten Sie ihn in Ihrer Hand, dann klicken Sie mit der linken Maustaste, um ihn zu trinken.
Jump Neutralizer=Sprungneutralisator
Jump height neutralizer=Sprunghöhenneutralisator
Low Jumping Potion=Tiefsprungtrank
Low jump=Tiefsprung
Low speed=Langsam
Mole Potion=Maulwurfstrank
Mole mode=Maulwurfsmodus
No gravity=Schwerelos
Non-Gravity Potion=Schwerelosigkeitstrank
Perfect breath=Perfekter Atem
Regeneration=Regeneration
Running Potion=Lauftrank
Slug Potion=Schneckentrank
Speed Neutralizer=Temponeutralisator
Speed neutralizer=Temponeutralisator
Strong Healing Potion=Starker Heiltrank
Strong Mana Potion=Starker Manatrank
Strong mana boost=Staker Manaschub
Strong regeneration=Starke Regeneration
Weak Healing Potion=Schwacher Heiltrank
Weak Mana Potion=Schwacher Manatrank
Weak mana boost=Schwacher Manaschub
When you drink this potion, gravity stops affecting you, as if you were in space. The effect lasts for 20 seconds.=Wenn Sie diesen Trank trinken, wird die Schwerkraft Sie nicht mehr beeinflussen, als ob Sie im Weltall wären. Die Wirkung hält für 20 Sekunden an.

View file

@ -1,4 +1,3 @@
# textdomain: pep
Air Potion =
Drinking it gives you breath underwater for 30 seconds. =
Drinking it makes you regenerate health quickly. Every second you get 2 HP, 10 times in total. =
@ -13,7 +12,7 @@ Drinking it will start an effect which will magically attempt to mine any two bl
Drinking it will stop all gravity effects you currently have. =
Drinking it will stop all jumping effects you may currently have. =
Drinking it will stop all speed effects you may currently have. =
Glass Bottle (@1)=
Glass Bottle (%s) =
Gravity Neutralizer =
Gravity neutralizer =
High Jumping Potion =

View file

@ -1,5 +1 @@
name = pep
title = Player Effect Potions
description = Adds potions with temporary player effects.
depends = playereffects
optional_depends = playerphysics, default, vessels, flowers, farming, mana