View difference between Paste ID: iZAtbKTE and NzYiKZNi
SHOW: | | - or go back to the newest paste.
1-
{
1+
local place = ...
2-
  {
2+
3-
    "16",
3+
print("-----------------VERSION-12-------------------")
4-
    "7",
4+
5-
    "16",
5+
local hopperTable = { {"replaceitem block ~12 ~4 ~4 ","golden_rail ",true,"north"},
6-
  },
6+
					  {"replaceitem block ~10 ~4 ~4 ","golden_rail ",false,"north"},	
7-
  {
7+
					  {"replaceitem block ~10 ~3 ~4 ","golden_rail ",false,"north"},	
8-
    0,
8+
					  {"replaceitem block ~12 ~3 ~4 ","golden_rail ",false,"north"},
9-
    1,
9+
					  {"replaceitem block ~9 ~4 ~0 ","activator_rail ",false,"north_reset"},	
10-
    0,
10+
					  {"replaceitem block ~9 ~4 ~2 ","activator_rail ",true,"north_reset"},
11-
    "minecraft:wool",
11+
					  {"replaceitem block ~9 ~3 ~0 ","activator_rail ",false,"north_reset"},
12-
    1,
12+
					  {"replaceitem block ~9 ~3 ~2 ","activator_rail ",false,"north_reset"},
13-
  },
13+
					  {"replaceitem block ~11 ~4 ~10 ","golden_rail ",false,"east"},
14-
  {
14+
					  {"replaceitem block ~11 ~4 ~12 ","golden_rail ",true,"east"},
15-
    14,
15+
					  {"replaceitem block ~11 ~3 ~10 ","golden_rail ",false,"east"},
16-
    1,
16+
					  {"replaceitem block ~11 ~3 ~12 ","golden_rail ",false,"east"},
17-
    0,
17+
					  {"replaceitem block ~13 ~4 ~9 ","activator_rail ",true,"east_reset"},
18-
    "minecraft:quartz_block",
18+
					  {"replaceitem block ~15 ~4 ~9 ","activator_rail ",false,"east_reset"},
19-
    0,
19+
					  {"replaceitem block ~13 ~3 ~9 ","activator_rail ",false,"east_reset"},
20-
  },
20+
					  {"replaceitem block ~15 ~3 ~9 ","activator_rail ",false,"east_reset"},
21-
  {
21+
					  {"replaceitem block ~3 ~4 ~11 ","golden_rail ",true,"south"},
22-
    0,
22+
					  {"replaceitem block ~5 ~4 ~11 ","golden_rail ",false,"south"},
23-
    1,
23+
					  {"replaceitem block ~3 ~3 ~11 ","golden_rail ",false,"south"},
24-
    1,
24+
					  {"replaceitem block ~5 ~3 ~11 ","golden_rail ",false,"south"},
25-
    "minecraft:quartz_block",
25+
					  {"replaceitem block ~6 ~4 ~13 ","activator_rail ",true,"south_reset"},
26-
    0,
26+
					  {"replaceitem block ~6 ~4 ~15 ","activator_rail ",false,"south_reset"},
27-
  },
27+
					  {"replaceitem block ~6 ~3 ~13 ","activator_rail ",false,"south_reset"},
28-
  {
28+
					  {"replaceitem block ~6 ~3 ~15 ","activator_rail ",false,"south_reset"},
29-
    1,
29+
					  {"replaceitem block ~4 ~4 ~3 ","golden_rail ",true,"west"},
30-
    1,
30+
					  {"replaceitem block ~4 ~4 ~5 ","golden_rail ",false,"west"},
31-
    1,
31+
					  {"replaceitem block ~4 ~3 ~3 ","golden_rail ",false,"west"},
32-
    "minecraft:quartz_block",
32+
					  {"replaceitem block ~4 ~3 ~5 ","golden_rail ",false,"west"},
33-
    0,
33+
					  {"replaceitem block ~0 ~4 ~6 ","activator_rail ",false,"west_reset"},
34-
  },
34+
					  {"replaceitem block ~2 ~4 ~6 ","activator_rail ",true,"west_reset"},
35-
  {
35+
					  {"replaceitem block ~0 ~3 ~6 ","activator_rail ",false,"west_reset"},
36-
    2,
36+
					  {"replaceitem block ~2 ~3 ~6 ","activator_rail ",false,"west_reset"},
37-
    1,
37+
					}
38-
    1,
38+
39-
    "minecraft:quartz_block",
39+
40-
    0,
40+
for k in pairs(hopperTable) do
41-
  },
41+
	--print("iteration through hopperTable") 
42-
  {
42+
	local string1 = "roundabout_"..place.."_"..hopperTable[k][4]
43-
    5,
43+
44-
    1,
44+
	local string2 = ""
45-
    1,
45+
	
46-
    "minecraft:quartz_block",
46+
	if hopperTable[k][3]==true then
47-
    0,
47+
		--print("hopper table true")
48-
  },
48+
		for i=1,4 do
49-
  {
49+
50-
    14,
50+
			string2 = "slot.container."..i.." "
51-
    1,
51+
			commands.exec(hopperTable[k][1]..string2..hopperTable[k][2].."1 0 {display:{Name:"..string1.."},ench:[{id:1,lvl:1}]}")
52-
    1,
52+
		end
53-
    "minecraft:quartz_block",
53+
		string2 = "slot.container.0 "
54-
    0,
54+
		commands.exec(hopperTable[k][1]..string2..hopperTable[k][2].."18 0 {display:{Name:"..string1.."},ench:[{id:1,lvl:1}]}")
55-
  },
55+
	else
56-
  {
56+
		--print("hopper table false")
57-
    2,
57+
		string2 = "slot.container.0 "
58-
    1,
58+
		commands.exec(hopperTable[k][1]..string2..hopperTable[k][2].."1 0 {display:{Name:"..string1.."},ench:[{id:1,lvl:1}]}")
59-
    2,
59+
	end
60-
    "minecraft:quartz_block",
60+
end
61-
    0,
61+
62-
  },
62+
commands.exec("setblock ~1 ~5 ~9 golden_rail shape=ascending_north,powered=true")
63-
  {
63+
commands.exec("setblock ~0 ~5 ~9 rail shape=east_west")
64-
    5,
64+
commands.exec("setblock ~1 ~6 ~8 rail shape=south_east")
65-
    1,
65+
66-
    2,
66+
--commands.exec("setblock ~15 ~5 ~6 air")
67-
    "minecraft:quartz_block",
67+
commands.exec("setblock ~14 ~5 ~6 golden_rail shape=ascending_south,powered=true")
68-
    0,
68+
commands.exec("setblock ~15 ~5 ~6 rail shape=east_west")
69-
  },
69+
70-
  {
70+
commands.exec("setblock ~4 ~5 ~6 rail shape=south_west")
71-
    12,
71+
72-
    1,
72+
local string4 = "adresses_roundabout_"..place
73-
    2,
73+
--print(string4)
74-
    "minecraft:quartz_block",
74+
commands.exec("blockdata ~7 ~5 ~7 {CustomName:"..string4.."}")
75-
    0,
75+
commands.exec("blockdata ~8 ~5 ~7 {CustomName:"..string4.."}")
76-
  },
76+
77-
  {
77+
local directions = {
78-
    13,
78+
					{"north","golden_rail"},
79-
    1,
79+
					{"north_reset","activator_rail"},
80-
    2,
80+
					{"east","golden_rail"},
81-
    "minecraft:quartz_block",
81+
					{"east_reset","activator_rail"},
82-
    0,
82+
					{"south","golden_rail"},
83-
  },
83+
					{"south_reset","activator_rail"},
84-
  {
84+
					{"west","golden_rail"},
85-
    14,
85+
					{"west_reset","activator_rail"},
86-
    1,
86+
					}
87-
    2,
87+
88-
    "minecraft:quartz_block",
88+
for i=0,7 do
89-
    0,
89+
	local string3 = "roundabout_"..place.."_"..directions[i+1][1] 	
90-
  },
90+
	--print(string3)
91-
  {
91+
	local string4 = "replaceitem block ~7 ~5 ~7 slot.container."..i.." "..directions[i+1][2].." 64 0 {display:{Name:"..string3.."},ench:[{id:1,lvl:1}]}"
92-
    2,
92+
93-
    1,
93+
94-
    3,
94+
	--print(string4)
95-
    "minecraft:quartz_block",
95+
	commands.exec(string4)
96-
    0,
96+
	string4 = "replaceitem block ~8 ~5 ~7 slot.container."..i.." "..directions[i+1][2].." 64 0 {display:{Name:"..string3.."},ench:[{id:1,lvl:1}]}"
97-
  },
97+
98-
  {
98+
	commands.exec(string4)
99-
    3,
99+
end
100-
    1,
100+
101-
    3,
101+
102-
    "minecraft:quartz_block",
102+
--[[
103-
    0,
103+
commands.exec("setblock  ~12 ~6 ~4 tripwire attached=true,north=true,south=true")
104-
  },
104+
commands.exec("setblock  ~11 ~6 ~12 tripwire attached=true,east=true,west=true")
105-
  {
105+
commands.exec("setblock  ~3 ~6 ~11 tripwire attached=true,north=true,south=true")
106-
    4,
106+
commands.exec("setblock  ~4 ~6 ~3 tripwire attached=true,east=true,west=true")
107-
    1,
107+
--]]