mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-07-07 02:40:27 +02:00
Toolranks support: minor changes
Reword documentation in README.md, fix a typo in init.lua and enable toolranks even if def.original_description exists---but do not overwrite it.
This commit is contained in:
@ -26,7 +26,7 @@ throwing.bow_cooldown = 0.2
|
||||
|
||||
There are two available functions in the mod API:
|
||||
```lua
|
||||
function throwing.register_bow(name, definition, no_toolranks)
|
||||
function throwing.register_bow(name, definition)
|
||||
--[[
|
||||
Name: Bow name. If it doesn't contain ":", the "throwing:" prefix will be added.
|
||||
Definition: definition table, containing:
|
||||
@ -49,7 +49,7 @@ Definition: definition table, containing:
|
||||
* function spawn_arrow_entity(position, arrow, player): defaults to throwing.spawn_arrow_entity
|
||||
* sound: sound to be played when the bow is used
|
||||
* delay: delay before throwing the arrow
|
||||
* no_toolranks: Disable toolranks support on this item. Defaults to false.
|
||||
* no_toolranks: If true, toolranks support is disabled for this item. Defaults to false.
|
||||
]]
|
||||
|
||||
-- Example:
|
||||
|
Reference in New Issue
Block a user