VoxeLibre/mods/ITEMS/mcl_cocoas
kabou 8acddab74f Bonemealing mechanics bugfix.
When applying bonemeal to eg. farm crops, these have a chance to grow in
response to the application of bone meal. When a node can be bonemealed, the
applied bone meal item should always be spent after using it, regardless of
the results.  Currently this does not work correctly, if the result of
bonemealing has no effect on the node, the used bone meal item is not spent.

This commit fixes the behavior of the bone meal item to always be taken when
used on a node that defines a `_mcl_on_bonemealing()` callback.

The nodes that implement the callback imay use the handler's return value
only to signal if the bonemealing was succesful, not to signal if it was at
all possible.  For this reason, some nodes need to be made more strictly
conforming to the API.

* Always take the used bone meal item (if user is not in creative mode),
  regardless of whether the bonemealed node's handler returned `true`.
* Make dispensers spawn particles after succesful bonemealing.
* Trivial comment fix.
* Ripe cocoa pod cannot be bonemealed.
* Update API.md to describe the stricter API semantics.
2024-11-09 20:24:02 -06:00
..
locale Move cocoa beans item to mcl_cocoas. 2024-11-09 20:24:02 -06:00
models Upload files to 'mods/ITEMS/mcl_cocoas/models' 2022-11-16 13:44:35 +00:00
init.lua Bonemealing mechanics bugfix. 2024-11-09 20:24:02 -06:00
mod.conf fixes in mcl_cocoas 2021-03-15 09:02:45 +01:00
README.txt Rename mcl_cocoa to mcl_cocoas 2017-02-18 16:10:55 +01:00

This mod adds cocoas.
Cocoas grow at jungle trees in 3 stages and can be harvested for cocoa beans.
Cocoa beans can be used to plant new cocoas at jungle trees.

Partially based on the cocoas from Farming Redo by TenPlus1.