Add Silicon Wafer, Item Processor, Redstone Processor

This commit is contained in:
Shadowfacts 2021-03-10 18:08:23 -05:00
parent 2035874baa
commit c2f1f606f2
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
16 changed files with 142 additions and 0 deletions

BIN
assets/processor base.xcf Normal file

Binary file not shown.

BIN
assets/silicon wafer.xcf Normal file

Binary file not shown.

BIN
assets/small chest icon.xcf Normal file

Binary file not shown.

View File

@ -39,6 +39,9 @@ object PhyItems {
val TWISTED_PAIR = Item(Item.Settings())
val SCREEN = Item(Item.Settings())
val SERIAL_CABLE = Item(Item.Settings())
val SILICON_WAFER = Item(Item.Settings())
val ITEM_PROCESSOR = Item(Item.Settings())
val REDSTONE_PROCESSOR = Item(Item.Settings())
fun init() {
register(InterfaceBlock.ID, INTERFACE)
@ -56,6 +59,9 @@ object PhyItems {
register(Identifier(PhysicalConnectivity.MODID, "twisted_pair"), TWISTED_PAIR)
register(Identifier(PhysicalConnectivity.MODID, "screen"), SCREEN)
register(Identifier(PhysicalConnectivity.MODID, "serial_cable"), SERIAL_CABLE)
register(Identifier(PhysicalConnectivity.MODID, "silicon_wafer"), SILICON_WAFER)
register(Identifier(PhysicalConnectivity.MODID, "item_processor"), ITEM_PROCESSOR)
register(Identifier(PhysicalConnectivity.MODID, "redstone_processor"), REDSTONE_PROCESSOR)
}
private fun register(id: Identifier, item: Item) {

View File

@ -14,6 +14,9 @@
"item.phycon.twisted_pair": "Twisted Pair",
"item.phycon.screen": "Screen",
"item.phycon.serial_cable": "Serial Cable",
"item.phycon.silicon_wafer": "Silicon Wafer",
"item.phycon.item_processor": "Item Processor",
"item.phycon.redstone_processor": "Redstone Processor",
"gui.phycon.terminal_buffer": "Buffer",
"gui.phycon.console.details": "Device Details",

View File

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

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

View File

@ -0,0 +1,40 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"phycon:item_processor",
"phycon:redstone_processor"
]
},
"criteria": {
"has_wafer": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "phycon:silicon_wafer"
}
]
}
},
"has_redstone_processor": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "phycon:redstone_processor"
}
},
"has_item_processor": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "phycon:item_processor"
}
}
},
"requirements": [
[
"has_wafer",
"has_redstone_processor",
"has_item_processor"
]
]
}

View File

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

View File

@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" C ",
"ISI",
" G "
],
"key": {
"C": {"item": "minecraft:chest"},
"I": {"tag": "c:iron_ingots"},
"S": {"item": "phycon:silicon_wafer"},
"G": {"tag": "c:gold_ingots"}
},
"result": {
"item": "phycon:item_processor"
}
}

View File

@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" T ",
"RSR",
" G "
],
"key": {
"T": {"item": "minecraft:redstone_torch"},
"R": {"item": "minecraft:redstone"},
"S": {"item": "phycon:silicon_wafer"},
"G": {"tag": "c:gold_ingots"}
},
"result": {
"item": "phycon:redstone_processor"
}
}

View File

@ -0,0 +1,9 @@
{
"type": "minecraft:blasting",
"ingredient": {
"item": "minecraft:quartz"
},
"result": "phycon:silicon_wafer",
"experience": 5,
"cookingtime": 300
}