Ice Cream Vending Machine

GIVE YOURSELF A COMMAND BLOCK:

/give @p command_block

FIX CHAT SPAMMING:

/gamerule commandBlockOutput false

Commands to run once:

Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks

/scoreboard objectives add iceTimer dummy

Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks

/summon AreaEffectCloud ~ ~-1 ~ {Particle:take,Radius:0.5f,Duration:10000000,Tags:[iceCream1,bothIceCream]}

Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks

/give @p skull 1 3 {iceCone:1,display:{Name:"Ice Cream Cone"},SkullOwner:{Id:"04a08b12-bc5a-409d-9e83-a8d14617e4aa",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2RhMTdlN2IxY2FmOWMxOTU2NWUzYTE3ZWU1N2VhNzRjZThkMjM4ODFlZDhiYmVjNDU1ZWU5NmI2YjQzZGY1MyJ9fX0="}]}}}

Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks

clear @p minecraft:gold_nugget 0 1 {display:{Name:"Coin"}}

COLUMN 1

execute @e[tag=iceCream2] ~ ~ ~ detect ~ ~ ~ lever 10 particle blockdust ~ ~-0.5 ~ 0 0 0 .01 1 force @a 49187

execute @e[tag=iceCream2] ~ ~ ~ detect ~ ~ ~ lever 10 particle blockdust ~ ~-0.5 ~ 0 0 0 .01 1 force @a 49187

Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Repeat Command Block, Blue Command Block, Minecraft, cmd, Cimap, one command, Command Blocks

COLUMN 2

/scoreboard players reset @e[score_iceTimer_min=80] iceTimer

execute @e[score_iceTimer_min=80] ~ ~-1.5 ~ kill @e[tag=iceCone,c=1]

execute @e[score_iceTimer_min=80] ~ ~ ~ setblock ~ ~ ~ lever 2

execute @e[score_iceTimer_min=80] ~ ~ ~ playsound entity.experience_orb.touch master @a

execute @e[tag=iceCream2,score_iceTimer_min=80] ~ ~ ~ /summon Item ~ ~-1.5 ~ {Tags:[NOEAT],Item:{id:skull,Damage:3,Count:1,tag:{eatIce:1,display:{Name:"Chocolate Ice Cream"},SkullOwner:{Id:"740c58cd-1582-4bc1-b912-f86ad16f7e2d",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWVjZmJlYmExZGQ1MWUxZmRjMmM2OGI5N2VhYjlhMzExNDZlMzY2NTMwMTA2M2FkYjcyNWU0ZmUzMWZiZjE0ZSJ9fX0="}]}}}},PickupDelay:10}

execute @e[tag=iceCream1,score_iceTimer_min=80] ~ ~ ~ /summon Item ~ ~-1.5 ~ {Tags:[NOEAT],Item:{id:skull,Damage:3,Count:1,tag:{eatIce:1,display:{Name:"Strawberry Ice Cream"},SkullOwner:{Id:"e519ad2c-9aa1-4390-a93c-a24574dda1ed",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDhlM2I1M2JjOGZhYjE5YzZmZDBmOGFiZjEzYmYyMzAzNTgxZDgxNjkxMTQxZjE1OTczYjQ3NzdlMDM5ZjczIn19fQ=="}]}}}},PickupDelay:10}

execute @e[tag=iceCone] ~ ~1.5 ~ execute @e[tag=bothIceCream,c=1,r=1] ~ ~ ~ detect ~ ~ ~ lever 10 scoreboard players add @e[tag=bothIceCream,c=1,r=1] iceTimer 1

scoreboard players tag @e[type=Item] add iceCone {Item:{tag:{iceCone:1}},OnGround:1b}

Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Repeat Command Block, Blue Command Block, Minecraft, cmd, Cimap, one command, Command Blocks

COLUMN 3

kill @e[tag=eatIce]

execute @e[tag=eatIce] ~ ~ ~ playsound entity.generic.eat master @a

execute @e[tag=eatIce] ~ ~ ~ /effect @p minecraft:saturation 1 2

execute @e[tag=eatIce] ~ ~ ~ /effect @p minecraft:absorption 90 0 true

scoreboard players tag @e[type=Item,tag=!NOEAT] add eatIce {Item:{tag:{eatIce:1}}}

Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Repeat Command Block, Blue Command Block, Minecraft, cmd, Cimap, one command, Command Blocks

How it works:

See what's inside of each command block!

COPYRIGHT © CIMAP. ALL RIGHTS RESERVED.

This website is not endorsed, associated or affiliated with Mojang AB.

Contact me for business enquiries.

Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks
Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks
Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks