def rainbow(r,d): #Radius, Dicke
builder.teleport_to(player.position())
builder.move(FORWARD, 30)
builder.set_origin()
end=0.9*r
start= 0-(end)
while start <= end:
builder.teleport_to_origin()
x = Math.sqrt((r*r) - (start*start))
builder.move(UP, x)
builder.move(RIGHT, (start >> 0))
colors= [0,14,0,14,0] #Wolle IDs
for i in range(len(colors)):
for k in range(d):
builder.place(blocks.block_with_data(WOOL, colors[i]))
builder.move(UP, 1)
start+=1 #Zähler
rainbow(30,2)