Arqade Asked by pontorka on May 16, 2021
I know how to do it, with specific quantity of items, such as 2 ender eyes, for example:
/execute if data entity @p {Inventory:[{id:"minecraft:eye_of_ender",Count:2b}]}
But it doesn’t work if the player has more than 2, what can I do?
Setup:
scoreboard objectives add eyesOfEnder dummy
Run these commands every tick:
execute store result score #count eyesOfEnder run clear @p minecraft:eye_of_ender 0
execute if score #count eyesOfEnder matches 2.. run clear @p minecraft:eye_of_ender 2
Answered by ginkgo on May 16, 2021
do /clear (playername) and then the item example: Minecraft:stone 5. if you type that you remove 5 stone out of his inventory
Answered by jermy on May 16, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP