#How does macros work with datapacks

1 messages · Page 1 of 1 (latest)

naive hull
#

So, i'm trying to create a macro function, but it doesnt work, it appears on vscode as wrong, and i get it maybe the extension is not updated, but it doesnt appear with the /function command in mine too.

mental pumiceBOT
#

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

dusty heath
#

you used {} but you have to use ()

naive hull
#

Ohhhh, tysm 🤡

dusty heath
#

If you want to hear it, I also have one or two things to say about the rest of the command

naive hull
#

Please!

dusty heath
#

one thing I need to know beforehand, what is that command supposed to do exactly?

naive hull
#

Teleport an armor stand to a relative position of another armor stand's vision

#

Like, 10 blocks foward if i input 10 on the macro

#

I don't even know if it is possible, but i'm testing ;-;

#

First time using macros

dusty heath
#

should a player be able to name the armor stands ?

naive hull
#

No

dusty heath
#

then I suggest using tags

#

otherwise a player can easily break it by naming them

naive hull
#

Oh, i know, i use custom names just for visual help, and it is just a test anyway, no one will use it other than me

#

But you're right

dusty heath
#

@p will select the nearest player

#

use at @s

naive hull
#

I've been coding for 6 hours straight now, sorry for the dumb mistakes lol

dusty heath
#

it happens

naive hull
#

I was trying to make a chunk detector, it was so annoying

#

But tysm

dusty heath
#

chunk detector?

naive hull
#

Yup, it is a bit complicated to explain, like, the idea behind it

#

It is like, you have a 3x3 chunk area, each chunk has an armor stand, if the player steps on another chunk the center will tp to the chunk that the player is standing on, and the other armor stands will tp relatively to the center

#

I couldn't do it with "distance=" because there is an area where it cant detect

#

So i was doing it comparing x,z values of the player and armor stands

dusty heath
naive hull
#

Yes! It's just easier with armor stands haha, to see if it is working and they're teleporting

dusty heath
#

just throwing it out there, you can use /particle for visualization too

naive hull
#

Yes, but it is another command line to add, and i'm lazy, anyway i just need to replace summon minecraft:armor_stand with marker

#

But tysm for the help and tips!!!