#Datapack doesn't show up in /function

1 messages · Page 1 of 1 (latest)

bronze patrol
#

Hello everyone, my datapack isn't showing in /function. I don't know what I did wrong, but almost everytime I make datapack, it doesn't show up in /function. Does anyone know why? Thanks

Folder structure: duels_kits/data/duelskits/function/mace_kit.mcfunction

tiny ridge
#

What Minecraft version?

#

The function isn't validating because you have a syntax error. Nowhere in data packs is %player_name% valid syntax

bronze patrol
tiny ridge
#

We're a data pack server, we can't help you with issues related to plugins

#

Vanilla Minecraft won't validate that function file. If it's supposed to validate with the plugin you have, you'll need to take that up with the plugin developer

#

Certainly I don't see any real reason you'd need it in the two places you're using it here, @s works just fine to select the player the function is being run by, or just @p like you're using in every other command of the function (even though depending on how it's run those should also just be @s)

brittle shore
#

That's not an underscore

bronze patrol
#

I'll try ":"

brittle shore
#

I don't know placeholder api, that's from the wiki

bronze patrol
#

Oh

bronze patrol
#

Is there a way that it executes the function for the player who activated the function?

bronze patrol
bronze patrol
#

/execute as who

#

@s or @p

brittle shore
#

the player you want to execute as?

#

What player do you want to execute as?

bronze patrol
#

I want to execute it as the player who wants to execute it

#

For example:
He does /test and it executes the function for him trough console

brittle shore
bronze patrol
#

Oh

#

How do I do that then

brittle shore
#

why do you want it?

bronze patrol
#

Because I want to give the player a kit which has multiple commands in it

brittle shore
bronze patrol
#

Click a item in CommandPanels plugin, which runs a command either from player or console

brittle shore
#

We can only help you with vanilla data packs, unfortunately.

bronze patrol
#

That's the same thing

brittle shore
#

The plugin gave me that discord server

bronze patrol
#

Oh