Added some potion recipes

Also:
* changed the duration of saturation and food poisoning potions
* minor code changes
This commit is contained in:
the-real-herowl 2024-04-17 22:52:25 +02:00
parent 8f4d5d2e27
commit 78ae5ddc26
2 changed files with 21 additions and 21 deletions

@ -401,18 +401,14 @@ local awkward_table = {
["mcl_flowers:fourleaf_clover"] = "mcl_potions:luck", ["mcl_flowers:fourleaf_clover"] = "mcl_potions:luck",
["mcl_farming:potato_item_poison"] = "mcl_potions:nausea", ["mcl_farming:potato_item_poison"] = "mcl_potions:nausea",
-- TODO slow falling ["mcl_mobitems:phantom_membrane"] = "mcl_potions:slow_falling", -- TODO add phantom membranes
-- TODO levitation? ["mcl_core:apple_gold"] = "mcl_potions:resistance",
-- TODO darkness?
-- TODO absorption -- TODO darkness - sculk?
-- TODO health boost? -- TODO absorption - water element?
-- TODO resistance -- TODO turtle master - earth element?
-- TODO turtle master? -- TODO frost - frost element?
-- TODO frost -- TODO haste - air element?
-- TODO blindness?
-- TODO food poisoning?
-- TODO saturation?
-- TODO haste
} }
-- API -- API
-- register a potion recipe brewed from awkward potion -- register a potion recipe brewed from awkward potion
@ -450,7 +446,10 @@ end
mcl_potions.register_ingredient_potion("mcl_potions:mundane", mundane_table) mcl_potions.register_ingredient_potion("mcl_potions:mundane", mundane_table)
local thick_table = { local thick_table = {
-- TODO glowing from some shining cave flowers ["mcl_crimson:shroomlight"] = "mcl_potions:glowing",
["mcl_mobitems:nether_star"] = "mcl_potions:ominous",
["mcl_mobitems:ink_sac"] = "mcl_potions:blindness",
["mcl_farming:carrot_item_gold"] = "mcl_potions:saturation",
} }
-- API -- API
-- register a potion recipe brewed from thick potion -- register a potion recipe brewed from thick potion
@ -495,6 +494,9 @@ local inversion_table = {
["mcl_potions:poison"] = "mcl_potions:harming", ["mcl_potions:poison"] = "mcl_potions:harming",
["mcl_potions:luck"] = "mcl_potions:bad_luck", ["mcl_potions:luck"] = "mcl_potions:bad_luck",
["mcl_potions:haste"] = "mcl_potions:fatigue", ["mcl_potions:haste"] = "mcl_potions:fatigue",
["mcl_potions:saturation"] = "mcl_potions:food_poisoning",
["mcl_potions:slow_falling"] = "mcl_potions:levitation",
["mcl_potions:absorption"] = "mcl_potions:health_boost",
} }
-- API -- API
function mcl_potions.register_inversion_recipe(input, output) function mcl_potions.register_inversion_recipe(input, output)
@ -529,9 +531,9 @@ local lingering_table = {}
for potion, def in pairs(potions) do for potion, def in pairs(potions) do
if def.has_splash then if def.has_splash then
splash_table[potion] = potion.."_splash" splash_table[potion] = potion.."_splash"
end if def.has_lingering then
if def.has_lingering then lingering_table[potion.."_splash"] = potion.."_lingering"
lingering_table[potion.."_splash"] = potion.."_lingering" end
end end
end end
mcl_potions.register_table_modifier("mcl_mobitems:gunpowder", splash_table) mcl_potions.register_table_modifier("mcl_mobitems:gunpowder", splash_table)

@ -764,7 +764,7 @@ mcl_potions.register_potion({
_longdesc = S("Moves bowels too fast."), _longdesc = S("Moves bowels too fast."),
color = "#83A061", color = "#83A061",
_effect_list = { _effect_list = {
food_poisoning = {}, food_poisoning = {dur=mcl_potions.DURATION_POISON},
}, },
has_arrow = true, has_arrow = true,
-- TODO implement effect stacking? -- TODO implement effect stacking?
@ -777,7 +777,7 @@ mcl_potions.register_potion({
_longdesc = S("Satisfies hunger."), _longdesc = S("Satisfies hunger."),
color = "#CEAE29", color = "#CEAE29",
_effect_list = { _effect_list = {
saturation = {}, saturation = {dur=mcl_potions.DURATION_POISON},
}, },
has_arrow = true, has_arrow = true,
}) })
@ -817,9 +817,7 @@ mcl_potions.register_potion({
"^mcl_potions_potion_bottle.png", "^mcl_potions_potion_bottle.png",
}), }),
_effect_list = { _effect_list = {
bad_omen = { bad_omen = {dur = 6000},
dur = 6000,
},
}, },
has_splash = false, has_splash = false,
has_lingering = false, has_lingering = false,