#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)
<@&1201956957406109788>
💬 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
Pretty sure the command is just tp, not teleport
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
Fix wherever you are running that command from
The command is fine, it's how you're running it that's incorrect
thing is, everything else is working, and I've double checked everything, and it seems to be correct
Show your work
ye 1 sec
Put ``` before and after each block of code, please
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
Add at @s before the run here, to start with
And show the teleport_inferno function
execute in minecraft:the_nether run tp @s ~ 70 ~ ```
cool, that should also add multiplayer support, I assume ,right?
Well it'll mostly just make the ~'s actually work
This looks like it's commented?
Is the # actually in the file?
It definitely should not have done that.
# makes the line a comment and therefore skipped 😅
let me try that
also, @s before run did break everything lol, so if i place that, what should it achieve compared to the rest of the files?
There's absolutely no way it would have broken anything if done right.
All it does is set the executing position to the position of the executor, which gets established immediately prior with the as @a[...]
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*
Hang on. The comment appears to be simply the filename, which should be left as a comment.
And where did you add at @a?
Try putting a say command in item_commands function to see if you are even getting to that function
Oh you're right 🤦mobile moment, it all looked like one line
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
You need to add at @s, not just @s
lemme try
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