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: eric kemmeren
Assignee: (Unassigned)
Created: 2013-12-20T12:49:41Z
Updated: 2025-04-11T19:40:01Z
Resolved: 2013-12-20T14:52:39Z
ADO:
Confirmation Status: Unconfirmed
Area:
Mojang Priority:
Category:
Labels:
Affects Versions: Minecraft 1.7.4
Fix Versions:
Retrieved 2025-06-11T10:43:26Z
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.