I'm making a wipeout parkour map and i'm battling with this one command.basically its supposed to replace any barrier blocks underneath a pig called Dinnerbone with air. but for some reason, it doesn't. I cant find anything on the Internet and i cant see whats wrong with the command.
The command: /execute @e[type=Pig,name="Dinnerbone"] ~ ~ ~ /fill ~1 ~-2 ~1 ~-1 ~-1 ~-1 air 0 replace barrier
btw, the command is in a repeating command block.
If I the command it just says:[12:27:09] Failed to execute '/fill ~1 ~-2 ~1 ~-1 ~- ~-1 air 0 replace barrier' as Dinnerbone
and if I run the just the fill command it works but as soon as I put it in a execute command it doesnt work
still doesnt work iv tried every thing i can think of but it sill doesnt work.
basically i want to ride a pig and underneath it command blocks spawn barrier block which then gets deleted as soon as i ride off that block. if u know of any other method of doing this plz let me know