Advertisement
djbwxminecraft

Trytta fix it plz

Apr 19th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. from pymclevel import TAG_Compound
  2. from pymclevel import TAG_Int
  3. from pymclevel import TAG_Byte
  4. from pymclevel import TAG_String
  5. from pymclevel import TileEntity
  6.  
  7. displayName = "Commander"
  8.  
  9. def perform(level, box, options):
  10.  
  11.     x = box.minx
  12.     y = box.miny
  13.     z = box.minz
  14.  
  15.     command = "say lol"
  16.  
  17.     level.setBlockAt(x, y, z, 137)
  18.     level.setBlockDataAt(x, y, z, 0)
  19.  
  20.     cmd = TAG_Compound()
  21.     cmd["x"] = TAG_Int(x)
  22.     cmd["y"] = TAG_Int(y)
  23.     cmd["z"] = TAG_Int(z)
  24.     cmd["id"] = TAG_String("Control")
  25.     cmd["Command"] = TAG_String(command)
  26.     cmd["TrackOutput"] = TAG_Byte(0)
  27.    
  28.     level.TileEntities.append(cmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement