Skip to content

Commit

Permalink
feat: basic item recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Nov 13, 2024
1 parent 83b800d commit 1e0315b
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/resources/data/galaxy/recipe/blocks/elevator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"type": "minecraft:crafting_shapeless",
"category": "building",
"ingredients": [
"minecraft:ender_pearl",
"minecraft:iron_block"
],
"result": {
"id": "minecraft:command_block",
"count": 1,
"components": {
"unbreakable": {
"show_in_tooltip": false
},
"attribute_modifiers": {
"modifiers": [],
"show_in_tooltip": false
},
"item_name": "{\"translate\": \"block.ELEVATOR\", \"color\": \"white\", \"italic\": false}",
"custom_model_data": 1010200,
"custom_data": {
"GalaxyData": {
"CustomItemIdentifier": "galaxy:item/block/elevator"
}
}
}
}
}
34 changes: 34 additions & 0 deletions src/main/resources/data/galaxy/recipe/blocks/harvest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"pattern": [
"CCC",
"CDO",
"CCC"
],
"key": {
"C": "minecraft:copper_ingot",
"D": "minecraft:dispenser",
"O": "minecraft:observer"
},
"result": {
"id": "minecraft:command_block",
"count": 1,
"components": {
"unbreakable": {
"show_in_tooltip": false
},
"attribute_modifiers": {
"modifiers": [],
"show_in_tooltip": false
},
"item_name": "{\"translate\": \"block.HARVEST\", \"color\": \"white\", \"italic\": false}",
"custom_model_data": 1010700,
"custom_data": {
"GalaxyData": {
"CustomItemIdentifier": "galaxy:item/block/harvest"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"pattern": [
"RDL",
"ICI",
"LOR"
],
"key": {
"R": "minecraft:redstone",
"D": "minecraft:diamond",
"L": "minecraft:lapis_lazuli",
"I": "minecraft:iron_ingot",
"C": "minecraft:crafting_table",
"O": "minecraft:obsidian"
},
"result": {
"id": "minecraft:command_block",
"count": 1,
"components": {
"unbreakable": {
"show_in_tooltip": false
},
"attribute_modifiers": {
"modifiers": [],
"show_in_tooltip": false
},
"item_name": "{\"translate\": \"block.HT_CRAFTING_TABLE\", \"color\": \"white\", \"italic\": false}",
"custom_model_data": 1010100,
"custom_data": {
"GalaxyData": {
"CustomItemIdentifier": "galaxy:item/block/ht_crafting_table"
}
}
}
}
}
35 changes: 35 additions & 0 deletions src/main/resources/data/galaxy/recipe/blocks/trashcan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"pattern": [
"GGG",
"GCG",
"TST"
],
"key": {
"G": "minecraft:glass",
"C": "minecraft:cactus",
"T": "minecraft:terracotta",
"S": "#minecraft:sand"
},
"result": {
"id": "minecraft:command_block",
"count": 1,
"components": {
"unbreakable": {
"show_in_tooltip": false
},
"attribute_modifiers": {
"modifiers": [],
"show_in_tooltip": false
},
"item_name": "{\"translate\": \"block.TRASHCAN\", \"color\": \"white\", \"italic\": false}",
"custom_model_data": 1010700,
"custom_data": {
"GalaxyData": {
"CustomItemIdentifier": "galaxy:item/block/trashcan"
}
}
}
}
}
33 changes: 33 additions & 0 deletions src/main/resources/data/galaxy/recipe/tools/crowbar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"II",
" I",
" I"
],
"key": {
"I": "minecraft:iron_ingot"
},
"result": {
"id": "minecraft:command_block",
"count": 1,
"components": {
"max_stack_size": 1,
"unbreakable": {
"show_in_tooltip": false
},
"attribute_modifiers": {
"modifiers": [],
"show_in_tooltip": false
},
"item_name": "{\"translate\": \"item.Tool.CROWBAR\", \"color\": \"white\", \"italic\": false}",
"custom_model_data": 2010200,
"custom_data": {
"GalaxyData": {
"CustomItemIdentifier": "galaxy:item/tool/crowbar"
}
}
}
}
}
34 changes: 34 additions & 0 deletions src/main/resources/data/galaxy/recipe/tools/wrench.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"pattern": [
"I I",
" S ",
" I "
],
"key": {
"I": "minecraft:iron_ingot",
"S": "minecraft:stick"
},
"result": {
"id": "minecraft:command_block",
"count": 1,
"components": {
"max_stack_size": 1,
"unbreakable": {
"show_in_tooltip": false
},
"attribute_modifiers": {
"modifiers": [],
"show_in_tooltip": false
},
"item_name": "{\"translate\": \"item.Tool.WRENCH\", \"color\": \"white\", \"italic\": false}",
"custom_model_data": 2010100,
"custom_data": {
"GalaxyData": {
"CustomItemIdentifier": "galaxy:item/tool/wrench"
}
}
}
}
}

0 comments on commit 1e0315b

Please sign in to comment.