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

Zuckerwatte-Code


def zuckerwatte(point, m1, m2, zipfel, remove=False): #Koordinaten, WHITE_CONCRETE, PINK_WOOL, Zipfel

    point=[point[0], point[1], point[2]]

    if remove == True:
        m1=AIR
        m2=AIR

    #Stab

    for a in range(3):
        blocks.place(m1, world(point[0], point[1] + a, point[2]))
 
    #Zuckerwatte 

    for b in range(3):
        blocks.place(m2, world(point[0]-1 + b, point[1] + 3, point[2]-1))
        blocks.place(m2, world(point[0]-1 + b, point[1] + 3, point[2]))
        blocks.place(m2, world(point[0]-1 + b, point[1] + 3, point[2]+1))
 
    for cycle in range(10):
        h=cycle+point[1]+4
        for c in range(5):
            blocks.place(m2, world(point[0]-2 + c, h, point[2]-2))
            blocks.place(m2, world(point[0]-2 + c, h, point[2]-1))
            blocks.place(m2, world(point[0]-2 + c, h, point[2]))
            blocks.place(m2, world(point[0]-2 + c, h, point[2]+1))
            blocks.place(m2, world(point[0]-2 + c, h, point[2]+2))
     
    for d in range(3):
        blocks.place(m2, world(point[0]-1 + d, point[1] + 14, point[2]-1))
        blocks.place(m2, world(point[0]-1 + d, point[1] + 14, point[2]))
        blocks.place(m2, world(point[0]-1 + d, point[1] + 14, point[2]+1))
    
    #Zipfel ja oder nein
 
    if zipfel == 1:
        blocks.place(m2, world(point[0], point[1] + 15, point[2]))
   

zurück

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