Add Screen and Serial Cable and Console recipe

This commit is contained in:
Shadowfacts 2021-03-08 18:32:20 -05:00
parent 8100532678
commit 6f55282537
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
12 changed files with 165 additions and 0 deletions

View File

@ -37,6 +37,8 @@ object PhyItems {
val SCREWDRIVER = ScrewdriverItem() val SCREWDRIVER = ScrewdriverItem()
val CONSOLE = ConsoleItem() val CONSOLE = ConsoleItem()
val TWISTED_PAIR = Item(Item.Settings()) val TWISTED_PAIR = Item(Item.Settings())
val SCREEN = Item(Item.Settings())
val SERIAL_CABLE = Item(Item.Settings())
fun init() { fun init() {
register(InterfaceBlock.ID, INTERFACE) register(InterfaceBlock.ID, INTERFACE)
@ -52,6 +54,8 @@ object PhyItems {
register(ScrewdriverItem.ID, SCREWDRIVER) register(ScrewdriverItem.ID, SCREWDRIVER)
register(ConsoleItem.ID, CONSOLE) register(ConsoleItem.ID, CONSOLE)
register(Identifier(PhysicalConnectivity.MODID, "twisted_pair"), TWISTED_PAIR) register(Identifier(PhysicalConnectivity.MODID, "twisted_pair"), TWISTED_PAIR)
register(Identifier(PhysicalConnectivity.MODID, "screen"), SCREEN)
register(Identifier(PhysicalConnectivity.MODID, "serial_cable"), SERIAL_CABLE)
} }
private fun register(id: Identifier, item: Item) { private fun register(id: Identifier, item: Item) {

View File

@ -12,6 +12,8 @@
"item.phycon.screwdriver": "Screwdriver", "item.phycon.screwdriver": "Screwdriver",
"item.phycon.console": "Console", "item.phycon.console": "Console",
"item.phycon.twisted_pair": "Twisted Pair", "item.phycon.twisted_pair": "Twisted Pair",
"item.phycon.screen": "Screen",
"item.phycon.serial_cable": "Serial Cable",
"gui.phycon.terminal_buffer": "Buffer", "gui.phycon.terminal_buffer": "Buffer",
"gui.phycon.console.details": "Device Details", "gui.phycon.console.details": "Device Details",

View File

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "phycon:item/screen"
}
}

View File

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "phycon:item/serial_cable"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

View File

@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"phycon:console"
]
},
"criteria": {
"has_serial_cable": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "phycon:serial_cable"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "phycon:console"
}
}
},
"requirements": [
[
"has_serial_cable",
"has_the_recipe"
]
]
}

View File

@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"phycon:screen"
]
},
"criteria": {
"has_glowstone": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:glowstone_dust"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "phycon:screen"
}
}
},
"requirements": [
[
"has_glowstone",
"has_the_recipe"
]
]
}

View File

@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"phycon:serial_cable"
]
},
"criteria": {
"has_redstone_and_gold": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:redstone"
},
{
"tag": "c:gold_ingots"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "phycon:serial_cable"
}
}
},
"requirements": [
[
"has_redstone_and_gold",
"has_the_recipe"
]
]
}

View File

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" I ",
"ISI",
" C "
],
"key": {
"I": {"tag": "c:iron_ingots"},
"S": {"item": "phycon:screen"},
"C": {"item": "phycon:serial_cable"}
},
"result": {
"item": "phycon:console"
}
}

View File

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"GGG",
"ggg",
"RRR"
],
"key": {
"G": {"item": "minecraft:glass_pane"},
"g": {"item": "minecraft:glowstone_dust"},
"R": {"item": "minecraft:redstone"}
},
"result": {
"item": "phycon:screen"
}
}

View File

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" C ",
"CRC",
"GC "
],
"key": {
"C": {"item": "minecraft:blue_carpet"},
"R": {"item": "minecraft:redstone"},
"G": {"tag": "c:gold_ingots"}
},
"result": {
"item": "phycon:serial_cable"
}
}