MineClone2/mods/ITEMS
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
..
mcl_amethyst Add and fix some german translations 2024-01-08 13:35:41 +00:00
mcl_anvils Fix some formspecs on mobile (#4456) 2024-06-24 03:26:02 +02:00
mcl_armor Fix some typos in the API documentation (#4630) 2024-09-12 18:13:52 +02:00
mcl_armor_stand Update russian translation 2023-08-31 14:16:42 +08:00
mcl_bamboo Changed bamboo cap drawtype (#4658) 2024-11-02 21:04:00 +01:00
mcl_banners Merge pull request 'Rover and Stalker' (#4282) from rover_stalker into master 2024-05-22 19:01:14 +00:00
mcl_barrels Enter more translations 2024-08-31 16:39:43 +02:00
mcl_beacons Fix formspec code that reads strength button field (#4385) 2024-06-11 18:40:44 +02:00
mcl_beds Fix orange->orange(r/s) where needed, synchronize mods/ITEMS/mcl_colorblocks/locale/mcl_colorblocks.de.tr with template.txt 2024-08-31 16:39:43 +02:00
mcl_beehives More translations 2024-08-31 16:39:43 +02:00
mcl_bells Add more German translations from Laudrin 2024-08-31 16:39:43 +02:00
mcl_blackstone Add corrections to existing German translations 2024-08-31 16:39:43 +02:00
mcl_blast_furnace More translations 2024-08-31 16:39:43 +02:00
mcl_bone_meal Bonemealing mechanics bugfix. 2024-11-09 20:24:02 -06:00
mcl_books Update to comply with coding guidelines 2024-04-27 08:41:09 +00:00
mcl_bows Improve shield block code and unhardcode offhand group 2024-11-10 01:34:50 +01:00
mcl_brewing Update hardness and blast res for value not matching the wiki 2024-08-18 04:47:12 +02:00
mcl_buckets Fix some typos in the API documentation (#4630) 2024-09-12 18:13:52 +02:00
mcl_cake Update russian translation 2023-08-31 14:16:42 +08:00
mcl_campfires Clean-up set_string(..., nil) usage (fixes #4639) (#4641) 2024-09-16 12:12:55 +02:00
mcl_cartography_table Change MineClone 2 to VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_cauldrons Cauldron leather armor washing 2024-02-02 03:05:57 +00:00
mcl_cherry_blossom Fix incorrect usages of math.random (#4621) 2024-09-07 14:58:12 +02:00
mcl_chests Fix invalid global call in mcl_chests LBM (#4667) 2024-09-29 13:34:20 +02:00
mcl_clock Update russian translation 2023-08-31 14:16:42 +08:00
mcl_cocoas Bonemealing mechanics bugfix. 2024-11-09 20:24:02 -06:00
mcl_colorblocks Address review comments on translations/grammar 2024-08-31 16:39:43 +02:00
mcl_compass Fix several hardness and blast resistance values 2024-08-18 04:46:19 +02:00
mcl_composters Update to new bone meal API. 2024-11-09 20:24:02 -06:00
mcl_compressed_blocks Remove extra line at end of file 2024-08-31 16:39:43 +02:00
mcl_copper Add new german translations for mcl_copper 2024-08-31 16:39:43 +02:00
mcl_core Add bonemealing callback to saplings. 2024-11-09 20:24:02 -06:00
mcl_crafting_table Improve french translation (#4194) 2024-03-07 20:04:02 +00:00
mcl_crimson Fix two additional dependency issues 2024-09-15 22:25:44 +02:00
mcl_deepslate Allow deepslate copper to be mined with stone pickaxe (#4635) 2024-09-18 10:11:55 +02:00
mcl_doors Fix some typos in the API documentation (#4630) 2024-09-12 18:13:52 +02:00
mcl_dye Move cocoa beans item to mcl_cocoas. 2024-11-09 20:24:02 -06:00
mcl_enchanting Update English translation keys with soul soil 2024-09-18 10:06:03 +02:00
mcl_end Update hardness and blast res for value not matching the wiki 2024-08-18 04:47:12 +02:00
mcl_farming Keep same selection box size 2024-11-09 20:24:02 -06:00
mcl_fences Fix missing dependencies for random_mod_load_order 2024-09-15 22:25:44 +02:00
mcl_fire Fixes flint and steel adding wear when not setting node on fire (#4368) 2024-06-16 18:33:19 +02:00
mcl_fireworks Update more documentation to use VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_fishing Last of the translations provided that have existing translation code for translating strings 2024-08-31 16:39:43 +02:00
mcl_fletching_table Enter more translations 2024-08-31 16:39:43 +02:00
mcl_flowerpots mcl_flowerpots pt_BR translation 2023-12-22 23:45:07 +01:00
mcl_flowers Use better override mechanism. 2024-11-09 20:24:02 -06:00
mcl_furnaces Change MineClone 2 to VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_grindstone Fix missing dependencies for random_mod_load_order 2024-09-15 22:25:44 +02:00
mcl_hamburger Update more documentation to use VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_heads Fix old angled heads not being converted (#4627) 2024-09-08 04:26:51 +02:00
mcl_honey Change honeycomb to use same right-click logic recently added to buckets and bottles 2024-08-31 19:37:14 +02:00
mcl_hoppers Fix up formspecs on pre-0.87.0 beacons, fix typo 2024-05-30 10:51:45 +00:00
mcl_itemframes Last of the translations provided that have existing translation code for translating strings 2024-08-31 16:39:43 +02:00
mcl_jukebox Change MineClone 2 to VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_lanterns Remove extra line at end of file 2024-08-31 16:39:43 +02:00
mcl_lectern Update hardness and blast res for value not matching the wiki 2024-08-18 04:47:12 +02:00
mcl_lightning_rods Add German translation for mcl_lightning_rods 2024-08-31 16:39:43 +02:00
mcl_loom Remove extra line at end of file 2024-08-31 16:39:43 +02:00
mcl_mangrove Fix crash when growing kelp into water logged mangrove roots 2024-08-18 19:21:19 +02:00
mcl_maps mcl_maps pt_BR translation 2023-12-22 23:45:07 +01:00
mcl_mobitems Finish restoring inadvertently removed translations 2024-08-31 16:39:43 +02:00
mcl_mobspawners Address review comments 2024-09-16 13:32:06 +02:00
mcl_monster_eggs Make monster eggs' hardness consistent with MC 2024-08-18 04:46:19 +02:00
mcl_mud mcl_mud pt_BR translation 2023-12-22 23:45:07 +01:00
mcl_mushrooms Add bonemealing callback to small mushrooms. 2024-11-09 20:24:02 -06:00
mcl_nether Add German translations for Netherite Scrap/Ingot 2024-08-31 16:39:43 +02:00
mcl_ocean Don't make 'ignore' nodes break bamboo or kelp (#4551) 2024-09-29 13:57:52 +02:00
mcl_portals Update matrix link, update git link in source code and one module README that has a link to git 2024-05-07 11:38:00 +00:00
mcl_potions Fix getting water back into bottle 2024-08-28 06:30:12 -05:00
mcl_raw_ores Add more German translations to mcl_raw_ores 2024-08-31 16:39:43 +02:00
mcl_sculk Update hardness and blast res for value not matching the wiki 2024-08-18 04:47:12 +02:00
mcl_shepherd Start installing the German translations from #4333 2024-08-31 16:39:43 +02:00
mcl_shields Improve shield block code and unhardcode offhand group 2024-11-10 01:34:50 +01:00
mcl_signs Address review comments on translations/grammar 2024-08-31 16:39:43 +02:00
mcl_smithing_table Fix taking items out of protected smithing tables 2024-11-02 21:00:19 +01:00
mcl_smoker Enter more translations 2024-08-31 16:39:43 +02:00
mcl_sponges Revert "WaterLoggedRootsKelpFix (#3994)" 2024-08-18 19:21:19 +02:00
mcl_spyglass Add German translation for mcl_spyglass 2024-08-31 16:39:43 +02:00
mcl_stairs Convert stairs to nodebox 2024-08-31 19:52:41 +02:00
mcl_starting_inventory Update more documentation to use VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_stonecutter Clean-up set_string(..., nil) usage (fixes #4639) (#4641) 2024-09-16 12:12:55 +02:00
mcl_sus_stew Add German translation for Suspicious Stew 2024-08-31 16:39:43 +02:00
mcl_throwing Make eggs spawn chicks when hitting entities (#4484) 2024-07-31 02:57:20 +02:00
mcl_tnt Stop tnt colliding with entities (#4476) 2024-08-18 05:40:25 +02:00
mcl_tools Improved tool tooltips (#4306) 2024-05-22 18:55:07 +00:00
mcl_torches Update more documentation to use VoxeLibre 2024-05-07 11:38:00 +00:00
mcl_totems mcl_totems pt_BR translation 2023-12-22 23:45:07 +01:00
mcl_walls Add back *some* changes that I reverted; and fix typo "Cherry Gate" 2024-08-18 04:47:19 +02:00
mcl_wool Improve blocks translation in French 2024-05-19 15:10:04 +02:00
mclx_core mclx_core pt_BR translation 2023-12-22 23:45:07 +01:00
mclx_fences mclx_fences pt_BR translation 2023-12-22 23:45:07 +01:00
mclx_stairs Un-hardcode most slabs and stairs 2024-08-18 04:46:19 +02:00
REDSTONE Fix missing dependencies for random_mod_load_order 2024-09-15 22:25:44 +02:00
screwdriver Change MineClone 2 to VoxeLibre 2024-05-07 11:38:00 +00:00
vl_hollow_logs Add more German translations to vl_hollow_logs 2024-08-31 16:39:43 +02:00
xpanes Update russian translation 2023-08-31 14:16:42 +08:00
modpack.conf Add a couple of modpack.conf files 2019-01-07 00:52:05 +01:00