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"
The @s selector runs the command with the person running it as the target.
@p targets the nearest player, and should only pick the single closest player to the command block.
A screenshot of your setup would help me to be able to better figure out what the issue is.
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.
If you're wanting to teleport everyone in the area, replace the @p with @a.
Also, you wouldn't happen to be teleporting yourself onto another teleport pad would you?
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...
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"
Can SOMEONE help me with this?
The @s selector runs the command with the person running it as the target.
@p targets the nearest player, and should only pick the single closest player to the command block.
A screenshot of your setup would help me to be able to better figure out what the issue is.
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
Here you go, this is my current set up...
https://photos.app.goo.gl/WQLpbQfd12XQZBAm9
I know it's probably crude, but I want the player to be TPed if they step anywhere with in that strip of plates.
The simplest thing would be to break up the strip by removing every other plate and placing pillars to keep people from walking between the plates.
Alternatively replacing the plates with a button.
Or check the Target Selector Arguments at https://minecraft.gamepedia.com/Commands
Perhaps Selecting targets by distance or volume.
Just testing.
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)
Have you tried /tp instead of /tppos ?
I've never heard of /tppos is it a Forge/Pixelmon command?
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
I have tried tp and it still says failed to execute command as whomever is in the volume area. It's REALLY confusing and frustrating.
Here's what I'm getting when I try just tp....
I do have full-power and I've tried it with me deopped as well...neither way works.
Why not just /tp @p[limit=1] 194.5 156 36.5
What's that "-f" part for?
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.
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
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....
If the command "tp @p 194.5 156 36.5" does not work, then something is seriously wrong with something and I have no idea how to help from here
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
well....poop....
So here's my full command....
and it gives me
But if I do
Then it works perfect!
**EDIT: I just tried
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?
I'd recommend just dropping the execute part as for this command it is completely unneeded.
Try just the command "tp @p 194.5 156 36.5"
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
well I still need to use volume detection and when I do that, it throws me into an infinite teleport loop....
What do you mean by volume detection? Do you want it to teleport all players in an area?
Also, please clarify what you mean by infinite teleport loop as without a redstone clock that shouldn't even be possible.
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
Actually let me correct myself, if I try to do
I get...
It seems you have some mod/pluggin interfering with /tp 's vanilla function. What all do you have installed?
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
I want to teleport anyone who steps into an area...
And what I mean, if I do...
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.
If you're wanting to teleport everyone in the area, replace the @p with @a.
Also, you wouldn't happen to be teleporting yourself onto another teleport pad would you?
Check out my mod! You can find it on CurseForge here:
https://www.curseforge.com/minecraft/mc-mods/the-spookjams-mod
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...
No, I would not be...and I've tried @a as well...till no go...it's REALLY weird....