How to use item for character by script?
Posted: Tue Jan 08, 2019 4:11 pm
I want to make a feature that auto using raw-fish if character's health is low.
for raw-fish, i can use LuaItemStack::count to decrease the raw-fish in inventory, and heal the character by LuaEntity::damage.
But If i want to use grenade by script, it can't implement in the same way.
for raw-fish, i can use LuaItemStack::count to decrease the raw-fish in inventory, and heal the character by LuaEntity::damage.
But If i want to use grenade by script, it can't implement in the same way.