TransWikia.com

How to detect an item on ground?

Arqade Asked by DirectoriumMaurice on March 6, 2021

I searched on internet including this site, people said that it worked for them.

I wanna detect a paper laying on the ground and if there is a paper on the ground it runs an command.

I tried this command but it doesn’t work.

/execute as @e[type=item,nbt={Item:{id:"minecraft:paper",Count:1b,tag:{onGround:1b}}}] run say test 

Update: More specifically how to make this command:

/execute as @e[type=item,nbt={Item:{id:"minecraft:paper"}}] at @s run say test

Work only on papers that are on ground?

One Answer

You miscapitalized OnGround as onGround.

Correct:

{OnGround:1b}

Answered by ExpertCoder14 on March 6, 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