MrGarretto

Untitled

Dec 3rd, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.83 KB | None | 0 0
  1. for (chunk, slices, point) in level.getChunkSlices(box):
  2.         for t in chunk.TileEntities:
  3.             if t["id"].value == "Sign":
  4.                 x = t["x"].value
  5.                 y = t["y"].value
  6.                 z = t["z"].value
  7.                 if (x,y,z) in box:
  8.                     signblockid = idToName(level.blockAt(x, y, z))
  9.                     signdamage = str(level.blockDataAt(x, y, z))
  10.                     Line1 = t["Text1"].value
  11.                     Line2 = t["Text2"].value
  12.                     Line3 = t["Text3"].value
  13.                     Line4 = t["Text4"].value
  14.  
  15.                     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