3

I am creating a server were there is a jail. I need to have certain people (cops) be able to shoot them or something like that and be teleported to the jail. I just don't know how to make this work. should I use a command block or something else???

5
  • What part are you struggling with on how to put it together? May 28, 2014 at 0:41
  • I'm going to try this over and over, ill tell you were i get stuck.
    – pace
    May 28, 2014 at 2:13
  • this might complicate things more but i am playing on the original mine craft. what do you mean bye redstone block, it doesn't power anything.
    – pace
    May 28, 2014 at 2:19
  • okay @DatEpicCoderGuyWhoPrograms i am now running into problems with the coding.with the third command block it says "can't teleport blocks out of world, this is what i have for that code"/setblock 446~ 1~ 1366~ redstone_block 0 destroy. i then have a block of redstone, then the 2nd command block. /testfor @e [type=snowball]. then the redstone compositor which is pointed away from the 2nd command block. then on to the redstone repeater which is set back 2 notches then the last command block. the last code is /execute @e[type=snowball] /tp @p 414 1 -1350. if you see what is wrong please tell me
    – pace
    May 28, 2014 at 2:51
  • The numbers you put next to the ~ mark should be numbers relative to the command block not coordinates in the world. May 28, 2014 at 12:19

1 Answer 1

2

Here is a method I came up with while pondering your question, be warned though, I haven't had a chance to test it out, but I think it might work. Here are the commands and command block setup:

1: /testfor @e[type=snowball]
2: /execute @e[type=snowball] /tp @p <x> <y> <z>
3: /setblock ~ ~ ~ redstone_block 0 destroy

Remember to put numbers next to the ~ symbols to tell the command where to place the redstone block relative to the command block so it's constantly running the command in the next command block. Now here's the setup, please note that being able to to what I am telling you to do does require basic command and redstone knowledge:

1 = command block #1
2 = command block #2
3 = command block #3
[] = redstone comparator
{} = redstone repeater with a 2 tick delay
# = redstone block

3#1[]{}2

Also, you might want to run this command as to not lag your server:

/gamerule doTileDrops false

I also forgot to mention, you must be playing in snapshot 14w21a or later.

12
  • Thank you for helping me, i seem to be stuck on how to put it together. i know basic redstone knowledge but i seem to have trouble with understanding how they are supposed to stay active.
    – pace
    May 27, 2014 at 23:06
  • @pace Could you be specific about what part of it you are struggling with? May 27, 2014 at 23:31
  • I seem to question how it is working, whenever i do as you say it doesn't work. here is how i am doing it, please tell me if i am doing anything wrong-
    – pace
    May 28, 2014 at 2:10
  • 1: /testfor @e[type=snowball] 2: /execute @e[type=snowball] /tp @p 418 4 -1325 3: /setblock ~ ~ ~ redstone_block 0 destroy
    – pace
    May 28, 2014 at 2:12
  • @pace Are you playing in the latest snapshot? This does require you to play in the latest snapshot. May 28, 2014 at 11:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .