Difference between revisions of "Test"
Jump to navigation
Jump to search
m |
|||
(15 intermediate revisions by 3 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 === | === Code === | ||
− | <syntaxhighlight lang=" | + | <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> | </syntaxhighlight> | ||
Line 61: | Line 78: | ||
|style="text-align:center;"|{{Label|text=Station 3|color=red}} | |style="text-align:center;"|{{Label|text=Station 3|color=red}} | ||
|} | |} | ||
+ | === Ranks === | ||
+ | {{#invoke:Rank|toRank|0}} -> 0xp | ||
+ | |||
+ | {{#invoke:Rank|toRank|300}} -> 300xp | ||
+ | |||
+ | {{#invoke:Rank|toRank|123456}} -> 123456xp | ||
+ | |||
+ | {{#invoke:Rank|toRank|7777777}} -> 7777777xp | ||
+ | |||
+ | {{#invoke:Rank|toRank|999999999}} -> 999999999xp | ||
+ | |||
+ | {{#invoke:Rank|toMajorRank|100000}} -> 100000xp (major only) | ||
+ | |||
+ | === Short === | ||
+ | {{#invoke:Shorten|EU|100000}} -> 100000EU | ||
+ | |||
+ | {{#invoke:Shorten|shorten|1000000}} -> 1m | ||
+ | |||
+ | {{#invoke:Shorten|shorten|1000000000000}} -> 1t | ||
+ | |||
+ | {{#invoke:Shorten|shorten|10000000200000000000000000000500000000000000000000000000000}} -> whatever |
Latest revision as of 21:32, 8 April 2024
Commons
Test4
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
/spawn → Earth teleports → Korlen travelhub
Train station
V1
Earth teleports
↓
Korlen travelhub
V2
Earth teleports |
↓ |
Korlen travelhub |
V3
Station 1 | |
↓ | |
Station 2 | Station 2 |
↓ | |
Station 3 |
Ranks
Copper -> 100000xp (major only)
Short
100.0 kEU -> 100000EU
1m -> 1m
1t -> 1t
10spde -> whatever