1
0
Fork 0
MineClone2/mods/ITEMS
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
..
REDSTONE remove ancient backup "init_new.lua" 2022-05-05 04:05:08 +00:00
mcl_amethyst Fix texture and sound names in `mcl_amethyst` 2022-05-05 22:49:23 +02:00
mcl_anvils mcl_anvils 2022-02-23 23:58:05 +01:00
mcl_armor Remove preview files 2022-05-04 23:15:11 +00:00
mcl_armor_stand mcl_armor_stand 2022-02-23 23:58:05 +01:00
mcl_banners Fix typo/crash 2022-03-23 18:30:34 +00:00
mcl_barrels barrel protection fix + log 2022-03-25 13:28:33 +01:00
mcl_beds fix beds dropping when burning up 2022-02-25 00:08:26 +00:00
mcl_bone_meal Bonemealing mechanics bugfix. 2022-05-06 15:09:23 +02:00
mcl_books Replace black dye with "mcl_mobitems:ink_sac". 2022-05-06 15:09:23 +02:00
mcl_bows Add shield 2022-03-15 15:58:27 +01:00
mcl_brewing Change some crafting recipes to use group:cobble. 2022-05-04 15:54:12 +02:00
mcl_buckets mcl_buckets 2022-02-23 23:58:05 +01:00
mcl_cake Add `compostability` to node definition group. 2022-04-02 03:32:56 +02:00
mcl_cauldrons mcl_cauldrons 2022-02-23 23:58:05 +01:00
mcl_chests Revert "move barrels to mcl_chests" 2022-02-22 20:20:21 +01:00
mcl_clock mcl_clock 2022-02-23 23:58:05 +01:00
mcl_cocoas Bonemealing mechanics bugfix. 2022-05-06 15:09:23 +02:00
mcl_colorblocks Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
mcl_compass remove debug logging 2022-04-30 10:02:04 +00:00
mcl_composters Update to new bone meal API. 2022-05-06 14:39:35 +02:00
mcl_copper Fix codestyle issues with `mcl_deepslate`, `mcl_copper`, `mcl_raw_ores` 2022-05-04 23:35:07 +00:00
mcl_core Update lapis lazuli description translations. 2022-05-06 15:09:23 +02:00
mcl_crafting_table mcl_crafting_table 2022-02-23 23:58:05 +01:00
mcl_deepslate Add cobbled deepslate to cobble group. 2022-05-05 01:45:03 +02:00
mcl_doors mcl_doors 2022-02-23 23:58:05 +01:00
mcl_dye Update mcl_dye translations. 2022-05-06 15:09:23 +02:00
mcl_enchanting Fix undefined variable in mcl_enchanting/engine.lua. 2022-05-04 23:31:54 +00:00
mcl_end add hypercopyrighted end crystal beam texture 2022-04-24 01:46:57 +02:00
mcl_farming Move cocoa beans item to mcl_cocoas. 2022-05-06 15:09:07 +02:00
mcl_fences mcl_fences 2022-02-23 23:58:05 +01:00
mcl_fire do not randomseed twice 2022-02-25 00:08:26 +00:00
mcl_fireworks Update French translation (part 1) 2021-08-13 11:35:18 +02:00
mcl_fishing Replace black dye with "mcl_mobitems:ink_sac". 2022-05-06 15:09:23 +02:00
mcl_flowerpots mcl_flowerpots 2022-02-23 23:58:05 +01:00
mcl_flowers Use better override mechanism. 2022-05-06 15:09:23 +02:00
mcl_furnaces Change some crafting recipes to use group:cobble. 2022-05-04 15:54:12 +02:00
mcl_heads Remove 2D preview 2022-05-04 23:15:11 +00:00
mcl_hoppers Fix hopper breakage in get_item_group return value. 2022-02-24 03:18:25 +01:00
mcl_itemframes update mcl_itemframes to use get_compass_image correctly 2022-04-30 08:59:25 +00:00
mcl_jukebox mcl_jukebox 2022-02-23 23:58:05 +01:00
mcl_lanterns allow placement of lanterns on chains 2022-02-10 11:45:08 +01:00
mcl_maps Rename a few textures to help support texture packs. 2022-03-02 20:13:24 -06:00
mcl_mobitems Fix squid ink sac description and add translations. 2022-05-06 15:09:23 +02:00
mcl_mobspawners mcl_mobspawners 2022-02-23 23:58:05 +01:00
mcl_monster_eggs mcl_monster_eggs 2022-02-23 23:58:05 +01:00
mcl_mushrooms Revert vector-fu. 2022-05-06 15:09:23 +02:00
mcl_nether Add `compostability` to node definition group. 2022-04-02 03:32:56 +02:00
mcl_ocean Add `compostability` to node definition group. 2022-04-02 03:32:56 +02:00
mcl_portals Rewrite portal removal to avoid stack overflow 2022-03-03 01:42:49 +00:00
mcl_potions make all arrow types activate target (+ depends and code fixes) 2022-02-26 23:52:03 +01:00
mcl_raw_ores Fix codestyle issues with `mcl_deepslate`, `mcl_copper`, `mcl_raw_ores` 2022-05-04 23:35:07 +00:00
mcl_shields Make shields work with all mobs 2022-04-09 16:21:22 +02:00
mcl_signs mcl_signs 2022-02-23 23:58:05 +01:00
mcl_sponges mcl_sponges 2022-02-23 23:58:05 +01:00
mcl_stairs Merge pull request 'Fix French translations: granit + porc' (#1815) from pitchum/MineClone2:master into master 2021-06-14 17:51:29 +00:00
mcl_throwing make ender pearls activate target 2022-02-26 22:16:10 +01:00
mcl_tnt mcl_tnt 2022-02-23 23:58:05 +01:00
mcl_tools Change stone tool repair materal to group:cobble. 2022-05-05 01:01:29 +02:00
mcl_torches mcl_torches 2022-02-23 23:58:05 +01:00
mcl_totems Add shield 2022-03-15 15:58:27 +01:00
mcl_walls mcl_walls 2022-02-23 23:58:05 +01:00
mcl_wool Make carpets `supported_node`. 2022-03-19 02:32:46 +01:00
mclx_core mclx_core 2022-02-23 23:58:05 +01:00
mclx_fences mclx_fences 2022-02-23 23:58:05 +01:00
mclx_stairs Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
screwdriver screwdriver 2022-02-23 23:58:05 +01:00
xpanes xpanes 2022-02-23 23:58:05 +01:00
modpack.conf Add a couple of modpack.conf files 2019-01-07 00:52:05 +01:00