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

Marshmallow-Code


def Marshmallow(point, m1, m2, h, remove=False):   
    
    # h = Höhe Materialien: STRIPPED_SPRUCE_WOOD, WHITE_CONCRETE

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

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

    l=h/2; b=l/3*2      # b = Breite Marshmallow, l = Höhe Marshmallow

    #Stab

    blocks.fill(m1, 
    world (point[0], point[1], point[2]), 
    world (point[0], point[1]+h, point[2]))

    #Marshmallow

    blocks.fill(m2, 
    world(point[0]-(b/2), point[1]+h, point[2]-(b/2)), 
    world(point[0]+(b/2), point[1]+h+l, point[2]+(b/2)))

zurück

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