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?
#Dimensional Warp Pad
1 messages · Page 1 of 1 (latest)
<@&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
Hmm… how does this structure spawn?
Is it built by the player or generate in the world?
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.
That was the plan.
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
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.
so you want it to teleport you at a specific angle instead of copying the angle you walked in at?
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.
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.
This was what I started experimenting with just today. Even got Visual Studio Code with the Datapack Helper Plus as a bonus.
Awesome!
Current iteration.
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
Yeah, Pillar 1, 2, 3 and so forth. This was just for editing the lines in bulk.
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.
But much appreciated! I'm going to leave this here and go to bed. It's 1 am after all.
After some grueling troubleshooting and back and forth I got back on track. 🙂 With some serious help from chatgpt.
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
A ton of testing and trying was required. It definitely gave me better insight into how to manipulate the commands and functions.
🎗️ 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
But I am hardly done with the pack.
Ah, I interpreted this message as saying you got it working. What's next then?
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.
Why is that?
For the reasons I described
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
This is based on the fact it likely knows less than me. It definitely knows more than me. 🙈
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
It's not that it knows less than you, it's that it's overconfident and won't tell you "no"
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.
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
It was the 24w09a changes.
I am not saying it is always 100% innaccurate
I am saying you should not rely on it
All good. But I'll keep asking for help wherever it comes from.
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?
There's a few ways, which to go about depends on how you intend to read that data
I can use math functions in the scoreboard can I not?
You can perform math operations between two scores, correct
i would seriously recommend not using ChatGPT for anything
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
There's not nearly enough information about Minecraft datapacks online for AI to know at all how it works
Well, datapack completed. With crucial assistance from ChatGPT to boot.
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
🎗️ 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
User has left the server, so I'll be closing this thread