archiv:ef:ef2020_2022:minecraft:projekt:smantharebekkajehan:start:lollipop-code:start

Zuckerstange-Code


def lolipop(m1,m2,point, l,remove=False):
    point=[point[0], point[1], point[2]]
    if remove == True:
        m1=AIR
        m2=AIR
    
    for i in range(l):
        if (i%2)==0:
            blocks.place(m1, world(point[0], i+point[1], point[2]))
        else:
            blocks.place(m2, world(point[0], i+point[1], point[2]))
  
    l_2=l/2
    
    for a in range(l_2):
        if (a%2)==0:
            blocks.place(m1, world(point[0]+a, l+point[1], point[2]))
        else:
            blocks.place(m2, world(a+point[0],l+point[1], point[2]))
 
    l_3=l/4
 
    for b in range(l_3):
        if (b%2)==0:
            blocks.place(m1, world(point[0]+l_2, l+point[1]-b, point[2]))
        else:
            blocks.place(m2, world(point[0]+l_2,l+point[1]-b, point[2]))
            

zurück

  • archiv/ef/ef2020_2022/minecraft/projekt/smantharebekkajehan/start/lollipop-code/start.txt
  • Zuletzt geändert: 2022/08/27 18:13
  • von lehmannr