Okay guys, I'm running pixelmon server and I have set up some warp locations and I want to set it so when a player steps in a teleport zone they get warped to a location. Now I've tried this several ways with command blocks....I've done....
/warp @s [location]
/teleport @s [x y z]
/tppos @s [x y z]
None of them work..but if I type it into the command line, it works....with @s...
If I do @p instead of @s it works...but @p has this problem, it can pick up more than one player in the area. Currently I have a row of pressure plates on top of a row of command blocks, so I assume it's due to a player stepping on more than one at a time...but I don't know how to set it up so a one command block can look at a given area and issue the command on a player in that given area.
I've been beating my head against a wall with this and like most things with minecraft the documentation is sparse with little to no information and most people trying to tell you how to do it give you flyby's with very little explanation of anything aside from "I'm not going to go over this other stuff that you must know to do this but this is this small snippet that won't work unless you know all of this other stuff, so good luck"
Okay, see things just aren't working for me.... I've tried
tppos @p[distance=1,limit=1] 194.5 156 36.5
tppos @p[limit=1] 194.5 156 36.5
And they just don't do anything, there's no previous output or anything (well previous output just shows - )
I'd LOVE to use the volume but how would I use that?
would it be....
tppos @p[x=256,y=66,z=147,dx=4,dy=5,dz=1] 194.5 156 36.5 and then set it from "Impulse" to "Repeat" and "Needs Redstone" to "Always Active"?
**EDIT: I did the volume command I listed here...and it's put me into an infinite teleport loop I can't move...LOL
**EDIT 2: Tried it with @a still was caught in an infinite teleport loop, it's like it's ignoring the volume selector...
**EDIT 3: So, I did testfor @a[x=256,y=65,z=147,dx=-4,dy=7,dz=1] and it...works......but if I do a tppos it...FAILS...further testing required....
**EDIT 4: More progress! Now I'm getting this as the Previous Output: [15:19:51] Failed to execute 'warp greattree' as StreakDragon No clue why it's failing to execute the command....This is my console command I'm using for the block... execute @a[x=256,y=65,z=147,dx=-4,dy=7,dz=1] 256 65 147 warp greattree (I've no clue why I need to include an x y z...but I do)
Edit: Also, looking at your setup, unless you've changed it you need to spread those out more. With how it is now every pressure plate will also activate the command blocks next to them which could cause some issues.
The -f is force, I thought I might need to do that to get the command to execute, but no go either....
I've tried tp @p 194.5 156 36.5 and it still won't execute...
if I try just to do volume detection by doing tp @p[x=256,y=65,z=147,dx=-4,dy=7,dz=1] 194.5 156 36.5 (not using execute) then it breaks and puts me into an teleport loop that forces me to disable command blocks to get out of it. I've also tried @a with that. However if i do testfor @p[x=256,y=65,z=147,dx=-4,dy=7,dz=1]it works, but the minute I try to do tp, it puts me into an infinite loop....
execute @a[x=256,y=65,z=147,dx=-4,dy=7,dz=1] ~ ~ ~ w @s Hello!
And it fails as well...is there something I need turn on to make these particular commands work, perhaps? Obviously I have enable_command_blocks set to true, but is there any other option I need to turn on?
[16:58:09] Exception from /teleport
Argument player may have only one value!
@a[x=256,y=65,z=147,dx=-4,dy=7,dz=1] 194.5 156 36.5
Usage: /teleport [-q <quiet>] [-f] <player to warp to>|<player to warp> <player to warp to>|<offline player to warp to>
then it just fails and and teleports me no matter if I'm with in the area or not...and REPEATEDLY teleports me, I can't move, it just immediately teleports me back to the area...that's why I started using execute.
I use several different thing Pixelmon Extra is the one I think of off the top of my head that could be causing it...but I can use the command by typing it, with no problem, I can even type in the console /tp @s ..... and it works
What's baffling me is it's giving me the error from the command block saying it's unable to execute the command as the detected player...which makes no sense at all...and of course I can't find ANYTHING online about this particular problem...