mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
Add get_wielded_itemstring, get_wielded_item, damage_wielded_item and make getacceleration visible in API
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user