11: Delayed teleport item [Minecraft Map Making]
Ep11: Item, that when thrown, teleports the player after a delay.
Originally for Udemy, but uploaded here.
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/KNSmPWdnfG
Udemy notes. YouTube formatting may make some of these wrong. :)
Commands used:
Create an objective for the Teleporter item:
scoreboard objectives add teleportScore dummy
Give the player a teleporter item:
give @p ender_pearl{display:{Name:'{"text":"Teleporter"}',Lore:['{"text":"Drop it on the floor to activate."}']},teleportItem:1b} 1
give @p ender_pearl{teleportItem:1b}
Give the item a score of 3:
execute at @e unless entity @e[scores={teleportScore=0..}] run scoreboard players set @e[nbt={OnGround:1b, Item:{tag:{teleportItem:1b}}}] teleportScore 3
Decrement the score of the item:
scoreboard players remove @e[nbt={OnGround:1b, Item:{tag:{teleportItem:1b}}}] teleportScore 1
Change the item name based on the score:
execute as @e run data merge entity @s[scores={teleportScore=3}, nbt={OnGround:1b, Item:{tag:{teleportItem:1b}}}] {CustomName:"3", CustomNameVisible:1b}
Particle effect for item:
execute at @e[nbt={OnGround:1b, Item:{tag:{teleportItem:1b}}}] run particle enchant ~ ~0.5 ~ 0.2 0.2 0.2 0 5
Teleport the player to item with a score of 0
execute as @e[scores={teleportScore=0}] run tp @p @s
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 184,447 views spread across 877 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.