Commit Graph

14 Commits

Author SHA1 Message Date
Phaethon H a3de5b7cb0 Move cauldron nodebox preset table outside of function, to be built once instead of with each function call.
Skip intermediate variable for returns.
Added mcl_cauldrons.get_substance() to get substance from cauldron.
Added explicit list of cauldron substances.
2021-11-06 00:11:35 -07:00
Phaethon H 5b03c604b3 Update banner dipping into cauldron with new cauldron names/behavior.
Update weather/rain filling cauldrons with new cauldron names/behavior.
set_level() determining current substance.
2021-11-05 19:22:51 -07:00
Phaethon H 407903b73a Renaming some cauldron-associated symbols.
Item group comparision against 0 instead of greater than.
Cauldron callbacks assigned function references instead of functions defined in-place.
Short-hand invocation of callback with default alternate value.
local helper function merge_tables made recursive to allow selective subkey override/substituion.
Cauldron fill heights determined by table lookup instead of cascading "if"s.
Trimming some dead code.
2021-11-05 17:18:30 -07:00
Phaethon H 3b9c553b6c Styling edits. 2021-10-24 20:54:11 -07:00
Phaethon H fd8182c74c Wire in documentation aliases for the filled cauldrons.
Delete commented out code.
Change names of variables to be more clear of purpose.

Slightly cleaner logic getting bucket from cauldron.
Play sounds when bucket takes from cauldron.
Guard against entirety of bucket placing water source if cauldron filled successfully (avoid empty if branch).

Adjust cauldron collision box to make it possible to jump/fall inside.
Minimally functioning state: water cauldron extinguish entity on fire.

Fix interaction of bottles with water sources and cauldrons:
 * take and give 1/3 level from/to cauldrons (creative mode and survival mode inventory changse).
 * take from mcl_core:water_source

Removed utils.lua (contents were moved into register.lua).
2021-10-24 15:37:43 -07:00
Phaethon H 2775f89979 Cauldron API, callback-based; changes to mcl_buckets and mcl_potions for interaction with water cauldron. 2021-10-22 10:30:33 -07:00
AFCMS d1ca012ea0 small API fix 2021-03-27 12:27:46 +01:00
AFCMS a18a2127c5 add helper function to give item in creative 2021-03-27 12:20:14 +01:00
AFCMS 7156afcd03 add helper functio nto give item 2021-03-27 12:16:08 +01:00
AFCMS e3b3e2343b fix crash 2021-03-27 12:08:00 +01:00
AFCMS 6f23351126 move every function in the right place 2021-03-27 12:06:52 +01:00
AFCMS a99619774d move more functions 2021-03-27 12:03:14 +01:00
AFCMS 989384f362 move is_cauldron to the right place 2021-03-27 11:57:07 +01:00
AFCMS 297d4e707c WIP separate functions into different files 2021-03-27 11:52:54 +01:00