scoreboard players add @e[name=Marc,type=armor_stand,score_BarAnimation_min=1,tag=!MarcCamera] BarAnimation 1
tp @e[name=ClickOnBarman,type=villager] @e[name=Marc,type=armor_stand,tag=!MarcCamera]

#-Ask-Question-#
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=2,score_BarAnimation=2] {Pose:{Head:[2f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=4,score_BarAnimation=4] {Pose:{Head:[0f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=6,score_BarAnimation=6] {Pose:{Head:[-2f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=8,score_BarAnimation=8] {Pose:{Head:[0f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=10,score_BarAnimation=10] {Pose:{Head:[2f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=12,score_BarAnimation=12] {Pose:{Head:[0f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=14,score_BarAnimation=14] {Pose:{Head:[-2f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=16,score_BarAnimation=16] {Pose:{Head:[0f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=18,score_BarAnimation=18] {Pose:{Head:[2f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=20,score_BarAnimation=20] {Pose:{Head:[0f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=22,score_BarAnimation=22] {Pose:{Head:[-2f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=24,score_BarAnimation=24] {Pose:{Head:[0f,0f,0f]}}
scoreboard players set @e[name=Marc,type=armor_stand,score_BarAnimation_min=25,score_BarAnimation=25] BarAnimation 0

#-Cya-#
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=26,score_BarAnimation=26] {Pose:{Head:[2f,0f,0f],LeftArm:[330f,0f,220f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=28,score_BarAnimation=28] {Pose:{Head:[0f,0f,0f],LeftArm:[330f,0f,210f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=30,score_BarAnimation=30] {Pose:{Head:[-2f,0f,0f],LeftArm:[330f,0f,200f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=32,score_BarAnimation=32] {Pose:{Head:[0f,0f,0f],LeftArm:[330f,0f,190f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=34,score_BarAnimation=34] {Pose:{Head:[2f,0f,0f],LeftArm:[330f,0f,200f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=36,score_BarAnimation=36] {Pose:{Head:[0f,0f,0f],LeftArm:[330f,0f,210f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=38,score_BarAnimation=38] {Pose:{Head:[-2f,0f,0f],LeftArm:[330f,0f,220f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=40,score_BarAnimation=40] {Pose:{Head:[0f,0f,0f],LeftArm:[330f,0f,210f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=42,score_BarAnimation=42] {Pose:{Head:[2f,0f,0f],LeftArm:[330f,0f,200f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=44,score_BarAnimation=44] {Pose:{Head:[0f,0f,0f],LeftArm:[330f,0f,190f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=46,score_BarAnimation=46] {Pose:{Head:[-2f,0f,0f],LeftArm:[330f,0f,200f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=48,score_BarAnimation=48] {Pose:{Head:[0f,0f,0f],LeftArm:[0f,0f,340f]}}
scoreboard players set @e[name=Marc,type=armor_stand,score_BarAnimation_min=49,score_BarAnimation=49] BarAnimation 0

#-Make-Coffee-#
#Init placement
tp @e[name=Marc,score_BarAnimation_min=101,score_BarAnimation=101] 518 88.5 466 0 0
#Do 3 steps
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=101,score_BarAnimation=101] ~ ~ ~ scoreboard players set @e[name=ClickOnBarman] WalkingAnimation 3
#Moove to empty cup
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=101,score_BarAnimation=120] ~ ~ ~-0.05 ~9 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=120,score_BarAnimation=128] ~-0.04 ~ ~-0.04 ~-11.25 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=129,score_BarAnimation=150] ~-0.06 ~ ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=151,score_BarAnimation=159] ~-0.04 ~ ~ ~14 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=160,score_BarAnimation=174] ~ ~ ~-0.05
#Take empty cup
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=161,score_BarAnimation=161] {Pose:{RightArm:[350f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=162,score_BarAnimation=162] {Pose:{RightArm:[340f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=163,score_BarAnimation=163] {Pose:{RightArm:[330f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=164,score_BarAnimation=164] {Pose:{RightArm:[320f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=165,score_BarAnimation=165] {Pose:{RightArm:[310f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=166,score_BarAnimation=166] {Pose:{RightArm:[300f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=167,score_BarAnimation=167] {Pose:{RightArm:[290f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=168,score_BarAnimation=168] {Pose:{RightArm:[280f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=169,score_BarAnimation=169] {Pose:{RightArm:[270f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=170,score_BarAnimation=170] {Pose:{RightArm:[260f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=171,score_BarAnimation=180] {Pose:{RightArm:[250f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=181,score_BarAnimation=181] {HandItems:[{id:"minecraft:skull",Damage:3,Count:1b,tag:{SkullOwner:{Id:"30361938-2bc2-438c-bb95-be7a6c4828a2",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVlOGFiY2NiNmM2NTc4Mzc0ZGNhMmExMGRmYWYyYjM3YjZmOWM4MjUwZjlmYTFkOWQ2MjA2NDk2MTFmZCJ9fX0="}]}}}},{}]}
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=181,score_BarAnimation=181] ~ ~ ~ replaceitem entity @e[name=EmptyCup,type=villager,tag=EmptyCup] slot.armor.head air
#Moove to coffee machine
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=182,score_BarAnimation=182] ~ ~ ~ scoreboard players set @e[name=ClickOnBarman] WalkingAnimation 2
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=182,score_BarAnimation=190] ~0.05 ~ ~0.02 ~8 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=182,score_BarAnimation=205] ~0.03 ~ ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=206,score_BarAnimation=215] ~0.04 ~ ~-0.02 ~-10 ~
#Place the cup on  the machine
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=216,score_BarAnimation=216] {Pose:{RightArm:[350f,1f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=217,score_BarAnimation=217] {Pose:{RightArm:[340f,3f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=218,score_BarAnimation=218] {Pose:{RightArm:[330f,5f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=219,score_BarAnimation=219] {Pose:{RightArm:[320f,7f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=220,score_BarAnimation=220] {Pose:{RightArm:[310f,9f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=221,score_BarAnimation=221] {Pose:{RightArm:[300f,11f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=222,score_BarAnimation=222] {Pose:{RightArm:[290f,13f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=223,score_BarAnimation=230] {Pose:{RightArm:[290f,15f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=230,score_BarAnimation=230] {HandItems:[{id:"minecraft:air"}]}
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=230,score_BarAnimation=230] ~ ~ ~ replaceitem entity @e[name=FillingCup,type=villager] slot.armor.head skull 1 3 {display:{Name:"Cup"},SkullOwner:{Id:"30361938-2bc2-438c-bb95-be7a6c4828a2",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVlOGFiY2NiNmM2NTc4Mzc0ZGNhMmExMGRmYWYyYjM3YjZmOWM4MjUwZjlmYTFkOWQ2MjA2NDk2MTFmZCJ9fX0="}]}}}
#Press Button
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=231,score_BarAnimation=231] ~ ~ ~ scoreboard players set @e[name=ClickOnBarman] WalkingAnimation 2
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=231,score_BarAnimation=231] {Pose:{RightArm:[280f,15f,342f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=232,score_BarAnimation=232] {Pose:{RightArm:[270f,15f,343f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=233,score_BarAnimation=233] {Pose:{RightArm:[260f,15f,344f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=234,score_BarAnimation=234] {Pose:{RightArm:[250f,15f,345f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=235,score_BarAnimation=235] {Pose:{RightArm:[240f,15f,346f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=236,score_BarAnimation=236] {Pose:{RightArm:[230f,15f,347f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=237,score_BarAnimation=237] {Pose:{RightArm:[220f,15f,348f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=238,score_BarAnimation=238] {Pose:{RightArm:[210f,15f,349f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=239,score_BarAnimation=239] {Pose:{RightArm:[200f,15f,350f]}}
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=231,score_BarAnimation=239] ~ ~ ~-0.03
#Particle Effect
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=240,score_BarAnimation=350] ~ ~ ~ execute @e[name=FillingCup,type=villager] ~ ~ ~ particle fallingdust ~ ~1.1 ~ 0 0.0 0 1 2 1 @a 431
#Go wash cup
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=240,score_BarAnimation=249] ~-0.05 ~ ~0.05 ~-20 ~
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=250,score_BarAnimation=250] {Pose:{Head:[5f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=252,score_BarAnimation=252] {Pose:{Head:[10f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=254,score_BarAnimation=254] {Pose:{Head:[15f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=256,score_BarAnimation=256] {Pose:{Head:[20f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=258,score_BarAnimation=258] {Pose:{Head:[25f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=260,score_BarAnimation=260] {Pose:{Head:[30f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=262,score_BarAnimation=262] {Pose:{Head:[35f,0f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=264,score_BarAnimation=264] {Pose:{Head:[40f,0f,0f]}}
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=250,score_BarAnimation=270] ~ ~ ~0.055
#Particle Wahsing
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=270,score_BarAnimation=330] ~ ~ ~ particle splash 517 88.9 466 0.2 0 0.2 0.1 30 0 @a
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=270,score_BarAnimation=330] ~ ~ ~ particle spit 517 88.9 466 0 0 0 0.01 1 1 @a
#Wash cup
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=270,score_BarAnimation=270] {HandItems:[{id:"minecraft:skull",Damage:3,Count:1b,tag:{SkullOwner:{Id:"30361938-2bc2-438c-bb95-be7a6c4828a2",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVlOGFiY2NiNmM2NTc4Mzc0ZGNhMmExMGRmYWYyYjM3YjZmOWM4MjUwZjlmYTFkOWQ2MjA2NDk2MTFmZCJ9fX0="}]}}}},{}]}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=275,score_BarAnimation=280] {Pose:{LeftArm:[330f,40f,330f],RightArm:[300f,330f,0f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=280,score_BarAnimation=280] {Pose:{LeftArm:[285f,30f,315f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=285,score_BarAnimation=285] {Pose:{LeftArm:[275f,20f,330f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=290,score_BarAnimation=290] {Pose:{LeftArm:[285f,30f,315f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=295,score_BarAnimation=295] {Pose:{LeftArm:[275f,20f,330f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=300,score_BarAnimation=300] {Pose:{LeftArm:[285f,30f,315f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=305,score_BarAnimation=305] {Pose:{LeftArm:[275f,20f,330f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=310,score_BarAnimation=310] {Pose:{LeftArm:[285f,30f,315f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=315,score_BarAnimation=315] {Pose:{LeftArm:[275f,20f,330f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=320,score_BarAnimation=320] {Pose:{LeftArm:[285f,30f,315f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=325,score_BarAnimation=325] {Pose:{LeftArm:[275f,20f,330f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=330,score_BarAnimation=330] {Pose:{LeftArm:[285f,30f,315f]}}
#Go back to empty cup replaceitem
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=331,score_BarAnimation=331] {Pose:{Head:[0f,0f,0f]}}
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=331,score_BarAnimation=331] ~ ~ ~ scoreboard players set @e[name=ClickOnBarman] WalkingAnimation 2
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=331,score_BarAnimation=349] ~ ~ ~-0.02 ~10 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=350,score_BarAnimation=370] ~-0.03 ~ ~-0.03
#Put the empty cup back
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=371,score_BarAnimation=371] {Pose:{RightArm:[350f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=372,score_BarAnimation=372] {Pose:{RightArm:[340f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=373,score_BarAnimation=373] {Pose:{RightArm:[330f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=374,score_BarAnimation=374] {Pose:{RightArm:[320f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=375,score_BarAnimation=375] {Pose:{RightArm:[310f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=376,score_BarAnimation=376] {Pose:{RightArm:[300f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=377,score_BarAnimation=377] {Pose:{RightArm:[290f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=378,score_BarAnimation=378] {Pose:{RightArm:[280f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=379,score_BarAnimation=379] {Pose:{RightArm:[270f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=380,score_BarAnimation=380] {Pose:{RightArm:[260f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=381,score_BarAnimation=381] {Pose:{RightArm:[250f,0f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=382,score_BarAnimation=382] {HandItems:[{id:"minecraft:air"}]}
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=382,score_BarAnimation=382] ~ ~ ~ replaceitem entity @e[name=EmptyCup,type=villager,tag=EmptyCup] slot.armor.head skull 1 3 {display:{Name:"Cup"},SkullOwner:{Id:"30361938-2bc2-438c-bb95-be7a6c4828a2",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVlOGFiY2NiNmM2NTc4Mzc0ZGNhMmExMGRmYWYyYjM3YjZmOWM4MjUwZjlmYTFkOWQ2MjA2NDk2MTFmZCJ9fX0="}]}}}
#Replace by coffee cup
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=350,score_BarAnimation=350] ~ ~ ~ replaceitem entity @e[name=FillingCup,type=villager] slot.armor.head skull 1 3 {display:{Name:"Cup with coffee"},SkullOwner:{Id:"1a9a32c6-ca4a-4ed6-b854-41067cd1318f",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWRjN2RkMWRlNjY0NzhlN2JiYTM1ZDg1NDc2MTI5N2JmYzdjZTMxNDJkMWJiOTg1MWM0NjQxMjMxOWVlIn19fQ=="}]}}}
#Go back to coffe machine
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=382,score_BarAnimation=382] ~ ~ ~ scoreboard players set @e[name=ClickOnBarman] WalkingAnimation 2
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=382,score_BarAnimation=390] ~0.05 ~ ~0.02 ~11 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=390,score_BarAnimation=410] ~0.045 ~ ~-0.01
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=410,score_BarAnimation=420] ~0.02 ~ ~-0.01 ~-10 ~
#Take the coffee
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=421,score_BarAnimation=421] {Pose:{RightArm:[350f,1f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=422,score_BarAnimation=422] {Pose:{RightArm:[340f,3f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=423,score_BarAnimation=423] {Pose:{RightArm:[330f,5f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=424,score_BarAnimation=424] {Pose:{RightArm:[320f,7f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=425,score_BarAnimation=425] {Pose:{RightArm:[310f,9f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=426,score_BarAnimation=426] {Pose:{RightArm:[300f,11f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=427,score_BarAnimation=427] {Pose:{RightArm:[290f,13f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=428,score_BarAnimation=435] {Pose:{RightArm:[290f,15f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=429,score_BarAnimation=429] {HandItems:[{id:"minecraft:skull",Damage:3,Count:1b,tag:{SkullOwner:{Id:"1a9a32c6-ca4a-4ed6-b854-41067cd1318f",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWRjN2RkMWRlNjY0NzhlN2JiYTM1ZDg1NDc2MTI5N2JmYzdjZTMxNDJkMWJiOTg1MWM0NjQxMjMxOWVlIn19fQ=="}]}}}},{}]}
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=429,score_BarAnimation=429] ~ ~ ~ replaceitem entity @e[name=FillingCup,type=villager] slot.armor.head air
#Go to  the customer
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=430,score_BarAnimation=430] ~ ~ ~ scoreboard players set @e[name=ClickOnBarman] WalkingAnimation 2
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=430,score_BarAnimation=440] ~ ~ ~0.02 ~-15 ~
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=440,score_BarAnimation=470] ~ ~ ~0.056
tp @e[name=Marc,type=armor_stand,score_BarAnimation_min=471,score_BarAnimation=471] 518 88.5 466 0 0
#Give  the coffee
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=471,score_BarAnimation=471] {Pose:{RightArm:[350f,1f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=472,score_BarAnimation=472] {Pose:{RightArm:[340f,3f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=473,score_BarAnimation=473] {Pose:{RightArm:[330f,5f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=474,score_BarAnimation=474] {Pose:{RightArm:[320f,7f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=475,score_BarAnimation=475] {Pose:{RightArm:[310f,9f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=476,score_BarAnimation=476] {Pose:{RightArm:[300f,11f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=477,score_BarAnimation=477] {Pose:{RightArm:[290f,13f,340f]}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=478,score_BarAnimation=478] {Pose:{RightArm:[290f,15f,340f]}}
execute @e[name=Marc,type=armor_stand,score_BarAnimation_min=490,score_BarAnimation=490] ~ ~ ~ summon item 518 90 467 {Tags:["SpawnedCoffee"],Item:{id:"minecraft:skull",Damage:3,Count:1b,tag:{display:{Name:"§3§lCup of coffee"},SkullOwner:{Id:"1a9a32c6-ca4a-4ed6-b854-41067cd1318f",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWRjN2RkMWRlNjY0NzhlN2JiYTM1ZDg1NDc2MTI5N2JmYzdjZTMxNDJkMWJiOTg1MWM0NjQxMjMxOWVlIn19fQ=="}]}}}}}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=490,score_BarAnimation=490] {HandItems:[{id:"minecraft:air"}]}
entitydata @e[name=Marc,type=armor_stand,score_BarAnimation_min=490,score_BarAnimation=490]  {Pose:{RightArm:[0f,0f,20f]}}

scoreboard players set @e[name=Marc,type=armor_stand,score_BarAnimation_min=500,score_BarAnimation=500] BarAnimation 0