View difference between Paste ID: e12WmQa6 and vYYkMHaU
SHOW: | | - or go back to the newest paste.
1
command /block [<text>]:
2
    permission: tps.block
3
    usage: /block <block/*> or /bl <block/*> or /block for help list
4
    aliases: /bl
5
    trigger:
6
        arg is not set:
7
            send "<gray>----<gold>Items <blue>-> <gold>Blocks<gray>----"
8
            send "<gray>Use /block to turn items into blocks without a workbench"
9
            send "<gray>/Block is compatible with the following blocks:"
10
            send "<gray>* <lime>: <gray>Uses all possibilities for blocks."
11
            send "<green>Emerald <lime>: <gray>9 Emerald <blue>-> <gray>1 Emerald Block"
12
            send "<aqua>Diamond <lime>: <gray>9 Diamond <blue>-> <gray>1 Diamond Block"
13
            send "<gold>Gold <lime>: <gray>9 Gold <blue>-> <gray>1 Gold Block"
14
            send "<white>Snow <lime>: <gray>4 Snowballs <blue>-> <gray>1 Snow Block"
15
            send "<gray>Clay <lime>: <gray>4 Clay Balls <blue>-> <gray>1 Clay Block"
16
            send "<light red>Redstone <lime>: <gray>9 Redstone <blue>-> <gray>1 Redstone Block"
17
            send "<gold>Glowstone <lime>: <gray>4 Glowstone Dust<blue>-> <gray>1 Glowstone Block"
18
            send "<light blue>Lapis <lime>: <gray>9 Lapis <blue>-> <gray>1 Lapis Block"
19
            send "<black>Coal <lime>: <gray>9 Coal <blue>-> <gray>1 Coal Block"
20
            send "<white>Quartz <lime>: <gray>4 Quartz <blue>-> <Gray>1 Quartz Block"
21
            send "<white>Iron <lime>: <gray>9 Iron Ingots <blue>-> <gray>1 Iron Block"
22
            send "<gray>/block is availible to <gold>Gold <gray>donors and above."
23
        arg is "*":
24
            send "<gray>Due to spam filters, this will take approximatly 30 seconds for this to execute."
25
            player has 9 emeralds:
26
                execute player command "/bl e"
27
                wait 3 seconds
28
            player has 4 337:
29
                execute player command "/bl c"
30
                wait 3 seconds
31
            player has 4 snowballs:
32
                execute player command "/bl s"
33
                wait 3 seconds
34
            player has 4 quartz:
35
                execute player command "/bl q"
36
                wait 3 seconds
37
            player has 9 iron ingots:
38
                execute player command "/bl i"
39
                wait 3 seconds
40
            player has 9 diamonds:
41
                execute player command "/bl d"
42
                wait 3 seconds
43
            player has 9 redstone:
44
                execute player command "/bl r"
45
                wait 3 seconds
46
            player has 9 263:
47
                execute player command "/bl cl"
48
                wait 3 seconds
49
            player has 9 lapis:
50
                execute player command "/bl l"
51
                wait 3 seconds
52
            player has 4 glowstone dust:
53
                execute player command "/bl gs"
54
                wait 3 seconds
55
            player has 4 gold ingots:
56
                execute player command "/bl g"
57
                wait 3 seconds
58
            wait 3 seconds
59
        arg is "emerald" or "e":
60
            player does not have 9 emeralds:
61
                send "<red>You need more materials!"
62
                stop trigger
63
            loop 1000 times:
64
                player has 9 emeralds:
65
                    remove 9 emeralds from player
66
                    give player 1 emerald block
67
                    set {_temp} to {_temp}+1
68
            set {_temp2} to {_temp}*9
69
            send "<gray>You traded <green>%{_temp2}% emeralds <gray>for <green>%{_temp}% emerald <gray>blocks!"  
70
        arg is "iron" or "i":
71
            player does not have 9 iron ingots:
72
                send "<red>You need more materials!"
73
                stop trigger
74
            loop 1000 times:
75
                player has 9 iron ingots:
76
                    remove 9 iron ingots from player
77
                    give player 1 iron block
78
                    set {_temp} to {_temp}+1
79
            set {_temp2} to {_temp}*9
80
            send "<gray>You traded %{_temp2}% iron ingots for %{_temp}% iron blocks!" 
81
        arg is "diamond" or "d":
82
            player does not have 9 diamonds:
83
                send "<red>You need more materials!"
84
                stop trigger
85
            loop 1000 times:
86
                player has 9 diamonds:
87
                    remove 9 diamonds from player
88
                    give player 1 diamond block
89
                    set {_temp} to {_temp}+1
90
            set {_temp2} to {_temp}*9
91
            send "<gray>You traded <aqua>%{_temp2}% diamonds <gray>for <aqua>%{_temp}% diamond <gray>blocks!"
92
        arg is "redstone" or "r":
93
            player does not have 9 redstone:
94
                send "<red>You need more materials!"
95
                stop trigger
96
            loop 1000 times:
97
                player has 9 redstone:
98
                    remove 9 redstone from player
99
                    give player 1 redstone block
100
                    set {_temp} to {_temp}+1
101
            set {_temp2} to {_temp}*9
102
            send "<gray>You traded <light red>%{_temp2}% redstone <gray>for <light red>%{_temp}% redstone <gray>blocks!" 
103
        arg is "lapis" or "l":
104
            player does not have 9 lapis:
105
                send "<red>You need more materials!"
106
                stop trigger
107
            loop 1000 times:
108
                player has 9 lapis:
109
                    remove 9 lapis from player
110
                    give player 1 lapis block
111
                    set {_temp} to {_temp}+1
112
            set {_temp2} to {_temp}*9
113
            send "<gray>You traded <blue>%{_temp2}% lapis <gray>for <blue>%{_temp}% lapis <gray>blocks!"   
114
        arg is "clay" or "c":
115
            player does not have 4 337:
116
                send "<red>You need more materials!"
117
                stop trigger
118
            loop 1000 times:
119
                player has 4 337:
120
                    remove 4 337 from player
121
                    give player 1 clay block
122
                    set {_temp} to {_temp}+1
123
            set {_temp2} to {_temp}*4
124
            send "<gray>You traded %{_temp2}% clay balls for %{_temp}% clay blocks!" 
125
        arg is "snow" or "s":
126
            player does not have 4 snowballs:
127
                send "<red>You need more materials!"
128
                stop trigger
129
            loop 1000 times:
130
                player has 4 snowballs:
131
                    remove 4 snowballs from player
132
                    give player 1 snow block
133
                    set {_temp} to {_temp}+1
134
            set {_temp2} to {_temp}*4
135
            send "<gray>You traded <white>%{_temp2}% snowballs <gray>for <white>%{_temp}% snow <gray>blocks!"  
136
        arg is "coal" or "cl":
137
            player does not have 9 263:
138
                send "<red>You need more materials!"
139
                stop trigger
140
            loop 1000 times:
141
                player has 9 263:
142
                    remove 9 263 from player
143
                    give player 1 coal block
144
                    set {_temp} to {_temp}+1
145
            set {_temp2} to {_temp}*9
146
            send "<gray>You traded <black>%{_temp2}% coal <gray>for <blacK>%{_temp}% coal <gray>blocks!"  
147
        arg is "gold" or "g":
148
            player does not have 9 gold ingots:
149
                send "<red>You need more materials!"
150
                stop trigger
151
            loop 1000 times:
152
                player has 9 gold ingots:
153
                    remove 9 gold ingots from player
154
                    give player 1 gold block
155
                    set {_temp} to {_temp}+1
156
            set {_temp2} to {_temp}*9
157
            send "<gray>You traded <gold>%{_temp2}% gold ingots <gray>for <gold>%{_temp}% gold <gray>blocks!"
158
        arg is "glowstone" or "gs":
159
            player does not have 4 glowstone dust:
160
                send "<red>You need more materials!"
161
                stop trigger
162
            loop 1000 times:
163
                player has 4 glowstone dust:
164
                    remove 4 glowstone dust from player
165
                    give player 1 glowstone block
166
                    set {_temp} to {_temp}+1
167
            set {_temp2} to {_temp}*4
168
            send "<gray>You traded <gold>%{_temp2}% glowstone <gray>for <gold>%{_temp}% glowstone <gray>blocks!" 
169
        arg is "quartz" or "q":
170
            player does not have 4 406:
171
                send "<red>You need more materials!"
172
                stop trigger
173
            loop 1000 times:
174
                player has 4 406:
175
                    remove 4 406 from player
176
                    give player 1 quartz block
177
                    set {_temp} to {_temp}+1
178
            set {_temp2} to {_temp}*4
179
            send "<gray>You traded <white>%{_temp2}% quartz <gray>for <white>%{_temp}% quartz <gray>blocks!"