So, you obviously have a radius detector in your target selection. Try adding in an "rm=0" and if that doesn't work, replace the zero with 0.1. Rm is the minimum radius, so you will delete things that are between five and 0.1 blocks away.
So, I'm making an OOC, and I know how to do it all- except one thing. It adds something where if you through a nether star down onto TNT it will give you a new item. I was going to do this by summoning in armor stands and executing a /testfor from them because I can test for specific item types in that. This method didn't work for reasons I won't get into. So, my question is, is there a way to execute a command
Sethbling has made videos on both of these topics. He had one video in which throwing snowballs of a certain name would summon mobs, and another's where two zombies fought via instant damage potions. It was different with the zombies, though, because they were tracking a villager. With wolves it might be possible to let them attack a sheep, then use it off-screen for help, but apart from that I don't know.
Oh ok. Thanks a lot. I had thought that /tp @p ~5 ~ ~ would teleport the player to a position 5 blocks along the x axis in regard to the command block, not the player. I'll keep that in mind.
I know some stuff about command blocks, but I'm not an expert. I am trying to teleport a player five blocks along the x-axis whenever they through an xp bottle. I have done the testing for the bottle part, but the execute command will not work for /tp. It works for other things such as /summon and /setblock. My command is this: execute @p ~ ~ ~ tp ~5 ~ ~ It gives me an error message: "Failed to execute 'tp ~5 ~ ~' as Brendanzeros" Can someone please tell me why the command is failing and how I can fix it?
0
Never mind, I found a way around this.
0
So, you obviously have a radius detector in your target selection. Try adding in an "rm=0" and if that doesn't work, replace the zero with 0.1. Rm is the minimum radius, so you will delete things that are between five and 0.1 blocks away.
0
So, I'm making an OOC, and I know how to do it all- except one thing. It adds something where if you through a nether star down onto TNT it will give you a new item. I was going to do this by summoning in armor stands and executing a /testfor from them because I can test for specific item types in that. This method didn't work for reasons I won't get into. So, my question is, is there a way to execute a command
from only a certain type of item?
0
Sethbling has made videos on both of these topics. He had one video in which throwing snowballs of a certain name would summon mobs, and another's where two zombies fought via instant damage potions. It was different with the zombies, though, because they were tracking a villager. With wolves it might be possible to let them attack a sheep, then use it off-screen for help, but apart from that I don't know.
0
0