Skip to content

Commit

Permalink
Added visual indicator of item conduit mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Apr 2, 2024
1 parent 7cb6c93 commit ac71bf8
Show file tree
Hide file tree
Showing 25 changed files with 303 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public HashMap<String, String> getStateMap(WorldSource worldSource, int i, int j
states.put(direction.getName().toLowerCase(), String.valueOf(show));
if(tile != null){
states.put("restrict_"+direction.getName().toLowerCase(), String.valueOf(tile.restrictDirections.get(direction)));
states.put("mode",tile.mode.name());
}
}
return states;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,135 @@
},
{
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_up"
"model": "signalindustries:conduit/item/basic/split/conduit_base"
},
"when": {
"up": "true"
"mode": "SPLIT"
}
},
{
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_down"
},
"when": {
"down": "true"
"AND": [
{"up": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/split/conduit_up"
}
},
{
"when": {
"AND": [
{"up": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_north"
"model": "signalindustries:conduit/item/basic/conduit_up"
}
},

{
"when": {
"AND": [
{"down": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/split/conduit_down"
}
},
{
"when": {
"north": "true"
"AND": [
{"down": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_down"
}
},

{
"when": {
"AND": [
{"north": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_east"
"model": "signalindustries:conduit/item/basic/split/conduit_north"
}
},
{
"when": {
"AND": [
{"north": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_north"
}
},

{
"when": {
"east": "true"
"AND": [
{"south": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/split/conduit_south"
}
},
{
"when": {
"AND": [
{"south": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_south"
},
}
},

{
"when": {
"south": "true"
"AND": [
{"east": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/split/conduit_east"
}
},
{
"when": {
"AND": [
{"east": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_west"
"model": "signalindustries:conduit/item/basic/conduit_east"
}
},

{
"when": {
"AND": [
{"west": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/split/conduit_west"
}
},
{
"when": {
"west": "true"
"AND": [
{"west": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/basic/conduit_west"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
"model": "signalindustries:conduit/item/basic/conduit_base"
}
},
{
"apply": {
"model": "signalindustries:conduit/item/basic/split/conduit_base"
},
"when": {
"mode": "SPLIT"
}
},
{
"when": {
"AND": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,135 @@
},
{
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_up"
"model": "signalindustries:conduit/item/prototype/split/conduit_base"
},
"when": {
"up": "true"
"mode": "SPLIT"
}
},
{
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_down"
},
"when": {
"down": "true"
"AND": [
{"up": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/split/conduit_up"
}
},
{
"when": {
"AND": [
{"up": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_north"
"model": "signalindustries:conduit/item/prototype/conduit_up"
}
},

{
"when": {
"AND": [
{"down": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/split/conduit_down"
}
},
{
"when": {
"north": "true"
"AND": [
{"down": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_down"
}
},

{
"when": {
"AND": [
{"north": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_east"
"model": "signalindustries:conduit/item/prototype/split/conduit_north"
}
},
{
"when": {
"AND": [
{"north": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_north"
}
},

{
"when": {
"east": "true"
"AND": [
{"south": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/split/conduit_south"
}
},
{
"when": {
"AND": [
{"south": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_south"
},
}
},

{
"when": {
"south": "true"
"AND": [
{"east": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/split/conduit_east"
}
},
{
"when": {
"AND": [
{"east": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_west"
"model": "signalindustries:conduit/item/prototype/conduit_east"
}
},

{
"when": {
"AND": [
{"west": "true"},{"mode": "SPLIT"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/split/conduit_west"
}
},
{
"when": {
"west": "true"
"AND": [
{"west": "true"},{"mode": "RANDOM"}
]
},
"apply": {
"model": "signalindustries:conduit/item/prototype/conduit_west"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_all",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_base",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_down",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_east",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_north",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_south",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_up",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_west",
"textures": {
"conduit": "signalindustries:block/item_conduit_basic_split"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "signalindustries:conduit/template_item_conduit_all",
"textures": {
"conduit": "signalindustries:block/item_conduit_prototype_split"
}
}
Loading

0 comments on commit ac71bf8

Please sign in to comment.