1
0
Fork 0
MineClone2/mods
kabou 521fc1972a 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.
2022-05-06 15:09:23 +02:00
..
CORE lift clouds to 384 in valleys mapgen 2022-04-19 10:23:10 +00:00
ENTITIES Replace black dye with "mcl_mobitems:ink_sac". 2022-05-06 15:09:23 +02:00
ENVIRONMENT Fix warning in mcl_weather 2022-05-02 21:47:33 +02:00
HELP Replace grass path with dirt path 2022-04-25 15:33:01 +02:00
HUD Remove 2D preview 2022-05-04 23:15:11 +00:00
ITEMS Bonemealing mechanics bugfix. 2022-05-06 15:09:23 +02:00
MAPGEN Use uncarved pumpkin instead of carved in mapgen 2022-04-22 18:07:37 +00:00
MISC Fix typo and interact bug? 2022-03-27 18:08:43 +02:00
PLAYER Remove 2D preview 2022-05-04 23:15:11 +00:00