Ejemplo n.º 1
0
 def on_block_removed(self, x, y, z):
     if self.deflooring == 2:
         self.deflooring = 0
         if self.clearfloor_z != z:
             self.send_chat('Surface is uneven! Using first height.')
         clearbox.clear_solid(self.protocol, self.clearfloor_x, self.clearfloor_y, self.clearfloor_z, x, y, self.clearfloor_z, self.god)
         self.send_chat('Floor destroyed!')
     if self.deflooring == 1:
         self.clearfloor_x = x
         self.clearfloor_y = y
         self.clearfloor_z = z
         self.send_chat('Now break opposite corner block')
         self.deflooring = 2
     return connection.on_block_removed(self, x, y, z)
Ejemplo n.º 2
0
 def on_block_removed(self, x, y, z):
     if self.deflooring == 2:
         self.deflooring = 0
         if self.clearfloor_z != z:
             self.send_chat('Surface is uneven! Using first height.')
         clearbox.clear_solid(self.protocol, self.clearfloor_x,
                              self.clearfloor_y, self.clearfloor_z, x,
                              y, self.clearfloor_z, self.god)
         self.send_chat('Floor destroyed!')
     if self.deflooring == 1:
         self.clearfloor_x = x
         self.clearfloor_y = y
         self.clearfloor_z = z
         self.send_chat('Now break opposite corner block')
         self.deflooring = 2
     return connection.on_block_removed(self, x, y, z)
Ejemplo n.º 3
0
 def clear_box_solid(self, x1, y1, z1, x2, y2, z2):
     clearbox.clear_solid(self.protocol, x1, y1, z1, x2, y2, z2, self.god)
Ejemplo n.º 4
0
 def on_block_removed(self, x, y, z):
     if self.dewalling is not None:
         z2 = min(61, max(0, z - self.dewalling + sign(self.dewalling)))
         clearbox.clear_solid(self.protocol, x, y, z, x, y, z2, self.god)
     return connection.on_block_removed(self, x, y, z)
Ejemplo n.º 5
0
 def clear_box_solid(self, x1, y1, z1, x2, y2, z2):
     clearbox.clear_solid(self.protocol, x1, y1, z1, x2, y2, z2,
                          self.god)
Ejemplo n.º 6
0
 def on_block_removed(self, x, y, z):
     if self.dewalling is not None:
         z2 = min(61, max(0, z - self.dewalling + sign(self.dewalling)))
         clearbox.clear_solid(self.protocol, x, y, z, x, y, z2,
                              self.god)
     return connection.on_block_removed(self, x, y, z)