Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
component:crafting:zh [2023/11/03 20:08]
hfsr [craft([count: number]): boolean]
component:crafting:zh [2023/11/03 20:10]
hfsr [Example]
Line 20: Line 20:
 If successful the crafting result will be placed in the currently selected slot, or (if occupied by something else) will be placed into the next slot containing similar items or in the next free slot. This can be one of the slots of the crafting area, which would make it impossible to craft the same item again until that area is cleared. If successful the crafting result will be placed in the currently selected slot, or (if occupied by something else) will be placed into the next slot containing similar items or in the next free slot. This can be one of the slots of the crafting area, which would make it impossible to craft the same item again until that area is cleared.
  
-==== Example ​====+====样例====
 ```lua ```lua
 local component = require("​component"​) local component = require("​component"​)
-local c = component.crafting -- get primary crafting component +local c = component.crafting --获取首选合成组件 
-c.craft(10) -- craft up to 10 items+c.craft(10) --合成至多10个物品
 ``` ```