Skip to main content
4 events
when toggle format what by license comment
Jan 28, 2016 at 23:09 comment added vex @thezi3 I'm not 100% sure, but I think /execute @a ~ ~ ~ testfor @p {Riding:{id:EntityHorse}} should work for the nearest player in 1.8+. I haven't been able to test this yet. If not, a slightly less reliable method could be used, testing for the player's height instead: /execute @a ~ ~ ~ execute @p[y=(the ground level of your world + about 2),dx=0,dy=0,dz=0] ~ ~ ~ testfor @p. For example, I could use /execute @a ~ ~ ~ execute @p[y=64,dx=0,dy=0,dz=0] ~ ~ ~ testfor @p if the ground level was 62.
Jan 22, 2016 at 14:33 vote accept thezi3
Jan 22, 2016 at 14:33 comment added thezi3 Hey, sorry it took me forever to get back to you on this. My setup must have been wrong, as now it works perfectly.... Unfortunately, I forgot what I was going to use it for :/ I'll find a use for it though. Also, would you perhaps know anyway to test for a player riding on a horse/donkey? Testing for mobs with the Riding tag doesn't seem to work, so I doubt there would be a way to testfor a player with the Riding tag (Do players even get "Riding" tags?).
Jun 27, 2015 at 21:03 history answered vex CC BY-SA 3.0