Skip to content

Instantly share code, notes, and snippets.

@clupasq
Last active May 25, 2020 18:54
Show Gist options
  • Save clupasq/a25cac4647dd6b5c3ea34c89d6130ee1 to your computer and use it in GitHub Desktop.
Save clupasq/a25cac4647dd6b5c3ea34c89d6130ee1 to your computer and use it in GitHub Desktop.
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