You can't use /testforblock x y -0 wooden_button, it says then that its searching for a block at x y 0
Correct, because testfor adds +0.5 which would be -0+0.5=0.5 which rounds to 0.
A little math will fix your problem.
Reporter: migrated
Assignee: (Unassigned)
Created: 2013-12-20T12:49:41Z
Updated: 2026-08-20T09:12:58Z
Resolved: 2013-12-20T14:52:39Z
Confirmation Status: Unconfirmed
Affects Versions: Minecraft 1.7.4
Retrieved 2026-10-11T05:57:36Z
Correct, because testfor adds +0.5 which would be -0+0.5=0.5 which rounds to 0.
A little math will fix your problem.