Main script - https://paste.denizenscript.com/View/123950
Initialize holes/start - https://paste.denizenscript.com/View/123951
So, I'm currently making a discgolf minigame for minecraft, and I've got the basics down and it is surprisingly working quite great.
Now, however, I've ran into an issue. Not an error or something that needs to be debuged, but something I need help with resolving because I'm not sure what's the best way to tackle it.
and before you start, yes I am using raw locations for the initialize script, I will change that later when I feel more comfortable making notes, but right now I'm sticking with it, because it works and I'm perfectly content with it.
So, the issue at hand:
My "test" map has three holes. when you hit an arrow on hole 1 basket (which right now is a barrier) you get teleported to hole 2 starting position and need to hit the hole 2 basket. However, that's where the issue comes in. because I have no way to check IF the user is hitting hole 2 basket. Right now, if a player is on Hole 2, they can just hit the hole 1 basket and get teleported to hole 3 and continue. I do not want that. How can I make a sort of "check" for the barrier blocks that I've placed, that they can only move the player forward a hole/continue with the script, IF they are on the correct hole to begin with when they are shooting at the basket for that hole?
Thanks
Content of Denizen Script Paste #123950: discgolf... pasted 2024/06/20 09:26:34 UTC-07:00, Paste length: 3880 characters across 75 lines, Content: # Assign the command to give the player a bow and a named arrowdiscgolf:
Content of Denizen Script Paste #123951: initialize holes... pasted 2024/06/20 09:27:23 UTC-07:00, Paste length: 373 characters across 9 lines, Content: # Initialize hole locationsinitialize_hole_locations: