In a map I am making, to enter a certain place someone must have 3 iron ingots to enter. I've tried using the /clear
command, but if they have more than 3 they lose it all. Any ideas on how to fix this?
-
1What is the full command you are using, including arguments?– nelson2tmApr 22, 2016 at 14:05
Add a comment
|
1 Answer
You should be able to achieve it with clear by adding a maxCount
clear [player] [item] [data] [maxCount] [dataTag]
So it should be
/clear @p minecraft:iron_ingot -1 3
-
1.13 syntax:
/clear [player] [item] [maxCount]
, co/clear @p minecraft:iron_ingot 3
– ppperyJul 23, 2019 at 2:03