fix rotations for torches. sr latch demo.

This commit is contained in:
David Allemang
2026-07-07 15:52:45 -04:00
parent e4aa6dbe3e
commit 476da0dd90
7 changed files with 262 additions and 131 deletions

View File

@@ -8,6 +8,9 @@
<link rel="stylesheet" href="./src/components.css">
<script type="module" src="./src/components.js"></script>
<style> mc-world, mc-timeline, mc-camera, mc-frame {
display: none;
} </style>
</head>
<body>
<main>
@@ -109,7 +112,7 @@
</mc-world>
</mc-diorama>
<h2>Static multi-view scene</h2>
<h2>Multi-view scene</h2>
<p> Phasellus tortor turpis, commodo ut tortor scelerisque, fermentum tempus nisi. Pellentesque consectetur commodo
rhoncus. Sed ullamcorper turpis dapibus, luctus nibh eu, dapibus risus. Fusce finibus ante eleifend, venenatis
@@ -117,25 +120,117 @@
eros. Etiam porttitor libero a facilisis vulputate. Duis facilisis eget arcu quis ultricies. Etiam dui erat,
luctus ut tristique vitae, fermentum quis magna. </p>
<mc-frame id="nonsense">
<mc-camera orbit></mc-camera>
<mc-frame id="d-latch">
<mc-world>
p -1 0 0 redstone_wire east=side west=none north=none south=none power=0
p -1 -1 0 smooth_stone_slab type=top
p 0 0 0 repeater facing=east delay=1 locked=false powered=false
p 2 0 0 oak_trapdoor facing=east half=bottom open=true
p 0 -1 0 lodestone
p 0 -2 0 piston facing=north extended=false
p -1 0 0 smooth_stone_slab type=top
p 0 0 0 smooth_stone_slab type=top
p 1 0 0 smooth_stone_slab type=top
p 2 0 0 smooth_stone_slab type=top
p 3 0 0 smooth_stone_slab type=top
p 4 0 0 smooth_stone_slab type=top
p -1 0 -1 smooth_stone_slab type=top
p 0 0 -1 smooth_stone_slab type=top
p 1 0 -1 smooth_stone_slab type=top
p 2 0 -1 smooth_stone_slab type=top
p 3 0 -1 smooth_stone_slab type=top
p 4 0 -1 smooth_stone_slab type=top
p -1 0 1 smooth_stone_slab type=top
p 0 0 1 smooth_stone_slab type=top
p 1 0 1 smooth_stone_slab type=top
p 2 0 1 smooth_stone_slab type=top
p 3 0 1 smooth_stone_slab type=top
p 4 0 1 smooth_stone_slab type=top
p 2 1 1 light_blue_terracotta
p 1 1 -1 lime_terracotta
p 4 1 1 light_gray_terracotta
p 4 1 -1 light_gray_terracotta
p 1 1 0 redstone_wall_torch lit=true facing=south
p 2 1 0 redstone_wall_torch lit=false facing=north
p -1 1 1 redstone_lamp lit=true
p 0 1 1 redstone_wire east=side north=none south=none west=side power=14
p 1 1 1 redstone_wire east=up north=side south=none west=side power=15
p 2 2 1 redstone_wire east=side north=none south=none west=side power=14
p 3 1 1 redstone_wire east=side north=none south=none west=up power=13
p 5 1 1 stone_button face=wall powered=false facing=east
p -1 1 -1 redstone_lamp lit=false
p 0 1 -1 redstone_wire east=up north=none south=none west=side power=0
p 1 2 -1 redstone_wire east=side north=none south=none west=side power=0
p 2 1 -1 redstone_wire east=side north=none south=side west=up power=0
p 3 1 -1 redstone_wire east=side north=none south=none west=side power=0
p 5 1 -1 stone_button face=wall powered=false facing=east
t 2
p 5 1 -1 powered=true
p 0 1 -1 power=15
p 1 2 -1 power=15
p 2 1 -1 power=15
p 3 1 -1 power=15
t 4
p 1 1 0 lit=false
p 0 1 1 power=0
p 1 1 1 power=0
p 2 2 1 power=0
p 3 1 1 power=0
t 6
p -1 1 -1 lit=true
p 2 1 0 lit=true
p 0 1 -1 power=15
p 1 2 -1 power=15
p 2 1 -1 power=15
p 3 1 -1 power=15
t 8
p -1 1 1 lit=false
t 22
p 5 1 -1 powered=false
p 0 1 -1 power=15
p 1 2 -1 power=15
p 2 1 -1 power=15
p 3 1 -1 power=15
t 32
p 5 1 1 powered=true
p 0 1 1 power=15
p 1 1 1 power=15
p 2 2 1 power=15
p 3 1 1 power=15
t 34
p 2 1 0 lit=false
p 0 1 -1 power=0
p 1 2 -1 power=0
p 2 1 -1 power=0
p 3 1 -1 power=0
t 36
p -1 1 1 lit=true
p 1 1 0 lit=true
t 38
p -1 1 -1 lit=false
t 52
p 5 1 1 powered=false
t 60
p 0 0 0
</mc-world>
</mc-frame>
<div class="grid-2col">
<mc-diorama frameid="nonsense" theta="180" phi="90"></mc-diorama>
<mc-diorama frameid="nonsense">
<mc-diorama frameid="d-latch" radius="6" theta="140" phi="25" target="2 1 0.5" style="border: 1px solid white">
<mc-timeline autoplay controls="true" loop></mc-timeline>
<mc-camera pan="false" zoom="false"></mc-camera>
</mc-diorama>
<mc-diorama frameid="nonsense" theta="180" phi="0"></mc-diorama>
<mc-diorama frameid="nonsense" theta="270" phi="0"></mc-diorama>
<mc-diorama frameid="d-latch" radius="6" theta="180" phi="90" target="2 1 0.5" style="border: 1px solid white"></mc-diorama>
</div>
<p> Sed urna ante, aliquet et ex nec, posuere laoreet sem. Aenean non sem a massa vehicula faucibus. Donec varius
@@ -217,8 +312,6 @@
Ut id massa eget dui vestibulum pretium. Nunc tempus odio quis nisi ultrices, id volutpat dui tristique.
Suspendisse lacus metus, pulvinar ac urna vitae, pellentesque volutpat eros. In cursus ipsum in enim ornare, sed
tempus mi tincidunt. </p>
<div id="atlas-container"></div>
</main>
</body>
</html>