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:
parent
347216d654
commit
a244e367ea
2 changed files with 137 additions and 51 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue