fix sticky piston heads
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
"textures": {
|
"textures": {
|
||||||
"platform": "minecraft:block/piston_top",
|
"platform": "minecraft:block/piston_top",
|
||||||
"side": "minecraft:block/piston_side",
|
"side": "minecraft:block/piston_side",
|
||||||
"unsticky": "minecraft:block/piston_top"
|
"unsticky": "minecraft:block/piston_top",
|
||||||
|
"unsticky_side": "minecraft:block/piston_side"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
"textures": {
|
"textures": {
|
||||||
"platform": "minecraft:block/piston_top",
|
"platform": "minecraft:block/piston_top",
|
||||||
"side": "minecraft:block/piston_side",
|
"side": "minecraft:block/piston_side",
|
||||||
"unsticky": "minecraft:block/piston_top"
|
"unsticky": "minecraft:block/piston_top",
|
||||||
|
"unsticky_side": "minecraft:block/piston_side"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
"textures": {
|
"textures": {
|
||||||
"platform": "minecraft:block/piston_top_sticky",
|
"platform": "minecraft:block/piston_top_sticky",
|
||||||
"side": "minecraft:block/piston_side_sticky",
|
"side": "minecraft:block/piston_side_sticky",
|
||||||
"unsticky": "minecraft:block/piston_top"
|
"unsticky": "minecraft:block/piston_top",
|
||||||
|
"unsticky_side": "minecraft:block/piston_side"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,34 +1,9 @@
|
|||||||
{
|
{
|
||||||
"credit": "Created by Stridey",
|
"parent": "minecraft:block/template_piston_head",
|
||||||
"textures": {
|
"textures": {
|
||||||
"3": "block/piston_side_sticky",
|
"platform": "minecraft:block/piston_top_sticky",
|
||||||
"4": "block/piston_bottom_sticky",
|
"side": "minecraft:block/piston_side_sticky",
|
||||||
"particle": "block/piston_top_sticky",
|
"unsticky": "minecraft:block/piston_top",
|
||||||
"platform": "block/piston_top_sticky",
|
"unsticky_side": "minecraft:block/piston_side"
|
||||||
"side": "block/piston_side"
|
}
|
||||||
},
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"from": [0, 0, 0],
|
|
||||||
"to": [16, 16, 4],
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [0, 0, 16, 16], "texture": "#platform", "cullface": "north"},
|
|
||||||
"east": {"uv": [0, 0, 16, 4], "rotation": 90, "texture": "#3", "cullface": "east"},
|
|
||||||
"south": {"uv": [0, 0, 16, 16], "texture": "#4"},
|
|
||||||
"west": {"uv": [0, 0, 16, 4], "rotation": 270, "texture": "#3", "cullface": "west"},
|
|
||||||
"up": {"uv": [0, 0, 16, 4], "texture": "#3", "cullface": "up"},
|
|
||||||
"down": {"uv": [0, 0, 16, 4], "rotation": 180, "texture": "#3", "cullface": "down"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [6, 6, 4],
|
|
||||||
"to": [10, 10, 20],
|
|
||||||
"faces": {
|
|
||||||
"east": {"uv": [0, 0, 16, 4], "texture": "#side"},
|
|
||||||
"west": {"uv": [16, 4, 0, 0], "texture": "#side"},
|
|
||||||
"up": {"uv": [0, 0, 16, 4], "rotation": 270, "texture": "#side"},
|
|
||||||
"down": {"uv": [0, 0, 16, 4], "rotation": 90, "texture": "#side"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
{ "from": [ 6, 6, 4 ],
|
{ "from": [ 6, 6, 4 ],
|
||||||
"to": [ 10, 10, 20 ],
|
"to": [ 10, 10, 20 ],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": { "uv": [ 0, 0, 16, 4 ], "texture": "#side", "rotation": 90 },
|
"down": { "uv": [ 0, 0, 16, 4 ], "texture": "#unsticky_side", "rotation": 90 },
|
||||||
"up": { "uv": [ 0, 0, 16, 4 ], "texture": "#side", "rotation": 270 },
|
"up": { "uv": [ 0, 0, 16, 4 ], "texture": "#unsticky_side", "rotation": 270 },
|
||||||
"west": { "uv": [ 16, 4, 0, 0 ], "texture": "#side" },
|
"west": { "uv": [ 16, 4, 0, 0 ], "texture": "#unsticky_side" },
|
||||||
"east": { "uv": [ 0, 0, 16, 4 ], "texture": "#side" }
|
"east": { "uv": [ 0, 0, 16, 4 ], "texture": "#unsticky_side" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
{ "from": [ 6, 6, 4 ],
|
{ "from": [ 6, 6, 4 ],
|
||||||
"to": [ 10, 10, 16 ],
|
"to": [ 10, 10, 16 ],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": { "uv": [ 4, 0, 16, 4 ], "texture": "#side", "rotation": 90 },
|
"down": { "uv": [ 4, 0, 16, 4 ], "texture": "#unsticky_side", "rotation": 90 },
|
||||||
"up": { "uv": [ 4, 0, 16, 4 ], "texture": "#side", "rotation": 270 },
|
"up": { "uv": [ 4, 0, 16, 4 ], "texture": "#unsticky_side", "rotation": 270 },
|
||||||
"west": { "uv": [ 16, 4, 4, 0 ], "texture": "#side" },
|
"west": { "uv": [ 16, 4, 4, 0 ], "texture": "#unsticky_side" },
|
||||||
"east": { "uv": [ 4, 0, 16, 4 ], "texture": "#side" }
|
"east": { "uv": [ 4, 0, 16, 4 ], "texture": "#unsticky_side" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
13
index.html
13
index.html
@@ -105,13 +105,14 @@
|
|||||||
locked: 'false',
|
locked: 'false',
|
||||||
powered: 'false'
|
powered: 'false'
|
||||||
});
|
});
|
||||||
demo2.world.setBlock('minecraft:piston', 2, 0, 0, {facing: 'east', extended: 'false'});
|
demo2.world.setBlock('minecraft:sticky_piston', 2, 0, 0, {facing: 'east', extended: 'false'});
|
||||||
demo2.world.setBlock('minecraft:piston', 2, 0, 1, {facing: 'east', extended: 'true'});
|
demo2.world.setBlock('minecraft:sticky_piston', 2, 0, 1, {facing: 'east', extended: 'true'});
|
||||||
demo2.world.setBlock('minecraft:piston', 2, 0, 2, {facing: 'east', extended: 'true'});
|
demo2.world.setBlock('minecraft:sticky_piston', 2, 0, 2, {facing: 'east', extended: 'true'});
|
||||||
demo2.world.setBlock('minecraft:piston_head', 2.5, 0, 1, {facing: 'east', short: 'true',type: 'sticky'});
|
demo2.world.setBlock('minecraft:piston_head', 2.5, 0, 1, {facing: 'east', short: 'true',type: 'sticky'});
|
||||||
demo2.world.setBlock('minecraft:piston_head', 3, 0, 2, {facing: 'east', short: 'false',type: 'normal'});
|
demo2.world.setBlock('minecraft:piston_head', 3, 0, 2, {facing: 'east', short: 'false',type: 'sticky'});
|
||||||
demo2.world.setBlock('minecraft:redstone_block', 3, 0, 0);
|
|
||||||
// demo2.world.setBlock('minecraft:redstone_block', 3.5, 0, 1);
|
demo2.world.setBlock('minecraft:glass', 3, 0, 0);
|
||||||
|
demo2.world.setBlock('minecraft:observer', 3.5, 0, 1, {facing: 'up', powered: 'true'});
|
||||||
demo2.world.setBlock('minecraft:redstone_block', 4, 0, 2);
|
demo2.world.setBlock('minecraft:redstone_block', 4, 0, 2);
|
||||||
|
|
||||||
demo2.centerView()
|
demo2.centerView()
|
||||||
|
|||||||
Reference in New Issue
Block a user