• API
• FAQ
• Tools
• Archive
daily pastebin goal
25%
SHARE
TWEET

# Untitled

a guest Apr 28th, 2013 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. all = {
2.         "wool:white", "wool:grey", "wool:black", "wool:red", "wool:yellow",
3.         "wool:green", "wool:cyan", "wool:blue", "wool:magenta", "wool:orange",
4.         "wool:violet", "wool:brown", "wool:pink", "wool:dark_grey", "wool:dark_green"}
5.
6. rainbow = {
7.    "wool:yellow", "wool:orange", "wool:red", "wool:magenta", "wool:cyan", "wool:blue"}
8.
9. candy = {
10.    "wool:blue", "wool:white"}
11.
12.
13. schirm = {
14.    "wool:yellow", "wool:white", "wool:grey"}
15. local structdef = {
16.    axiom = "",
17.    materials = all--{ "wool:white", "wool:red", "wool:orange"}
18. }
19.
20. local schirmli = function()
21.    tmp = ""--Y-15AR"
22.    for j=1,8 do
23.    for i=1,15 do
24.       tmp=tmp.."0M[Z111ARGGGGGGGGGGGGGG]X3AR"
25.    end
26.    for i=1,15 do
27.       tmp=tmp.."1M[Z111ARGGGGGGGGGGGGGG]X3AR"
28.    end
29.    end
30.    return tmp
31. end
32.
33. local stiel = function()
34.    tmp = "2MZ10ARX75ARGGGGGGGGGGGGGGGGGGGGGGGGGGGGG[GGG]"
35.    return tmp
36. end
37.
38. local candycane = function ()
39.    tmp = "Z21ARX44AR"
40.    seg = "0M[Z90ARGG]1M[Z-90ARGG]"
41.
42.    for i = 1, 1200 do
43.       tmp=tmp.."[X"..tostring((i%90)*4).."AR"..seg.."]"
44.       if i%20==0 then
45.          if i>700 then
46.             tmp = tmp.."Z8ARG"
47.          else
48.             tmp = tmp.."G"
49.          end
50.       end
51.    end
52.    return tmp
53. end
54.
55. turtletool = {
56.    inventory_image = "default_stick.png",
57.    on_use = function(itemstack, user, pointed_thing)
58.       if pointed_thing.type == "node" then
59.          local pos = pointed_thing.above
60.          minetest.env:spawn_turtle(pos, structdef)
61.          --print(structdef.axiom)
62.       end
63.    end
64. }
65.
66. minetest.register_tool("turtle:go", turtletool)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top