mojira.dev
MC-69170

command /testfor @e[type=Item,x=-133,y=67,z=367,r=3] {OnGround:2b,Item:{id:"minecraft:writable_book"}} not working as expected

basically i was creating a way to get enchanted books easier and one part of it is as follows

/testfor @e[type=Item,x=-133,y=67,z=367,r=3] {OnGround:2b,Item:{id:"minecraft:writable_book"}}

i have this set to a hopper clock, but when the item is on the ground it produces this as the output

[19:12:33] item.item.writingBook did not match the required data structure

as far as i have done in the past it should work , i am in 1.8 pre though idk if that would effect it

Comments 2

no i want the player to put a normal book and quill down and they will be given an echanted book if they meet the other requirements

I believe the issue is with OnGround:2b. OnGround is binary and can only be 0 or 1.

brian

(Unassigned)

Unconfirmed

Minecraft 1.8-pre1

Retrieved