Begin Update Development: "The Something Update"
This commit is contained in:
@@ -50,7 +50,6 @@ PyuTest.make_sword = function (nsname, desc, texture, damage, durability, atkspe
|
||||
end
|
||||
|
||||
PyuTest.make_food = function (nsname, desc, wield_image, health_fill, cook_into, extra_code)
|
||||
local code = extra_code or function()end
|
||||
|
||||
PyuTest.make_item(nsname, desc, {
|
||||
food = 1
|
||||
@@ -59,7 +58,7 @@ PyuTest.make_food = function (nsname, desc, wield_image, health_fill, cook_into,
|
||||
if user == nil then return end
|
||||
minetest.sound_play({name = "eat", gain = 1}, {pos = user:get_pos(), start_time = 1.2})
|
||||
minetest.do_item_eat(health_fill, "", itemstack, user, pt)
|
||||
code()
|
||||
if extra_code then extra_code() end
|
||||
end,
|
||||
__pyutest_cook_into = cook_into
|
||||
})
|
||||
|
Reference in New Issue
Block a user