add end_gateway
This commit is contained in:
@@ -3787,8 +3787,8 @@ def cauldron(self, blockid, data):
|
|||||||
|
|
||||||
return img
|
return img
|
||||||
|
|
||||||
# end portal
|
# end portal and end_gateway
|
||||||
@material(blockid=119, transparent=True, nodata=True)
|
@material(blockid=[119,209], transparent=True, nodata=True)
|
||||||
def end_portal(self, blockid, data):
|
def end_portal(self, blockid, data):
|
||||||
img = Image.new("RGBA", (24,24), self.bgcolor)
|
img = Image.new("RGBA", (24,24), self.bgcolor)
|
||||||
# generate a black texure with white, blue and grey dots resembling stars
|
# generate a black texure with white, blue and grey dots resembling stars
|
||||||
@@ -3798,6 +3798,8 @@ def end_portal(self, blockid, data):
|
|||||||
x = randint(0,15)
|
x = randint(0,15)
|
||||||
y = randint(0,15)
|
y = randint(0,15)
|
||||||
t.putpixel((x,y),color)
|
t.putpixel((x,y),color)
|
||||||
|
if blockid == 209: # end_gateway
|
||||||
|
return self.build_block(t, t)
|
||||||
|
|
||||||
t = self.transform_image_top(t)
|
t = self.transform_image_top(t)
|
||||||
alpha_over(img, t, (0,0), t)
|
alpha_over(img, t, (0,0), t)
|
||||||
|
|||||||
Reference in New Issue
Block a user