#Dimensional Warp Pad

1 messages · Page 1 of 1 (latest)

velvet arrow
#

I'm trying to convert (and maybe even optimize) my command block array into a datapack. So I have 8 pillars with each one item frame that detects the rotation of the item. No rotation means it's disabled. So each pillar has a possible rotational range of 1-7. With 8 pillars, I allow for only one repetition per combination, which gives a 8 digit code for each world the warp pad transports the player to.
I was about to experiment with scoreboards before I came here. Any clever ideas to optimize my setup?

trim patioBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

🙇 If nobody has answered you by <t:1726701491:t>, feel free to use the Summon Helpers button to ping our helper team.

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

halcyon pawn
#

Hmm… how does this structure spawn?

#

Is it built by the player or generate in the world?

velvet arrow
#

The warp pad is made by me. This will be the only one. I have a mini-pad on each world the main pad opens a gate to.

halcyon pawn
#

So this data pack is just for you?

#

If so, that makes this a lot easier.

velvet arrow
#

That was the plan.

halcyon pawn
#

If it’s controlled by Item Frames, you can name them and have a data pack function detect THAT item frame’s rotation into a scoreboard.

#

Then you could number each scoreboard in an order, and then add them up using a scoreboard operation

#

(i unfortunately don’t know how to do operations, i just know it’s possible)

#

but you could add them up into a chain of numbers which would send the players at the pad somewhere if the number aligned

velvet arrow
#

Yeah, I currently have them named Lock 1 through Lock 8.

#

I currently walk into the particle stream at a 45 degree angle and appear at the same rotation on the other side in the destination world. So the structure is dependent on the rotation of the main gate, which is terrible.

halcyon pawn
#

so you want it to teleport you at a specific angle instead of copying the angle you walked in at?

velvet arrow
#

Actually, that's just the way this turned out. I change the coordinates of the teleport, but I don't touch the rotation.

#

This was originally to prevent me from getting stuck in the warp. Constantly warped to and fro.

#

Been there, done that.

halcyon pawn
#

You can set up a scoreboard that ticks down which acts like a portal cool-down.

#

You can’t be teleported until your portal cool-down hits a number or threshold.

#

Minecraft vanilla does the same thing actually, for nether portals.

velvet arrow
#

This was what I started experimenting with just today. Even got Visual Studio Code with the Datapack Helper Plus as a bonus.

halcyon pawn
#

Awesome!

velvet arrow
#

Current iteration.

halcyon pawn
#

Well, try that out and let us know how it comes out

#

good gravy

#

yk if you want

#

you can split this up into 8 functions, instead of 1 big one

#

since every line has to be read before the next can be

#

if it works it works but try splitting the workload

velvet arrow
#

Yeah, Pillar 1, 2, 3 and so forth. This was just for editing the lines in bulk.

halcyon pawn
#

i see

#

then you do you!

velvet arrow
#

The first line with the slash up top now specifies coordinates of each pillar. But scoreboards are confusing. Not to mention the changes to 1.21 botched my original warp setup. This is just me trying new things.

velvet arrow
velvet arrow
#

After some grueling troubleshooting and back and forth I got back on track. 🙂 With some serious help from chatgpt.

whole pollen
#

Surprised ChatGPT was able to assist at all

#

I would caution you from relying on it in the future; no current LLMs have enough information about data packs to provide accurate guidance

velvet arrow
whole pollen
#

I'd still caution against it

#

But I digress

trim patioBOT
velvet arrow
#

But I am hardly done with the pack.

whole pollen
velvet arrow
#

This was just to get the scoreboards and values to detect properly using functions instead of command blocks. Next is to convert the values into a sort of key.

#

An 8 digit key for each world the warp pad opens a two-way teleport to.

velvet arrow
whole pollen
#

They tend to hallucinate command syntax or make up scoreboards or other factors that you haven't created, but don't instruct you to create those things. They will also sometimes make up file or folder types that don't exist

velvet arrow
#

This is based on the fact it likely knows less than me. It definitely knows more than me. 🙈

whole pollen
#

This happens moreso when you ask it how to do something that isn't actually possible, but they're not programmed to be able to tell you that, they try to give you as affirmative a response as they can. So, naturally, if you understandably don't know it's not possible, then you can run into such a wall quite easily

whole pollen
velvet arrow
#

I definitely told it to go read the technical changes of NBT tags on misode when I tried to fix another datapack earlier this week. That went fine.

whole pollen
#

And even more to the point, if something is technically possible but requires a unique method or workaround to simulate the desired behavior, it doesn't know about that workaround, so it will make up a way to do it based on what it does know, again usually by hallucinating commands or types of files

velvet arrow
#

It was the 24w09a changes.

whole pollen
#

I am not saying it is always 100% innaccurate

#

I am saying you should not rely on it

velvet arrow
#

All good. But I'll keep asking for help wherever it comes from.

whole pollen
#

Sure, whatever

#

What do you need help with from us at this time?

velvet arrow
#

I have eight item frames that detects the rotation of the items on them. These values are now picked up by the scoreboard using functions. Is there a way to combine the values, one from each item frame into a sort of 8 digit key?

whole pollen
#

There's a few ways, which to go about depends on how you intend to read that data

velvet arrow
#

I can use math functions in the scoreboard can I not?

whole pollen
#

You can perform math operations between two scores, correct

halcyon pawn
#

i’m biased against it but it doesn’t know anything. it just scrapes info from online and guesses an answer for you. it’s good that you could make progress but you really shouldn’t ask an AI for help like that, that’s what we’re here for

torn glade
#

There's not nearly enough information about Minecraft datapacks online for AI to know at all how it works

velvet arrow
#

Well, datapack completed. With crucial assistance from ChatGPT to boot.

whole pollen
#

You can tone down the bragging

#

Believie it or not, we were just trying to temper your expectations. You are welcome to do what you want

trim patioBOT
whole pollen
#

User has left the server, so I'll be closing this thread