402: Power an infinite floating dispenser that allows only one item. [Minecraft Map Making]

Опубликовано: 11 Июль 2026
на канале: Infernal Device
312
11

Membership:    / @infernaldevice  
Ep402: A floating dispenser that clears your inventory and the floor so that only one item can exist at once.

00:00 Intro
01:50 Activate dispenser
04:00 Refill dispenser
07:40 Clear inventory
09:15 Kill item on floor
10:35 Don't dispense if item exists

Version: 1.21

Request by: t_money

Commands, builds, hacks and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:    / coppitj  

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.

Commands used:

Activate:
IUN: execute unless entity @e[nbt={Item:{components:{"minecraft:custom_data":{my:"dirt"}}}}] run setblock 10049 57 10095 redstone_block
CUA: setblock 10049 57 10095 air
CUA: data merge block 10049 57 10096 {Items:[{Slot:0b, count:64, id:"dirt", components:{"item_name":'{"text":"1","color":"green", "bold":true}', "custom_data":{my:"dirt"}}}]}
CUA: clear @a dirt[custom_data~{my:"dirt"}]