Skip to content

Commit 18d588d

Browse files
committed
Add Resin Brick Support to Forming Press
1 parent 0080567 commit 18d588d

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

gm4_forming_press/data/gm4_forming_press/function/recipes/brick_recipes.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ execute if score $crafted gm4_crafting matches 0 store success score $crafted gm
3636

3737
# tuff bricks
3838
execute if score $crafted gm4_crafting matches 0 store success score $crafted gm4_crafting if score $stack_size gm4_crafting matches ..4 if data storage gm4_forming_press:temp/crafter {Items:[{Slot:0b,id:"minecraft:tuff"},{Slot:1b,id:"minecraft:tuff"},{Slot:2b,id:"minecraft:tuff"},{Slot:3b,id:"minecraft:tuff"},{Slot:4b,id:"minecraft:clay_ball"},{Slot:5b,id:"minecraft:tuff"},{Slot:6b,id:"minecraft:tuff"},{Slot:7b,id:"minecraft:tuff"},{Slot:8b,id:"minecraft:tuff"}]} run loot replace block ~ ~ ~ container.0 loot gm4_forming_press:crafting/tuff_bricks
39+
40+
# resin bricks
41+
execute if score $crafted gm4_crafting matches 0 store success score $crafted gm4_crafting if score $stack_size gm4_crafting matches ..4 if data storage gm4_forming_press:temp/crafter {Items:[{Slot:0b,id:"minecraft:resin_clump"},{Slot:1b,id:"minecraft:resin_clump"},{Slot:2b,id:"minecraft:resin_clump"},{Slot:3b,id:"minecraft:resin_clump"},{Slot:4b,id:"minecraft:clay_ball"},{Slot:5b,id:"minecraft:resin_clump"},{Slot:6b,id:"minecraft:resin_clump"},{Slot:7b,id:"minecraft:resin_clump"},{Slot:8b,id:"minecraft:resin_clump"}]} run loot replace block ~ ~ ~ container.0 loot gm4_forming_press:crafting/resin_bricks
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"type": "minecraft:generic",
3+
"pools": [
4+
{
5+
"rolls": 8,
6+
"entries": [
7+
{
8+
"type": "minecraft:loot_table",
9+
"value": "gm4:air"
10+
}
11+
]
12+
},
13+
{
14+
"rolls": 1,
15+
"entries": [
16+
{
17+
"type": "minecraft:item",
18+
"name": "minecraft:resin_brick",
19+
"functions": [
20+
{
21+
"function": "minecraft:set_count",
22+
"count": 16
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)