#Datapack that lets players use /tp on a realm.

1 messages · Page 1 of 1 (latest)

nova sparrow
#

So I've got a realm through Java and I have 7 playes who I don't want all OPed and I read you can essentially remake commands with datapacks and let them be used with /trigger but I have NO idea what I'm doing and the only tutorials I could find are before the formatting changed to in 1.20.5 so I'm not sure how to accomplish this. I've never made a datapack, but I would think this would be pretty simple. The other issue is making sure it works on realms, there's a pack made by Eclipse Studios that I thought would work, but for some reason it just doesn't work with realms. Help would be greatly appreciated.

neat starBOT
#

<@&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

vocal iris
#

Well, you can make players able to run commands and such with triggers, but calling it remaking commands is a little misleading. You wouldn't be able to have it be like /trigger tp <player 1> <player 2>, you'd need to make it just /trigger tp and then go from there. Naturally, this produces some limitations.

With great effort you can probably get pretty close to recreating the TP command entirely through triggers, click event text menus, and etc., but I wouldn't call this a beginner task.

With regards to the Eclipse Studios pack, you'd probably be better off talking to them, not us, but if the pack in question is a worldgen or custom dimension pack, that would be why it doesn't work; worldgen is still considered experimental and so Realms do not support it.

nova sparrow
#

right, i tried to add a "creative" dimension one time and that went horribly

#

welp

#

back to inconvienant sign teleports it is

vocal iris
#

If you just want hardcoded warps rather than truly recreating the TP command, that is a usecase where one or more triggers may be beneficial and relatively easy to implement

nova sparrow
#

well, i was going for something that's just having the ability to teleport to other players

vocal iris
#

Ah yeah that's a little more involved I'd say

nova sparrow
#

i would just follow guides on how to do stuff like thath from youtube but everything is outdated now

#

the closest thing is like, "how to update your pack"

#

i know the new update changed how nbt works or something

vocal iris
#

The scoreboard and tp commands should be essentially unchanged between 1.20.4 and 1.20.6

#

The main changes in 1.20.5+ were to items and related commands

nova sparrow
#

well that's what i thought but even the vanilla tweaks teleport doesn't work anymore

vocal iris
#

That doesn't necessarily mean anything on its own

#

Why it doesn't work is more important, and I can tell you it's not because the tp or scoreboard commands changed

nova sparrow
#

so switching gears, how would i figure out why it doesn't work?

#

is there a way i could potentially update the pack myself?

vocal iris
#

Checking logs would be a good place to start

hollow turtle
#

If you just want the ability to teleport to other players, you could use a scoreboard id system

vocal iris
hollow turtle
nova sparrow
#

so i could assign numbers to people? or would it auto assign?

hollow turtle
#

I was thinking it would auto assign but you can make it manual if you want

nova sparrow
vocal iris
#

Our little helper bot is having a moment, but Output Logs are enabled in the Minecraft Launcher by going to Settings in the lower-left corner, and then clicking this checkbox

#

Then simply restart the game and they'll open alongside

nova sparrow
#

gotcha

#

okay well

#

this is odd, the teleportation packs are still working on a world i just made

#

they were working on the realm

vocal iris
#

That sounds like a good thing, then 🙂

nova sparrow
#

i mean unless i royally screwed something up

vocal iris
#

How can you have screwed something up if it's working?

nova sparrow
#

because it's not working on the realm, or it wasnt the last time i checked

vocal iris
nova sparrow
#

yeah before

vocal iris
#

Confusing.

nova sparrow
#

sorry

#

they were working before the 1.20.6 update

vocal iris
#

I see.

nova sparrow
#

but then i saw that the vanilla tweaks site said not to use them, so i disabled them and removed them from the world

vocal iris
#

Could be that the 1.20.6 version of the pack is not backwards compatible with older versions of itself

#

I know I have to do that sometimes for my packs

nova sparrow
#

well the thing is it's not updated yet

#

so i'm stuck with a 1.20.4 pack

