mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-07-05 09:50:24 +02:00
Add a throw_itself field to throwing.register_bow definition table
This commit is contained in:
@ -41,6 +41,9 @@ Definition: definition table, containing:
|
||||
- itemstack: the itemstack of the bow
|
||||
- should return true if the shot can be made, and false otherwise
|
||||
- default for this is function(player, itemstack) return throwing.is_arrow(itemstack) end
|
||||
* throw_itself (optional): whether the bow should throw itself instead of the arrow next to it in the inventory.
|
||||
If present, allow_shot is ignored.
|
||||
Default is false.
|
||||
]]
|
||||
|
||||
-- Example:
|
||||
|
Reference in New Issue
Block a user