Craft recipe
Recipe to craft the current custom item
1
craft_recipe:
2
enabled: true
3
amount: 2 #amount of resulting item
4
pattern:
5
- XXX
6
- XPX
7
- DKD
8
ingredients:
9
P: philosopher_stone
10
K: knife
11
D: diamond
12
return_items: #gives some items back when crafting without consuming them
13
#(like water bucket in vanilla Minecraft)
14
play_sound: knife #plays a sound on craft
15
reduce_durability: #reduces durability of an item in the crafting table
16
#and doesn't consume it on crafting
17
#(must be a tool or sword to lose durability)
18
knife: 1 #<item name or material>: <amount>
19
increment_durability: #increments durability of an item in the crafting table
20
#and doesn't consume it on crafting
21
#(must be a tool or sword to get durability)
22
philosopher_stone: 1 #<item name or material>: <amount>
23
replace: #replaces an item in the crafting table and doesn't consume it on craft
24
DIAMOND: crystal #<old item name or material>: <new item name or material>
Copied!

Example

An example can be the peeled potato
1
peeled_potato:
2
#....
3
craft_recipe:
4
enabled: true
5
pattern:
6
- XXX
7
- XKP
8
- XXX
9
ingredients:
10
K: knife
11
P: POTATO
12
return_items:
13
play_sound: knife
14
reduce_durability:
15
knife: 1
Copied!
To peel a potato you need to put a knife and a potato in the crafting table like this:
Taking the peeled potato from the result slot will reduce knife durability as specified by the property
1
reduce_durability:
2
knife: 1
Copied!
Copy link
Contents
Example