Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local place = ...
- print("-----------------VERSION-12-------------------")
- local hopperTable = { {"replaceitem block ~12 ~4 ~4 ","golden_rail ",true,"north"},
- {"replaceitem block ~10 ~4 ~4 ","golden_rail ",false,"north"},
- {"replaceitem block ~10 ~3 ~4 ","golden_rail ",false,"north"},
- {"replaceitem block ~12 ~3 ~4 ","golden_rail ",false,"north"},
- {"replaceitem block ~9 ~4 ~0 ","activator_rail ",false,"north_reset"},
- {"replaceitem block ~9 ~4 ~2 ","activator_rail ",true,"north_reset"},
- {"replaceitem block ~9 ~3 ~0 ","activator_rail ",false,"north_reset"},
- {"replaceitem block ~9 ~3 ~2 ","activator_rail ",false,"north_reset"},
- {"replaceitem block ~11 ~4 ~10 ","golden_rail ",false,"east"},
- {"replaceitem block ~11 ~4 ~12 ","golden_rail ",true,"east"},
- {"replaceitem block ~11 ~3 ~10 ","golden_rail ",false,"east"},
- {"replaceitem block ~11 ~3 ~12 ","golden_rail ",false,"east"},
- {"replaceitem block ~13 ~4 ~9 ","activator_rail ",true,"east_reset"},
- {"replaceitem block ~15 ~4 ~9 ","activator_rail ",false,"east_reset"},
- {"replaceitem block ~13 ~3 ~9 ","activator_rail ",false,"east_reset"},
- {"replaceitem block ~15 ~3 ~9 ","activator_rail ",false,"east_reset"},
- {"replaceitem block ~3 ~4 ~11 ","golden_rail ",true,"south"},
- {"replaceitem block ~5 ~4 ~11 ","golden_rail ",false,"south"},
- {"replaceitem block ~3 ~3 ~11 ","golden_rail ",false,"south"},
- {"replaceitem block ~5 ~3 ~11 ","golden_rail ",false,"south"},
- {"replaceitem block ~6 ~4 ~13 ","activator_rail ",true,"south_reset"},
- {"replaceitem block ~6 ~4 ~15 ","activator_rail ",false,"south_reset"},
- {"replaceitem block ~6 ~3 ~13 ","activator_rail ",false,"south_reset"},
- {"replaceitem block ~6 ~3 ~15 ","activator_rail ",false,"south_reset"},
- {"replaceitem block ~4 ~4 ~3 ","golden_rail ",true,"west"},
- {"replaceitem block ~4 ~4 ~5 ","golden_rail ",false,"west"},
- {"replaceitem block ~4 ~3 ~3 ","golden_rail ",false,"west"},
- {"replaceitem block ~4 ~3 ~5 ","golden_rail ",false,"west"},
- {"replaceitem block ~0 ~4 ~6 ","activator_rail ",false,"west_reset"},
- {"replaceitem block ~2 ~4 ~6 ","activator_rail ",true,"west_reset"},
- {"replaceitem block ~0 ~3 ~6 ","activator_rail ",false,"west_reset"},
- {"replaceitem block ~2 ~3 ~6 ","activator_rail ",false,"west_reset"},
- }
- for k in pairs(hopperTable) do
- --print("iteration through hopperTable")
- local string1 = "roundabout_"..place.."_"..hopperTable[k][4]
- local string2 = ""
- if hopperTable[k][3]==true then
- --print("hopper table true")
- for i=1,4 do
- string2 = "slot.container."..i.." "
- commands.exec(hopperTable[k][1]..string2..hopperTable[k][2].."1 0 {display:{Name:"..string1.."},ench:[{id:1,lvl:1}]}")
- end
- string2 = "slot.container.0 "
- commands.exec(hopperTable[k][1]..string2..hopperTable[k][2].."18 0 {display:{Name:"..string1.."},ench:[{id:1,lvl:1}]}")
- else
- --print("hopper table false")
- string2 = "slot.container.0 "
- commands.exec(hopperTable[k][1]..string2..hopperTable[k][2].."1 0 {display:{Name:"..string1.."},ench:[{id:1,lvl:1}]}")
- end
- end
- commands.exec("setblock ~1 ~5 ~9 golden_rail shape=ascending_north,powered=true")
- commands.exec("setblock ~0 ~5 ~9 rail shape=east_west")
- commands.exec("setblock ~1 ~6 ~8 rail shape=south_east")
- --commands.exec("setblock ~15 ~5 ~6 air")
- commands.exec("setblock ~14 ~5 ~6 golden_rail shape=ascending_south,powered=true")
- commands.exec("setblock ~15 ~5 ~6 rail shape=east_west")
- commands.exec("setblock ~4 ~5 ~6 rail shape=south_west")
- local string4 = "adresses_roundabout_"..place
- --print(string4)
- commands.exec("blockdata ~7 ~5 ~7 {CustomName:"..string4.."}")
- commands.exec("blockdata ~8 ~5 ~7 {CustomName:"..string4.."}")
- local directions = {
- {"north","golden_rail"},
- {"north_reset","activator_rail"},
- {"east","golden_rail"},
- {"east_reset","activator_rail"},
- {"south","golden_rail"},
- {"south_reset","activator_rail"},
- {"west","golden_rail"},
- {"west_reset","activator_rail"},
- }
- for i=0,7 do
- local string3 = "roundabout_"..place.."_"..directions[i+1][1]
- --print(string3)
- local string4 = "replaceitem block ~7 ~5 ~7 slot.container."..i.." "..directions[i+1][2].." 64 0 {display:{Name:"..string3.."},ench:[{id:1,lvl:1}]}"
- --print(string4)
- commands.exec(string4)
- string4 = "replaceitem block ~8 ~5 ~7 slot.container."..i.." "..directions[i+1][2].." 64 0 {display:{Name:"..string3.."},ench:[{id:1,lvl:1}]}"
- commands.exec(string4)
- end
- --[[
- commands.exec("setblock ~12 ~6 ~4 tripwire attached=true,north=true,south=true")
- commands.exec("setblock ~11 ~6 ~12 tripwire attached=true,east=true,west=true")
- commands.exec("setblock ~3 ~6 ~11 tripwire attached=true,north=true,south=true")
- commands.exec("setblock ~4 ~6 ~3 tripwire attached=true,east=true,west=true")
- --]]
Add Comment
Please, Sign In to add comment