#

but it was working

vocal iris
#

Ah, then why is any of this news? You knew it didn't work and were going to update it

nova sparrow
#

no that's not it, i was trying for an alternative

vocal iris
#

I don't understand where you're at right now then

nova sparrow
#

ugh sorry this is all confusing and annoying

hollow turtle
#

Do you want to try and update the Vanilla Tweaks one or do you want help writing your own pack?

nova sparrow
#

i'm worried something is going on with my world...

vocal iris
#

What is making you think that?

nova sparrow
#

i type /trigger and doesn't have any options to autofill and any time i type anything in manually it says "scoreboard doesn't exist"

#

these datapacks are working on another world i just created in the same version

vocal iris
#

And that's the VT pack, yes?

nova sparrow
#

yeah, it's the tpa homes and spawn packs

#

they all three work on another world with 0 issues

vocal iris
#

So it sounds like the load function(s) isn't running. The logs should tell you why

nova sparrow
#

the only thing that's not loading is custom advancements

#

if i list the datapacks they're all there

vocal iris
#

That makes sense, they had a minor syntax change

nova sparrow
#

but it also says that on the world that they work on

vocal iris
#

But that would not be the cause of the trigger issue

nova sparrow
#

typing /reload makes everything reload but the start up messages aren't working on any of them

vocal iris
#

Right, again, it clearly sounds like the load functions are not running

#

This is probably due to a syntax error in one or more of your data packs' load functions, which can cause the load functions for all data packs to not run

nova sparrow
#

great.

#

how do i figure out which one?

vocal iris
#

Presumably/hopefully Realms has them, or if you have data packs on your Realm that you weren't testing with in singleplayer, go ahead and put those in the singleplayer world too

#

So you can check logs there

nova sparrow
#

i downloaded my realm so i could see logs

hollow turtle
#

You're on 1.20.6 and not 24w21b right?

nova sparrow
#

right

#

yeah you're right

#

the load functions are not working at all

#

wait nvm they are for some

vocal iris
#

Then it may be errors in only some of the load functions that aren't significant enough to cause all of the loads to fail

nova sparrow
#

i was able to load the tpa pack but it still isn't working when i use /trigger

vocal iris
#

In what way doesn't it work?

nova sparrow
#

it doens't show up

#

the only thing that shows up is the remnant of a datapack i freaking removed

vocal iris
#

"it" being?

nova sparrow
#

nothing shows up

vocal iris
nova sparrow
#

should autofill with "tpa"

#

most of them have an 'uninstall' which clears those right?

vocal iris
#

OK, so yes it still sounds like the load function isn't running. It's unlikely the objective would be getting created anywhere else

vocal iris
vocal iris
#

It may serve you at this point to open up the pack and find where the tpa scoreboard objective is getting created

nova sparrow
#

okay.

vocal iris
#

So we can investigate why it isn't running.

nova sparrow
#

alright

#

is there a way i can clear all scoreboard objectives and just do a clean reset for datapacks?

vocal iris
#

A new world would be simpler

nova sparrow
#

obviously something has broken several of my datapacks

#

the health indicator one just stopped working upon reload

#

i'm looking at logs but i don't know what's causing what errors

vocal iris
#

That's okay, that's what we're here for. If there are errors, that's a good sign

#

It means the issue can actually be fixed

nova sparrow
#

"Couldn't load tag minecraft:tick as it is missing following references: hp:tick (from file/playerhealthindicatorV2.zip)"

#

well that's why the health indicator died

vocal iris
#

So there's a syntax error in hp:tick, that error is probably somewhere above where you found that line

nova sparrow
#

"Pack file/clgd-info-tools-v1.2.3.zip declared support for versions [26, 41] but declared main format is 18, defaulting to 18"

#

info tools stopped working randomly too

vocal iris
nova sparrow
#

the UI just stopped displaying all together

#

it's supposed to show coords with a compass in your inventory

#

and where it's supposed to show your health via tab now says "0"

vocal iris
#

