TransWikia.com

How do I clear dirt from an inventory slot?

Arqade Asked by Blackpanda on August 29, 2021

I want to clear dirt from a particular inventory slot.

For example, I want dirt to be cleared only from the 6th slot and not from the other slots. How do I do that?

One Answer

Run:

/replaceitem entity @p slot.hotbar 5 air

That will replace the 6th hotbar slot to be air. Unfortunately you cannot check if that slot specifically is dirt.

Answered by Penguin on August 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP