Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i = 1, #blockData do
- local nextBlock = blockData["block"..i]
- print(nextBlock)
- local temp = textutils.unserialize(nextBlock)
- if doorState then
- tempBlock = temp["onBlock"]
- elseif not doorState then
- tempBlock = temp["offBlock"]
- end
- commands.execAsync("setblock "..temp["xPos"].." "..temp["yPos"].." "..temp["zPos"].." "..tempBlock)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement