Before reading this tutorial, the following are the terms and knowledge that may involve in the tutorial.
World synthesis
The attack/destruction key is referred to in this tutorial.
After understanding the above content, you can start reading the follow -up content.
principle
Synthetic in the world
wolf.astell.choco.api.inworldCrafting.java
Control, which is registered with an event monitor, the listener is executed on the ModeVent thread, which can monitor the events of the player's left -clicking.
If you meet specific conditions, perform the corresponding sub -function to complete the effect of synthesis in the world.
formula
The probability of eating knowledge in the game has a probability of 1/7 to obtain a knowledge of synthesis in the world.
The following are all the synthetic formulas in the world that are added and published as of SuperChocolatemaker-1.0.12.
Gold Chocolate: Use the left button of chocolate to click the gold block.
Magic Gold Chocolate: Use the Gold Chocolate Left button to click on the enchanting table.
Knowledge Chocolate: Use the Golden Chocolate Left button to click the bookshelf.
Explosive chocolate: Use the Gold Chocolate Left -click TNT.
History Book Chocolate: Discard the star of the lower boundary near the anvil (as close as possible), and use the devil wolf AI.O tool to click the anvil.
Bottle Rainbow: Use the bottle Rainbow left button to click the workbench to switch the color of the bottle rainbow.
Cocoa machine gun: Use the left button of the cocoa machine gun to click on the beacon to upgrade the sniper function for it.