1
0
Fork 0
Commit Graph

48 Commits (2a154838f9b1fb1b708d2e07130b24ed4716d1c2)

Author SHA1 Message Date
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
kabou 7e54c3d5bf Update cocoa beans description.
After the cocoa beans <-> brown dye change, some of the old dye use was still
left in the description and usage help texts of the cocoa beans craftitem.
The mcl_cocoa locale template and translations are also updated.

* Update the cocoa beans craftitem description and usage help text.
* Update de, es, fr, pl, ru and zh_TW translations.
  Note that I do not master all of these languages and this is a best effort
  based on picking what I guessed are the most likely translations.
* Don't set stack_max to what would be the default anyway.
2022-05-06 15:09:23 +02:00
kabou 195f0dfbaa Move cocoa beans item to mcl_cocoas.
* Add `mcl_cocoas:coca_beans` craftitem to mcl_cocoas.
* Remove `mcl_dye:brown` craftitem from mcl_dye.
* Move cocoa beans translations from mcl_dye to mcl_cocoas.
* Add `mcl_dye:brown` alias for `mcl_cocoas:cocoa_beans` to
  mcl_dye.
* Abstract cocoa pod node registration into a loop.
* Update chocolate cookies crafting recipe in mcl_farming.
2022-05-06 15:09:07 +02:00
kabou dcbf5cffdd Add bonemealing callback to cocoa.
* Adds a _mcl_on_bonemealing callback to the unripe cocoa pods.
2022-05-06 14:39:35 +02:00
Emojigit 77339afbe2 mcl_cocoas 2022-02-23 23:58:05 +01:00
marcin-serwin cbe8583cef Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
AFCMS cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
Marcin Serwin c6a07b8007 Add polish translation of mcl_cocoas 2021-04-24 21:19:11 +02:00
Nicu df8fdda2c5 Fix #1346
Fixes crash trying to place cocoa
2021-03-19 17:25:40 +00:00
AFCMS 731d42196a fixes in mcl_cocoas 2021-03-15 09:02:45 +01:00
Elias Fleckenstein aeb7078c05 Update use_texture_alpha to the minetest 5.4 conventions 2021-02-18 14:00:17 +01:00
kay27 ba51686e6c Russian translation 2020-07-20 00:11:13 +00:00
Wuzzy c106a62979 Use minetest.is_creative_enabled 2020-07-10 16:45:40 +02:00
Wuzzy c156398fb5 Merge branch 'translate-fr' of https://git.minetest.land/lrocher/MineClone2 into translate_fr 2020-05-09 18:57:40 +02:00
Rocher Laurent 4957bd1118 Translate In French 2020-05-03 22:39:07 +02:00
Elias Åström 6315490b14 Update the rest of the blast resistance values
The values have been updated according to this list:

https://minecraft.gamepedia.com/Module:Blast_resistance_values
2020-04-19 13:08:36 +02:00
Wuzzy c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
wuniversales 15481cb24d Add Spanish translation 2020-02-04 21:43:50 +01:00
Wuzzy 5b956c1c47 Disallow cocoa screwdriver rotation 2019-12-15 00:27:23 +01:00
Wuzzy 5647fbf6e0 Add German translation for mcl_cocoas 2019-03-21 20:13:35 +01:00
Wuzzy 5aeb4aea74 Add translation templates for most mods
Using the findtext.lua script
2019-03-13 23:40:59 +01:00
Wuzzy e4fbbeddb2 New translation system, part 6: Items, part 2 2019-03-07 23:40:57 +01:00
Wuzzy 71e663efe6 Merge branch 'lever' 2018-01-08 21:00:36 +01:00
Wuzzy d4d03526db Cocoas now use attached_node_facedir
This fixes some annoying bugs when removing jungle trees nearby
2018-01-08 20:19:33 +01:00
Wuzzy e5a34367c9 Use new Minetest settings API syntax for most mods 2017-08-09 16:17:00 +02:00
Wuzzy 82a1fcc846 Update cocoa textures 2017-07-15 11:57:32 +02:00
Wuzzy f7393cf970 Generate vines in jungles, move cocoa gen b/w mods 2017-05-27 01:54:40 +02:00
Wuzzy 077242efa4 Disable cocoa generator for non v6 mapgens 2017-05-27 00:55:56 +02:00
Wuzzy 4ef90204e3 Lava flow destroys chorus pl., nether wart, cocoa 2017-05-22 22:29:15 +02:00
Wuzzy da3205837b Add label to all ABMs 2017-05-15 00:45:54 +02:00
Wuzzy 30564e494e Make many blocks drop when pushed by piston 2017-03-29 22:58:31 +02:00
Wuzzy b1b45274e4 Add Help entry aliases for many core items 2017-03-20 18:12:05 +01:00
Wuzzy 7e38794fc7 Fix cocoa / nether wart help 2017-03-13 18:56:50 +01:00
Wuzzy cd53fc401b Add cocoa help 2017-03-11 17:42:20 +01:00
Wuzzy aabb1e972d Add _doc_items_create_entry fields for doc_items 2017-03-02 19:53:53 +01:00
Wuzzy 064bf1effe Fix crash when placing cocoa beans in item frame 2017-03-02 15:50:53 +01:00
Wuzzy 4ec6f5a3ec Hardness for the last remaining items 2017-02-27 18:38:31 +01:00
Wuzzy 4da0723146 Add hardness to anvils, bookshoelves, cakes, chests, cocoas 2017-02-27 01:13:03 +01:00
Wuzzy 0aeb109c64 Add blast resistance to a ton of blocks 2017-02-22 16:03:59 +01:00
Wuzzy 1fd3bba796 Fix drop of mature cocoa
This is the Bugfix of the Day!
2017-02-18 21:14:27 +01:00
Wuzzy 9f96ccb4be Fix bad digging time of cocoas 2017-02-18 21:10:28 +01:00
Wuzzy 66c9e5b502 Make cocoas drop when the jungle tree has been removed 2017-02-18 21:07:57 +01:00
Wuzzy 02b6cc11f5 Make cocoas grow 2017-02-18 20:23:26 +01:00
Wuzzy f0e5a9707a Generate cocoas at jungle trees 2017-02-18 19:15:58 +01:00
Wuzzy 4f5c625072 Set correct facedir of placed cocoas 2017-02-18 18:28:33 +01:00
Wuzzy a2e06543a1 Texturize cocoas and set cocoa boxes 2017-02-18 18:19:43 +01:00
Wuzzy ec93f7bf57 Cocoas: remove refill 2017-02-18 16:14:31 +01:00
Wuzzy a821690c66 Rename mcl_cocoa to mcl_cocoas 2017-02-18 16:10:55 +01:00