Zauber Cauldrons: Difference between revisions

→‎Technical Summary: updated. Added more details on the crafting logic.
m (→‎Armour: Correct Glistering Melon Slice item name)
(→‎Technical Summary: updated. Added more details on the crafting logic.)
Line 6: Line 6:


=== Technical Summary ===
=== Technical Summary ===
Every time a Zauber Cauldron is used for crafting it's water level will be reduced by one.
Zauber Cauldrons uses Raycasting to ensure items in a Zauber cauldron can not be picked up.
 
Crafting checks are ran in stages to minimize passive lag:
 
First off, only Cauldrons with a valid structure - meaning a fire block beneath and water - are considered valid for crafting checks.
 
Once the module has found a Zauber Cauldron that's ready for crafting checks, the module checks for so called "identifier Items". These are items that are unique to a recipe category, e.g. prismarine crystals for the Category "potions". Once such an item is found the module will start to go through all the entries for a recipe Category. These are specified within the <category folder/<category name>.mcfunction, E.g. Potions/Zauber_Potions.mcfuntion. At this point the function checks for a second order identifier item, e.g. a speed potion, which is again unique within the category. Once that is found a function unique for the actual recipe checks for all the items that all recipes of the category have in common (e.g. golden apples for potion recipes) and then summons the output item.  


=== Creation ===
=== Creation ===
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
196

edits