Last active
May 25, 2020 18:54
-
-
Save clupasq/a25cac4647dd6b5c3ea34c89d6130ee1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = self.spawnpos() | |
str="THIS IS THE MESSAGE!" | |
isx = 1 | |
isz = 0 | |
dir = -1 | |
for i = 1, #str do | |
local c = str:sub(i,i) | |
minetest.set_node({ | |
x=p.x + (i * dir) * isx, | |
y= p.y + 3, | |
z=p.z + (i * dir) * isz | |
}, { name="basic_robot:button_" .. string.byte(c) }) | |
end | |
self.remove() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment