Skip to content

Commit

Permalink
Add model for item filter block
Browse files Browse the repository at this point in the history
  • Loading branch information
Rearth committed Apr 9, 2024
1 parent 5afcb69 commit 37865dc
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"variants": {
"target_dir=south": {
"model": "oritech:block/machine_inventory_proxy_addon",
"model": "oritech:block/item_filter_block",
"x": 90
},
"target_dir=west": {
"model": "oritech:block/machine_inventory_proxy_addon",
"model": "oritech:block/item_filter_block",
"y": 90,
"x": 90
},
"target_dir=north": {
"model": "oritech:block/machine_inventory_proxy_addon",
"model": "oritech:block/item_filter_block",
"y": 180,
"x": 90
},
"target_dir=east": {
"model": "oritech:block/machine_inventory_proxy_addon",
"model": "oritech:block/item_filter_block",
"y": 270,
"x": 90
},
"target_dir=down": {
"model": "oritech:block/machine_inventory_proxy_addon"
"model": "oritech:block/item_filter_block"
},
"target_dir=up": {
"model": "oritech:block/machine_inventory_proxy_addon",
"model": "oritech:block/item_filter_block",
"x": 180
}
}
Expand Down
207 changes: 194 additions & 13 deletions src/main/resources/assets/oritech/models/block/item_filter_block.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,204 @@
{
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"texture_size": [64, 64],
"textures": {
"0": "oritech:block/generic_pipe",
"particle": "oritech:block/generic_pipe"
"1": "oritech:block/item_filter_block",
"particle": "oritech:block/machine_particle_texture"
},
"elements": [
{
"name": "pipe_inner",
"from": [5, 5, 5],
"to": [11, 11, 11],
"name": "insertion_part",
"from": [4, -0.1, 4],
"to": [12, 2, 12],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 8]},
"faces": {
"north": {"uv": [0, 0, 3, 3], "texture": "#0"},
"east": {"uv": [0, 3, 3, 6], "texture": "#0"},
"south": {"uv": [3, 0, 6, 3], "texture": "#0"},
"west": {"uv": [3, 3, 6, 6], "texture": "#0"},
"up": {"uv": [3, 9, 0, 6], "texture": "#0"},
"down": {"uv": [9, 0, 6, 3], "texture": "#0"}
"north": {"uv": [5, 7.5, 7, 8], "texture": "#1"},
"east": {"uv": [7, 7.5, 9, 8], "texture": "#1"},
"south": {"uv": [8, 0, 10, 0.5], "texture": "#1"},
"west": {"uv": [8, 0.5, 10, 1], "texture": "#1"},
"up": {"uv": [4.5, 7, 2.5, 5], "texture": "#1"},
"down": {"uv": [7, 2.5, 5, 4.5], "texture": "#1"}
}
},
{
"name": "access",
"from": [0, 6, 6],
"to": [2, 10, 10],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [9, 1, 9.5, 2], "texture": "#1"},
"east": {"uv": [1.5, 7.5, 2.5, 8.5], "texture": "#1"},
"south": {"uv": [2.5, 9, 3, 10], "texture": "#1"},
"west": {"uv": [8, 1, 9, 2], "texture": "#1"},
"up": {"uv": [3.5, 10, 3, 9], "texture": "#1"},
"down": {"uv": [4, 9, 3.5, 10], "texture": "#1"}
}
},
{
"name": "access",
"from": [6, 6, 0],
"to": [10, 10, 2],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [2.5, 8, 3.5, 9], "texture": "#1"},
"east": {"uv": [6, 9, 6.5, 10], "texture": "#1"},
"south": {"uv": [3.5, 8, 4.5, 9], "texture": "#1"},
"west": {"uv": [6.5, 9, 7, 10], "texture": "#1"},
"up": {"uv": [9, 2.5, 8, 2], "texture": "#1"},
"down": {"uv": [9, 4.5, 8, 5], "texture": "#1"}
}
},
{
"name": "access",
"from": [14, 6, 6],
"to": [16, 10, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [7, 9, 7.5, 10], "texture": "#1"},
"east": {"uv": [4.5, 8, 5.5, 9], "texture": "#1"},
"south": {"uv": [9, 7, 9.5, 8], "texture": "#1"},
"west": {"uv": [5.5, 8, 6.5, 9], "texture": "#1"},
"up": {"uv": [8, 10, 7.5, 9], "texture": "#1"},
"down": {"uv": [8.5, 9, 8, 10], "texture": "#1"}
}
},
{
"name": "access",
"from": [6, 6, 14],
"to": [10, 10, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [6.5, 8, 7.5, 9], "texture": "#1"},
"east": {"uv": [8.5, 9, 9, 10], "texture": "#1"},
"south": {"uv": [7.5, 8, 8.5, 9], "texture": "#1"},
"west": {"uv": [9, 9, 9.5, 10], "texture": "#1"},
"up": {"uv": [9, 7.5, 8, 7], "texture": "#1"},
"down": {"uv": [10, 2, 9, 2.5], "texture": "#1"}
}
},
{
"name": "access",
"from": [6, 14, 6],
"to": [10, 16, 10],
"rotation": {"angle": 0, "axis": "x", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [9, 4.5, 10, 5], "texture": "#1"},
"east": {"uv": [9.5, 1, 10.5, 1.5], "texture": "#1"},
"south": {"uv": [1.5, 9.5, 2.5, 10], "texture": "#1"},
"west": {"uv": [9.5, 1.5, 10.5, 2], "texture": "#1"},
"up": {"uv": [2.5, 9.5, 1.5, 8.5], "texture": "#1"},
"down": {"uv": [9.5, 8, 8.5, 9], "texture": "#1"}
}
},
{
"name": "center",
"from": [3, 3, 3],
"to": [13, 13, 13],
"faces": {
"north": {"uv": [0, 0, 2.5, 2.5], "texture": "#1"},
"east": {"uv": [0, 2.5, 2.5, 5], "texture": "#1"},
"south": {"uv": [2.5, 0, 5, 2.5], "texture": "#1"},
"west": {"uv": [2.5, 2.5, 5, 5], "texture": "#1"},
"up": {"uv": [2.5, 7.5, 0, 5], "texture": "#1"},
"down": {"uv": [7.5, 0, 5, 2.5], "texture": "#1"}
}
},
{
"name": "gold_plate",
"from": [7, -0.5, 3],
"to": [9, 3, 13],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 1.5, 8]},
"faces": {
"north": {"uv": [4, 9, 4.5, 10], "texture": "#1"},
"east": {"uv": [4.5, 5, 7, 6], "texture": "#1"},
"south": {"uv": [4.5, 9, 5, 10], "texture": "#1"},
"west": {"uv": [4.5, 6, 7, 7], "texture": "#1"},
"up": {"uv": [8, 2.5, 7.5, 0], "texture": "#1"},
"down": {"uv": [1.5, 7.5, 1, 10], "texture": "#1"}
}
},
{
"name": "gold_plate",
"from": [3, -0.5, 7],
"to": [13, 3, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 1.5, 8]},
"faces": {
"north": {"uv": [2.5, 7, 5, 8], "texture": "#1"},
"east": {"uv": [5, 9, 5.5, 10], "texture": "#1"},
"south": {"uv": [7, 2.5, 9.5, 3.5], "texture": "#1"},
"west": {"uv": [5.5, 9, 6, 10], "texture": "#1"},
"up": {"uv": [9.5, 6.5, 7, 6], "texture": "#1"},
"down": {"uv": [9.5, 6.5, 7, 7], "texture": "#1"}
}
},
{
"from": [2, 7, 7],
"to": [14, 9, 9],
"faces": {
"north": {"uv": [5, 4.5, 8, 5], "texture": "#1"},
"east": {"uv": [9.5, 2.5, 10, 3], "texture": "#1"},
"south": {"uv": [7, 3.5, 10, 4], "texture": "#1"},
"west": {"uv": [9.5, 3, 10, 3.5], "texture": "#1"},
"up": {"uv": [10, 4.5, 7, 4], "texture": "#1"},
"down": {"uv": [8, 7, 5, 7.5], "texture": "#1"}
}
},
{
"from": [7, 7, 2],
"to": [9, 9, 14],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [9.5, 6, 10, 6.5], "texture": "#1"},
"east": {"uv": [7, 5, 10, 5.5], "texture": "#1"},
"south": {"uv": [9.5, 6.5, 10, 7], "texture": "#1"},
"west": {"uv": [7, 5.5, 10, 6], "texture": "#1"},
"up": {"uv": [0.5, 10.5, 0, 7.5], "texture": "#1"},
"down": {"uv": [1, 7.5, 0.5, 10.5], "texture": "#1"}
}
},
{
"from": [7, 13, 7],
"to": [9, 14, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [9.5, 8, 10, 8.25], "texture": "#1"},
"east": {"uv": [9.5, 8.25, 10, 8.5], "texture": "#1"},
"south": {"uv": [9.5, 8.5, 10, 8.75], "texture": "#1"},
"west": {"uv": [9.5, 8.75, 10, 9], "texture": "#1"},
"up": {"uv": [10, 7.5, 9.5, 7], "texture": "#1"},
"down": {"uv": [10, 7.5, 9.5, 8], "texture": "#1"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"scale": [0.625, 0.625, 0.625]
},
"fixed": {
"scale": [0.5, 0.5, 0.5]
}
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 37865dc

Please sign in to comment.