Maps Redstone Device

Vanilla Minecraft TP Machine

  • 459 views 0 today
Progress
100% complete
  • 1
  • 0
  • 1
ZPIEGOD
Lvl 3Apprentice Miner
0
Purpose: To allow teleport requests in Vanilla Minecraft.
This should be hidden from the players, and one needs to be made per player that will be teleported to.
The MCEdit schematic is actually the world folder.

Setup:
/scoreboard objectives add Accept trigger
/scoreboard objectives add Deny trigger
/scoreboard objectives add TP trigger
/scoreboard objectives add ID dummy
/scoreboard objectives setdisplay list ID
/scoreboard players set (Player Name) ID (Number)
Note: This last command needs to be performed for every player, and that is the number players will have to type to teleport to them

Note: For this to work, every player needs to have a designated number.

Command Block Commands:
1: /testfor @a[score_TP=(ID),score_TP_min=(ID)]
2: /tell (Player Name) @a[score_TP=(ID),score_TP_min=(ID)] would like to teleport to you. Use /trigger Accept set 1 or /trigger Deny 1 within 4 seconds.
3: /testfor @a[score_Accept_min=1,name=(Player Name)]
4: /testfor @a[score_Deny_min=1,name=(Player Name)]
5: /scoreboard players set (Player Name) Accept 0
6: /tp @a[score_TP=(ID),score_TP_min=(ID)] (Player Name)
7: /tell @a[score_TP=(ID),score_TP_min=(ID)] (Player Name) has denied your teleport request
8: /scoreboard players set @a[score_TP=(ID),score_TP_min=(ID)] TP 0
9: /scoreboard players set (Player Name) Deny 0
10: /scoreboard players enable @a Deny
11: /scoreboard players enable @a Accept
12: /scoreboard players enable @a TP

Note: (Player Name) indicates the name of the player this machine was made for, and the player corresponding with the ID used.

Usage: 
/trigger TP set (ID)
/trigger Accept set 1
/trigger Deny set 1

Sorry about any inconvenience setting this up for your server causes. Although it's great for LAN, and small servers, as you only need to make a few copies.

Please comment with any problems you have, and subscribe if you like this, as more is likely to come.

More like this

  Have something to say?

kphoenix
11/21/2015 3:50 pm
Level 2 : Apprentice System
How do I download this?
1

Welcome