Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (chunk, slices, point) in level.getChunkSlices(box):
- for t in chunk.TileEntities:
- if t["id"].value == "Sign":
- x = t["x"].value
- y = t["y"].value
- z = t["z"].value
- if (x,y,z) in box:
- signblockid = idToName(level.blockAt(x, y, z))
- signdamage = str(level.blockDataAt(x, y, z))
- Line1 = t["Text1"].value
- Line2 = t["Text2"].value
- Line3 = t["Text3"].value
- Line4 = t["Text4"].value
- blocks.append('setblock ~'+str(x-box.minx+1)+' ~'+str(y-box.miny-3)+' ~'+str(z-box.minz)+' ' + signblockid + ' ' + signdamage + ' {Text1:{text:' + Line1 + '},Text2:text:' + Line2 + '},Text3:text:' + Line3 + '},Text4:text:' + Line4 + '}}')
Advertisement
Add Comment
Please, Sign In to add comment