#How to change player model depending on the players tag
1 messages · Page 1 of 1 (latest)
I would like to know this as well.
tag as in /tag or as in nametag?
as in /tag
Use entity variants and call it from a /event
and make it a requirement to have the tag in the target parameter of said command
I was writing a wiki page about entity variants but I didn't feel like finishing it yet, however you can find helpful information there anyway https://github.com/Kaioga5/bedrock-wiki/blob/wiki/entity_variants
Thank you!
I can't find any entity.client.json file at RP/entity/
I guess I'll make one?
It is there, you don’t need to create one, just move it from the vanilla pack to your pack
Downloadable from: https://github.com/Mojang/bedrock-samples/releases
bedrock.dev archive: https://bedrock.dev/packs
GitHub (RP & BP) : https://github.com/bedrock-dot-dev/packs
Example particles: https://aka.ms/MCParticlesPack
You move it from the vanilla resource pack to your resource pack in the same directory it was in the vanilla pack, which is YourRP/entity
yeah, that's what I meant
I don't really understand how this code is meant to work. Like how does the behavior packs code with component groups, etc change the geometry and texture of the player. Like I don't see any correlation between the BP and RP. Nothing like, "if (variation == 1) { geometry = geomtry.zombie }. I know this isn't how the code is formulated at all, but I'm used to C#, so this syntax is very different to me.
The variant component is set in the BP and can be read in RP basically.
I get what you mean, if you're used to how regular programming languages work this whole system seems weird but I found that the bedrock.dev website is a pretty helpful tool to understand how this system works.
They have a guide on how to build a custom entity here: https://wiki.bedrock.dev/guide/custom-entity.html
This guide explains how the BP side of entities works: https://wiki.bedrock.dev/entities/entity-intro-bp.html
and this one explains the RP side works: https://wiki.bedrock.dev/entities/entity-intro-rp
If you read these guides thoroughly I think it should make sense how the BP and RP correlate with each other. (I really helped me out at least)
This wiki is a knowledge-sharing website for Technical Bedrock, containing documentation, tutorials, and general how-to information.
This wiki is a knowledge-sharing website for Technical Bedrock, containing documentation, tutorials, and general how-to information.