Model for alarm
This commit is contained in:
parent
b9ae05afaa
commit
e01e9398ea
7 changed files with 75 additions and 55 deletions
16
src/main/resources/assets/techreborn/blockstates/alarm.json
Normal file
16
src/main/resources/assets/techreborn/blockstates/alarm.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"variants": {
|
||||
"facing=north,active=false": { "model": "techreborn:block/machines/lighting/alarm", "x": 90 },
|
||||
"facing=south,active=false": { "model": "techreborn:block/machines/lighting/alarm", "x": 270 },
|
||||
"facing=west,active=false": { "model": "techreborn:block/machines/lighting/alarm", "x": 90, "y": 270 },
|
||||
"facing=east,active=false": { "model": "techreborn:block/machines/lighting/alarm", "x": 90, "y": 90 },
|
||||
"facing=down,active=false": { "model": "techreborn:block/machines/lighting/alarm", "x": 180 },
|
||||
"facing=up,active=false": { "model": "techreborn:block/machines/lighting/alarm" },
|
||||
"facing=north,active=true": { "model": "techreborn:block/machines/lighting/alarm_on", "x": 90 },
|
||||
"facing=south,active=true": { "model": "techreborn:block/machines/lighting/alarm_on", "x": 270 },
|
||||
"facing=west,active=true": { "model": "techreborn:block/machines/lighting/alarm_on", "x": 90, "y": 270 },
|
||||
"facing=east,active=true": { "model": "techreborn:block/machines/lighting/alarm_on", "x": 90, "y": 90 },
|
||||
"facing=down,active=true": { "model": "techreborn:block/machines/lighting/alarm_on", "x": 180 },
|
||||
"facing=up,active=true": { "model": "techreborn:block/machines/lighting/alarm_on"}
|
||||
}
|
||||
}
|
|
@ -1,51 +0,0 @@
|
|||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"model": "techreborn:alarm",
|
||||
"textures": {
|
||||
"particle": "#alarm"
|
||||
}
|
||||
},
|
||||
"variants": {
|
||||
"inventory": {
|
||||
"model": "techreborn:alarm",
|
||||
"textures": {
|
||||
"alarm": "techreborn:blocks/machines/lighting/alarm_off"
|
||||
}
|
||||
},
|
||||
"facing": {
|
||||
"down": {
|
||||
"x": 180
|
||||
},
|
||||
"up": {
|
||||
"transform": "forge:default-block"
|
||||
},
|
||||
"north": {
|
||||
"x": 90
|
||||
},
|
||||
"south": {
|
||||
"x": 270
|
||||
},
|
||||
"west": {
|
||||
"x": 90,
|
||||
"y": 270
|
||||
},
|
||||
"east": {
|
||||
"x": 90,
|
||||
"y": 90
|
||||
}
|
||||
},
|
||||
"active": {
|
||||
"true": {
|
||||
"textures": {
|
||||
"alarm": "techreborn:blocks/machines/lighting/alarm_on"
|
||||
}
|
||||
},
|
||||
"false": {
|
||||
"textures": {
|
||||
"alarm": "techreborn:blocks/machines/lighting/alarm_off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18,7 +18,7 @@
|
|||
}
|
||||
},
|
||||
"textures": {
|
||||
"0": "#alarm"
|
||||
"0": "techreborn:block/machines/lighting/alarm_off"
|
||||
},
|
||||
"elements": [
|
||||
{
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"parent": "block/block",
|
||||
"display": {
|
||||
"thirdperson_righthand": {
|
||||
"rotation": [ 75, 45, 0 ],
|
||||
"translation": [ 0, 2.5, 2],
|
||||
"scale": [ 0.375, 0.375, 0.375 ]
|
||||
},
|
||||
"firstperson_righthand": {
|
||||
"rotation": [ 0, 35, 0 ],
|
||||
"translation": [ 0, 5.5, 0 ],
|
||||
"scale": [ 0.60, 0.60, 0.60 ]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [ 0, 225, 0 ],
|
||||
"translation": [ 0, 4.2, 0 ],
|
||||
"scale": [ 0.40, 0.40, 0.40 ]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"0": "techreborn:block/machines/lighting/alarm_on"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "Alarm",
|
||||
"from": [3, 0, 3],
|
||||
"to": [13, 3, 13],
|
||||
"faces": {
|
||||
"down": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
|
||||
"up": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
|
||||
"north": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
|
||||
"south": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
|
||||
"west": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
|
||||
"east": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "techreborn:block/machines/lighting/alarm"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue