0

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?

1
  • 1
    What is the full command you are using, including arguments?
    – nelson2tm
    Apr 22, 2016 at 14:05

1 Answer 1

2

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
  • 1.13 syntax: /clear [player] [item] [maxCount], co /clear @p minecraft:iron_ingot 3
    – pppery
    Jul 23, 2019 at 2:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .