1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add get_wielded_itemstring, get_wielded_item, damage_wielded_item and make getacceleration visible in API

This commit is contained in:
Perttu Ahola 2011-11-30 20:36:07 +02:00
parent 347216d654
commit a244e367ea
2 changed files with 137 additions and 51 deletions

View file

@ -85,6 +85,10 @@
-- - add_to_inventory_later(itemstring): like above, but after callback returns (only allowed for craftitem callbacks)
-- - get_hp(): returns number of hitpoints (2 * number of hearts)
-- - set_hp(hp): set number of hitpoints (2 * number of hearts)
-- LuaEntitySAO-only:
-- - setvelocity(self, {x=num, y=num, z=num})
-- - setacceleration(self, {x=num, y=num, z=num})
-- - getacceleration(self)
-- - settexturemod(mod)
-- - setsprite(p={x=0,y=0}, num_frames=1, framelength=0.2,
-- - select_horiz_by_yawpitch=false)