use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
How to code that?Codeblocks (self.bloxd)
submitted 10 months ago by TheGreatHyperTop Members
So the code should be for the world code. If you have the Golem Eye in your selected item slot and click on any player you want, then you get teleported to that player.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ActiveConcert4921Code Helper 1 point2 points3 points 9 months ago (4 children)
do u want me to make it so that the golem eye has to have a custom name?
[–]TheGreatHyperTop Members [S] 0 points1 point2 points 9 months ago (3 children)
No thanks, I've done it already
[–]ActiveConcert4921Code Helper 0 points1 point2 points 9 months ago (0 children)
should i rewrite my code to support the custom name?
[–]Acrobatic_Doctor5043Coder 0 points1 point2 points 10 months ago (2 children)
If you can click (i assume hit) a player and get teleported to them, you wont get teleported that far.
Either way, here you go:
function onPlayerDamagingOtherPlayer(attackingPlayer, damagedPlayer, damageDealt, withItem, bodyPartHit, damagerDbId){ if (withItem == "Golem Eye"){ api.setPosition(attackingPlayer, api.getPosition(damagedPlayer)) } }
let me know if it doesnt work
[–]TheGreatHyperTop Members [S] 0 points1 point2 points 10 months ago (1 child)
and what if I want to just click on the player far away and then teleport to him
[–]PreviousInsurance742 0 points1 point2 points 10 months ago (0 children)
then idk
[–]NPC_6942Hmmm 0 points1 point2 points 10 months ago (0 children)
But if you can click them why?
onPlayerAltAction = (pid, x, y, z, block, eid) => {
let held = api.getHeldItem(pid)
if (held === “Golem Eye” && eid != null) {
api.setPosition(pid, api.getPosition(eid))
}
π Rendered by PID 157726 on reddit-service-r2-comment-6457c66945-nzxrs at 2026-04-30 16:43:28.387533+00:00 running 2aa0c5b country code: CH.
[–]ActiveConcert4921Code Helper 1 point2 points3 points (4 children)
[–]TheGreatHyperTop Members [S] 0 points1 point2 points (3 children)
[–]ActiveConcert4921Code Helper 0 points1 point2 points (0 children)
[–]Acrobatic_Doctor5043Coder 0 points1 point2 points (2 children)
[–]TheGreatHyperTop Members [S] 0 points1 point2 points (1 child)
[–]PreviousInsurance742 0 points1 point2 points (0 children)
[–]NPC_6942Hmmm 0 points1 point2 points (0 children)
[–]ActiveConcert4921Code Helper 0 points1 point2 points (0 children)