0

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?

1
  • I'll just specify: Java Edition 1.16.4 Commented Jan 26, 2021 at 11:57

1 Answer 1

1

You miscapitalized OnGround as onGround.

Correct:

{OnGround:1b}
1

You must log in to answer this question.

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