mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Add poison effect for pufferfish, remove mcl_hunger control for pufferfish effect
This commit is contained in:
parent
1563fc7b96
commit
acea309564
@ -417,8 +417,7 @@ minetest.register_craftitem("mcl_fishing:clownfish_raw", {
|
||||
_mcl_saturation = 0.2,
|
||||
})
|
||||
|
||||
-- Pufferfish
|
||||
-- TODO: Add real status effect
|
||||
|
||||
minetest.register_craftitem("mcl_fishing:pufferfish_raw", {
|
||||
description = S("Pufferfish"),
|
||||
_tt_help = minetest.colorize("#FFFF00", S("Very poisonous")),
|
||||
@ -428,5 +427,14 @@ minetest.register_craftitem("mcl_fishing:pufferfish_raw", {
|
||||
on_secondary_use = minetest.item_eat(1),
|
||||
stack_max = 64,
|
||||
groups = { food=2, eatable=1, brewitem = 1 },
|
||||
_mcl_saturation = 0.2,
|
||||
-- _mcl_saturation = 0.2,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_on_item_eat(function (hp_change, replace_with_item, itemstack, user, pointed_thing)
|
||||
|
||||
if itemstack:get_name() == "mcl_fishing:pufferfish_raw" then
|
||||
mcl_potions.poison_func(user, 1.25, 7)
|
||||
end
|
||||
|
||||
end )
|
||||
|
@ -8,4 +8,4 @@ mcl_hunger.register_food("mcl_mobitems:rotten_flesh", 4, "", 30, 0, 100, 80)
|
||||
mcl_hunger.register_food("mcl_mobitems:chicken", 2, "", 30, 0, 100, 30)
|
||||
mcl_hunger.register_food("mcl_mobitems:spider_eye", 2, "", 4, 1, 0)
|
||||
|
||||
mcl_hunger.register_food("mcl_fishing:pufferfish_raw", 1, "", 60, 1, 300)
|
||||
-- mcl_hunger.register_food("mcl_fishing:pufferfish_raw", 1, "", 60, 1, 300)
|
||||
|
Loading…
Reference in New Issue
Block a user