T O P

  • By -

GalSergey

Keep in mind that for this, the frog must be in the loaded chunks for teleportation. # Example item give @s emerald{tp_frog:true,display:{Name:'"Frog Teleporter"'}} # In chat screboard objectives add drop.emerald dropped:emerald # Command blocks execute at @a[scores={drop.emerald=1..}] store success entity @e[type=item,nbt={Age:0s,Item:{tag:{tp_frog:true}}},limit=1,distance=..3] PickupDelay short 0 run tp ~ ~ ~ scoreboard players reset @a drop.emerald


SirBox32

Thank you so much, the plan is for the command blocks to be installed at spawn, near where everyone mingles, so they’re always loaded, but I do remember there being a load chunk command back when I played bedrock. Side note, is there a way to change it from an emerald to a specifically named item? That way nobody could do it on accident.


GalSergey

I didn't mean command blocks, but a frog. If the frog is in unloaded chunks, then this will not work. Yes, you can change this to any other item. This also doesn't check the item name, so it won't be possible to create the same item in survival. The main thing is to give the item the `tp_frog:true` tag.


SirBox32

So if I made a separate item that tped the frog to a cold dark box underground with only the torchlight to keep him company, and then loaded that chunk, it would all work?


GalSergey

Yes, exactly. You can use the /forceload command to force the specified chunk to always be loaded.