Difference between revisions of "Test"

From Pandorabox
Jump to navigation Jump to search
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 +
=== Commons ===
 +
 +
[[File:Minetest Default Texture Pack.png|thumb|Minetest Default Texture Pack]]
 +
 +
Test4
 +
 +
[[File:screenshot_20201016_171053.png|400px]]
 +
=== Code ===
 +
 +
<syntaxhighlight lang="Lua">
 +
if event.type == "interrupt" then
 +
digiline_send("sensor", "GET")
 +
interrupt(1)
 +
end
 +
 +
if event.type == "program" then
 +
interrupt(1)
 +
end
 +
 +
if event.type == "digiline" then
 +
if event.msg == "technic:hv_nuclear_reactor_core_active" then
 +
  port.a = false
 +
  port.c = true
 +
else
 +
  port.a = true
 +
  port.c = false
 +
end
 +
end
 +
</syntaxhighlight>
 +
 +
=== Category-tree ===
 +
 +
<categorytree mode="pages">Place</categorytree>
  
 
=== Directions ===
 
=== Directions ===
Line 5: Line 39:
 
{{Label|text=Earth teleports|color=red}} →
 
{{Label|text=Earth teleports|color=red}} →
 
{{Label|text=Korlen travelhub|color=yellow}}
 
{{Label|text=Korlen travelhub|color=yellow}}
 +
 +
=== Train station ===
 +
 +
==== V1 ====
 +
 +
<div style="text-align: center;">
 +
{{Label|text=Earth teleports|color=red}}
 +
<br>{{ArrowDown}}<br>
 +
{{Label|text=Korlen travelhub|color=yellow}}
 +
</div>
 +
 +
==== V2 ====
 +
 +
{|
 +
|style="text-align:center;"|{{Label|text=Earth teleports|color=red}}
 +
|-
 +
|style="text-align:center;"|{{ArrowDown}}
 +
|-
 +
|style="text-align:center;"|{{Label|text=Korlen travelhub|color=yellow}}
 +
|}
 +
 +
==== V3 ====
 +
 +
{|
 +
|style="text-align:center;"|{{Label|text=Station 1|color=yellow}}
 +
|
 +
|-
 +
|style="text-align:center;"|{{ArrowDown}}
 +
|
 +
|-
 +
|style="text-align:center;"|{{Label|text=Station 2|color=yellow}}
 +
|style="text-align:center;"|{{Label|text=Station 2|color=red}}
 +
|-
 +
|
 +
|style="text-align:center;"|{{ArrowDown}}
 +
|-
 +
|
 +
|style="text-align:center;"|{{Label|text=Station 3|color=red}}
 +
|}

Latest revision as of 17:31, 17 September 2021

Commons

Minetest Default Texture Pack

Test4

Screenshot 20201016 171053.png

Code

if event.type == "interrupt" then
 digiline_send("sensor", "GET")
 interrupt(1)
end

if event.type == "program" then
 interrupt(1)
end

if event.type == "digiline" then
 if event.msg == "technic:hv_nuclear_reactor_core_active" then
  port.a = false
  port.c = true
 else
  port.a = true
  port.c = false
 end
end

Category-tree

Directions

/spawnEarth teleportsKorlen travelhub

Train station

V1

Earth teleports

Korlen travelhub

V2

Earth teleports
Korlen travelhub

V3

Station 1
Station 2 Station 2
Station 3