#how to teleport a player that RC a warped fungus in a stick to ~ 70 ~ in the nether

1 messages · Page 1 of 1 (latest)

hearty frost
#

yup that, im trying to run different options : /execute in minecraft:the_nether run teleport @s ~ ~ ~, execute in minecraft:the_nether run teleport @p[distance=1..3] ~ 70 ~ but none work, ideas?

brittle bayBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

deep coral
#

Pretty sure the command is just tp, not teleport

hearty frost
#

tried with tp as well

#

didnt work

deep coral
#

Assuming the command is getting run as the player, execute in minecraft:the_nether run tp @s ~ 70 ~ will work fine.

#

If it's not, then the command is not getting run as and/or at the player, higher up in the function chain

hearty frost
#

it's not just tried it again with that format

#

so, what should i try doing?

deep coral
#

Fix wherever you are running that command from

#

The command is fine, it's how you're running it that's incorrect

hearty frost
#

thing is, everything else is working, and I've double checked everything, and it seems to be correct

deep coral
#

Show your work

hearty frost
#

ye 1 sec

deep coral
#

Put ``` before and after each block of code, please

hearty frost
#

cool

#
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:warped_fungus_on_a_stick"
        }
      ],
      "functions": [
        {
          "function": "minecraft:set_nbt",
          "tag": "{display:{Name:'[\"\",{\"text\":\"Inferno Scroll\",\"italic\":false}]'},CustomModelData:7150012,HideFlags:1,artifacts.artifacts_item:1b,id:\"artifacts:inferno_scroll\"}"
        }
      ]
    }
  ]
} ```
#

that is inferno_scroll.json

#

item_commands.json

execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:day_crystal"}}}] run function artifacts:set_time_day
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:sunny_crystal"}}}] run function artifacts:set_weather_clear
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:thunder_crystal"}}}] run function artifacts:set_weather_thunder
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:harmony_catalyst"}}}] run function artifacts:set_difficulty_peaceful
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:serene_catalyst"}}}] run function artifacts:set_difficulty_easy
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:balance_catalyst"}}}] run function artifacts:set_difficulty_normal
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:anguish_catalyst"}}}] run function artifacts:set_difficulty_hard
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:soulkeepers_charm"}}}] run function artifacts:set_keepinv_true
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:blood_mask"}}}] run function artifacts:set_keepinv_false
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:void_scroll"}}}] run function artifacts:teleport_void
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:inferno_scroll"}}}]run function artifacts:teleport_inferno
execute if entity @s[nbt={SelectedItem:{tag:{id:"artifacts:overworld_scroll"}}}] run function artifacts:teleport_overworld

scoreboard players set @s artifacts_item_used 0  ```
#

Load

scoreboard objectives add artifacts_item_used minecraft.used:minecraft.warped_fungus_on_a_stick```
#

tick

function artifacts:detect_right_click```
#

detect RC
execute as @a[nbt={SelectedItem:{tag:{artifacts.artifacts_item:1b}}},scores={artifacts_item_used=1..}] run function artifacts:item_commands

deep coral
#

And show the teleport_inferno function

hearty frost
#
execute in minecraft:the_nether run tp @s ~ 70 ~  ```
hearty frost
deep coral
#

Well it'll mostly just make the ~'s actually work

deep coral
#

Is the # actually in the file?

hearty frost
#

yes

#

adding the @s before run, just made eveerything not work

deep coral
deep coral
hearty frost
#

also, @s before run did break everything lol, so if i place that, what should it achieve compared to the rest of the files?

deep coral
#

There's absolutely no way it would have broken anything if done right.

hearty frost
#

I most def did something else lol

#

just removed it and its broken

deep coral
#

All it does is set the executing position to the position of the executor, which gets established immediately prior with the as @a[...]

hearty frost
#

let me find what i did

#

i have absoulutley no idea what happened even my backups are not working

#

ill be back in a bti

#

bit*

urban smelt
#

Hang on. The comment appears to be simply the filename, which should be left as a comment.

#

And where did you add at @a?

smoky plover
#

Try putting a say command in item_commands function to see if you are even getting to that function

deep coral
hearty frost
#

so, I restarted the game and tried to see any errors but yes if i add @s before run in detect right click,json it breaks the whole pack

#

everything besides the tp scroll works

urban smelt
hearty frost
#

lemme try

brittle bayBOT
# hearty frost lemme try
🎗️ Is your question resolved?

If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D