I understand that

#

But that error you found there is not the cause

nova sparrow
#

"Couldn't parse element loot_tables:homes:create_dimension_marker - Not a json array: {"function":"minecraft:copy_nbt","source":"this","ops":[{"source":"Dimension","target":"homesData.markDimension","op":"replace"}]}; Unknown registry key in ResourceKey[minecraft:root / minecraft:loot_function_type]: minecraft:copy_nbt"

vocal iris
nova sparrow
#

i think it's miniblocks

#

there's a whole string of errors with that

#

so

#

it wont let me send th error

#

clyde says no

vocal iris
#

Too long?

nova sparrow
#

no it said "you don't share a server with the recipient"

#

idek

vocal iris
#

wat, weird

#

Try a screenshot

nova sparrow
#

12:03:31.354
net.minecraft.class_1863
Server thread
Loaded 1707 recipes
12:03:31.355
net.minecraft.class_5349
Server thread
Failed to load function homes:start_to_mark_dimension
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Failed to parse structure: Failed to get element ResourceKey[minecraft:loot_table / homes:create_dimension_marker] at position 51: ...ion_marker<--[HERE]
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Failed to parse structure: Failed to get element ResourceKey[minecraft:loot_table / homes:create_dimension_marker] at position 51: ...ion_marker<--[HERE]
at net.minecraft.class_2158.method_9195(class_2158.java:80)
at net.minecraft.class_5349.method_29451(class_5349.java:83)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
... 6 more

#

well that's one error

vocal iris
#

homes:create_dimension_marker Would need to see more of this function to be able to identify what's wrong there

#

But it's a syntax error

nova sparrow
vocal iris
#

Listen my guy, I do want to help you, but if you're trying to update what sounds like 5+ data packs to 1.20.6, that is a huge undertaking, and pasting one error after another, culminating in what is very probably dozens of them, is a waste of both of our energy. This is not beginner stuff.

I may be able to help you update something simple like the VT tp pack, but all of this other stuff, you're going to need to wait on their devs to actually support the version you're trying to play in. It's beyond me why you even tried all this in the first place

nova sparrow
#

these packs said they WERE updated

#

that's the only reason i downloaded them

#

the only ones that claimed they weren't updated were VT

vocal iris
#

Well, in that case you'd do better to contact their respective devs and report the bug(s)

#

And test each of them on their own first to ensure it's not due to incompatibilities caused by the packs that do not state they are updated

nova sparrow
#

how do i remove the current packs that are malfunctioning if they don't have an uninstall feature?

vocal iris
#

Well you can certainly just remove them

nova sparrow
#

but like you said that doesn't remove the scoreboard right?

vocal iris
#

They may leave things behind like extra scoreboards but they won't break anything else

nova sparrow
#

okay.

#

i totally understand btw, this entire rollercoaster is driving me nuts

nova sparrow
#

I figured out what was causing it.

vocal iris
#

Oh?

nova sparrow
#

obtainable lights, better hanging signs, and Elytra Quest

vocal iris
#

Neat

nova sparrow
#

i'm pretty sure miniblocks is what broke everything's /trigger

#

thank you for your help

vocal iris
#

Sure thing

nova sparrow
#

i literally wouldn't have known what to do at all, sorry this was a massive disaster lol

vocal iris
#

Don't worry about it, but I think a lot of this ballooning could have been avoided by listening to our suggestions much earlier, primarily with regards to checking the logs, and being more upfront about your situation. I was prepared to help update one or two packs that I was told just used scoreboards and tps, but by not disclosing that you had several other packs, whether you believed they were working or not, my ability to provide more direct recommendations was delayed.

nova sparrow
#

i apologize

vocal iris
#

Thank you

#

Now if there's nothing else, you can go ahead and resolve this thread with /resolve

neat starBOT
#
Question Closed

Your question, #1244677003140141101 (Datapack that lets players use /tp on a realm.), was resolved!

Original Message

#1244677003140141101 message

Duration open

2h2m