info:
namespace: myitems
recipes:
crafting_table:
deadmau5_hat:
permission: myitems.deadmau5_hat
enabled: true
pattern:
- BXB
- XBX
- XXX
ingredients:
B: LIGHT_BLUE_WOOL
result:
item: myitems:deadmau5_hat
amount: 1
taco:
permission: itemsadder.taco
enabled: true
pattern:
- XSC
- XPB
ingredients:
B: itemsadder:baguette
C: itemsadder:sliced_roast_beef
P: itemsadder:potato_sticks
S: itemsadder:lettuce
taco:
permission: itemsadder.taco
enabled: true
pattern:
- SC
- PB
ingredients:
B: itemsadder:baguette
C: itemsadder:sliced_roast_beef
P: itemsadder:potato_sticks
S: itemsadder:lettuce
你可以为每个配方创建多种模式,只要保证每个属性以 pattern
开头。例如本例 pattern_2
。
turquoise_sword:
permission: itemsadder.turquoise_sword
enabled: true
pattern:
- XRX
- XRX
- XSX
pattern_2:
- RXX
- XXR
- XSX
ingredients:
R: itemsadder:turquoise
S: STICK
result:
item: itemsadder:turquoise_sword
amount: 1
peeled_potato:
permission: itemsadder.peeled_potato
enabled: true
pattern:
- XXX
- XKP
- XXX
ingredients:
K: itemsadder:knife
P: POTATO
result:
item: itemsadder:peeled_potato
amount: 1
return_items:
decrement_durability:
knife:
item: knife
amount: 1
play_sound:
name: itemsadder:item.knife.use
volume: 1
pitch: 1
shapeless_emerald_example:
enabled: true
shapeless: true
ingredients:
A: POTATO
B: STONE
result:
item: EMERALD
amount: 1