2

Is it possible to make a datapack for a server that has certain features that only affect certain players? + Giveaway!

Neutrelize's Avatar Neutrelize5/26/21 10:07 pm
5/27/2021 12:25 pm
Neutrelize's Avatar Neutrelize
So, I just want to know if it's possible to create a datapack for a server that is like a super power data pack and certain super powers only affect certain player? For example, if I squat and right click, I shoot a fireball, but if my friend does the same thing, it does not shoot a fireball and instead does something else?
Please answer, there may be a huge giveaway in the future
Posted by Neutrelize's Avatar
Neutrelize
Level 31 : Artisan Procrastinator
48

Create an account or sign in to comment.

3

3
05/27/2021 11:22 am
Level 29 : Expert Engineer
SUPERIONtheKnight
SUPERIONtheKnight's Avatar
It sounds like tags might be what you are after. I just explained this to someone else rather recently actually. You can see my reply here when you scroll down: https://www.planetminecraft.com/forums/minecraft/datapacks/help-with-target-selector-arguments-involving-affecting-everyone-but-oneself-634129/

But yea, basically you can tag people by using the following:
/tag <selector> add TAGNAMEHERE
Then you can target people by searching for the tag.
say @a[tag=TAGNAMEHERE]
Hope this helps!
2
05/27/2021 11:59 am
Level 48 : Master Modder
SuperSilverStone8
SuperSilverStone8's Avatar
Yeah, that is probably what you will need to do that. Then in the data pack, you would add it for players multiple times, using the tags.
2
05/27/2021 12:25 pm
Level 31 : Artisan Procrastinator
Neutrelize
Neutrelize's Avatar
Oh, cool, thats helpful. (I'm being sincere)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome