Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pymclevel import TAG_Compound
- from pymclevel import TAG_Int
- from pymclevel import TAG_Byte
- from pymclevel import TAG_String
- from pymclevel import TileEntity
- displayName = "Commander"
- def perform(level, box, options):
- x = box.minx
- y = box.miny
- z = box.minz
- command = "say lol"
- level.setBlockAt(x, y, z, 137)
- level.setBlockDataAt(x, y, z, 0)
- cmd = TAG_Compound()
- cmd["x"] = TAG_Int(x)
- cmd["y"] = TAG_Int(y)
- cmd["z"] = TAG_Int(z)
- cmd["id"] = TAG_String("Control")
- cmd["Command"] = TAG_String(command)
- cmd["TrackOutput"] = TAG_Byte(0)
- level.TileEntities.append(cmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement