Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all = {
- "wool:white", "wool:grey", "wool:black", "wool:red", "wool:yellow",
- "wool:green", "wool:cyan", "wool:blue", "wool:magenta", "wool:orange",
- "wool:violet", "wool:brown", "wool:pink", "wool:dark_grey", "wool:dark_green"}
- rainbow = {
- "wool:yellow", "wool:orange", "wool:red", "wool:magenta", "wool:cyan", "wool:blue"}
- candy = {
- "wool:blue", "wool:white"}
- schirm = {
- "wool:yellow", "wool:white", "wool:grey"}
- local structdef = {
- axiom = "",
- materials = all--{ "wool:white", "wool:red", "wool:orange"}
- }
- local schirmli = function()
- tmp = ""--Y-15AR"
- for j=1,8 do
- for i=1,15 do
- tmp=tmp.."0M[Z111ARGGGGGGGGGGGGGG]X3AR"
- end
- for i=1,15 do
- tmp=tmp.."1M[Z111ARGGGGGGGGGGGGGG]X3AR"
- end
- end
- return tmp
- end
- local stiel = function()
- tmp = "2MZ10ARX75ARGGGGGGGGGGGGGGGGGGGGGGGGGGGGG[GGG]"
- return tmp
- end
- local candycane = function ()
- tmp = "Z21ARX44AR"
- seg = "0M[Z90ARGG]1M[Z-90ARGG]"
- for i = 1, 1200 do
- tmp=tmp.."[X"..tostring((i%90)*4).."AR"..seg.."]"
- if i%20==0 then
- if i>700 then
- tmp = tmp.."Z8ARG"
- else
- tmp = tmp.."G"
- end
- end
- end
- return tmp
- end
- turtletool = {
- inventory_image = "default_stick.png",
- on_use = function(itemstack, user, pointed_thing)
- if pointed_thing.type == "node" then
- local pos = pointed_thing.above
- minetest.env:spawn_turtle(pos, structdef)
- --print(structdef.axiom)
- end
- end
- }
- minetest.register_tool("turtle:go", turtletool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement