#Why the function say hi but don't tag @a with lock_ready ???

1 messages · Page 1 of 1 (latest)

cobalt folio
#

Why the function say hi but don't tag @a with lock_ready ???

wary ginkgo
#

because you wrote @s not @a

cobalt folio
#

Honestly, please help me. I've been struggling with the game for a day now because it's riddled with bugs, and I'm trying to work around its limitations...

#

Yes, I forgot to put @a back, but even then, it was rejected.

#

Ideally, I want the player to ride an armor stand that I spawn, but they only ride it for a single frame—likely because of the small text that appears at the bottom; it disappears immediately, even when I execute the two commands in separate frames...

#

So I try this whole system that's 110 times more complicated, but in the end, it doesn't work it's SOOO frustrating.

#

Basically, the Amor Stand does actually appear here, but the player refuses to mount it.

wary ginkgo
#

btw why are you using macros for this 😭
macros are really bad for performance

cobalt folio
#

Ahhh

wary ginkgo
#

Can you just explain your general goal?

wary ginkgo
cobalt folio
#

I want an armor stand to spawn when I crouch, and for me to be riding it.

cobalt folio
wary ginkgo
cobalt folio
#

I'm going to remove the macros for the armor stands; they were originally intended to prevent players and armor stands from being confused with one another, but I think they're causing more problems than they solve.

#

Crouch detection is set up, and the armor stand spawning works too; it's just the /ride command that refuses to work.

wary ginkgo
#

so only the /ride command doesn't work?

#

hmm

cobalt folio
#

Yes normally

wary ginkgo
#

ah wait

#

You want the player to ride something when they hold shift right?

cobalt folio
#

Yesss

wary ginkgo
#

Erm

#

Do you know what normally happens when you ride something and press shift?

cobalt folio
#

And I just noticed that when I run this function manually, the /ride from the previous function triggers that makes no sense!

#

Yes, I thought of that, but when I held down Shift and spammed /ride, it worked yet the player didn't spam the action of getting out of the ride.

#

Potentially do the ride twice.

#

So, previously, when a player had the "locked" tag, I would spam the /ride command and then assign them a different tag to prevent the command from being used again; however, the command would fail to execute even though the /tag command had been applied after the /ride spam so ultimately, nothing happened. Basically, I’m just constantly battling game bugs.

wary ginkgo
#

Idk what you are doing there, but I would guess you just instantly unmount the armor stand when pressing shift

cobalt folio
#

No, he's staying.

cobalt folio
#

I DID IT AFTER LIKE 10 HOURS I THINK I'M GONNA CRY BAHAHA

wary ginkgo
#

what was the problem tho

cobalt folio
# wary ginkgo what was the problem tho

Well, like you, I'm convinced it was due to the crouch key which is the same one used to both mount and dismount the armor stand. Basically, half the time my player would end up mounting it. So, I simply spammed the mount command after crouching; I checked and found you need to do it at least twice, so I set it to 10 ticks instead of two just to be safe and avoid any potential bugs. I then set it to stop once the player's score reached 10 or higher (since the score increases every tick while mounted), allowing the player to dismount. That was at least my 15th attempt, but I've learned that anything is possible in Minecraft, haha.

#

Here is the result; the carrot_on_a_stick and the armor_stand will eventually be made invisible, but I am not doing that for the moment to avoid bugs or confusion in the event of a bug.

#

Wait, that's not the right video.

flat moth
ornate sleetBOT
cobalt folio
cobalt folio
flat moth
#

so why don't you use it for the armorstand instead of the macro?

cobalt folio
#

Basically, I use a different score for each player, so I save their score in a macro to assign that same score to the armor stand, and then link them.

#

Is it possible to disable player interaction with surrounding blocks without setting block_interaction_range to 0?

flat moth
#

you can spawn an interaction at their head

cobalt folio
#

I done /execute anchored eyes run summon interaction but I can still

#

Actually, I realize that since I mapped the "crouch" key to the block-locking function, it's no longer possible to transform into an interactable block. So, I could do what you suggested, but I'm worried that if the player moves too fast, there will be a delay in the interaction, making it possible to interact with the blocks or else I'd have to change the block locking key, which took me so long to set up... 😭

flat moth
#

you can also set the player's gamemode to adventure

cobalt folio
#

Oh yes, thanks that's the perfect solution. I didn't want to scale it down, because I want to make it possible to place blocks—specifically, I'd like the player to be able to use one or two blocks as their own.

#

Thank you so much.

#

For your help