How to make a billboard living entity?

Started by Soptsign555 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a billboard living entity?

I'm making a horror mod for minecraft (NOT A GENERIC ONE, DON'T WORRY), but some of the anomalies I'm adding are 2D living entities and I have no idea how to make billboard entities. anyone got any clue on how to do this?

and please don't say it's not possible, the broken script was made in Mcreator and that had r2 which is a billboard. r2 is exactly the sort of effect I'm after, so if you have any clue on how to replicate it, please tell me.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to create a custom…
Fri, 03/28/2025 - 12:12

You need to create a custom model in blockbench with a single cube with whatever X and Y sizes you want, but with either 0 or 0.1 for the Z size. That should create a 2d model and you can then design whatever texture you want on it.

Alternatively, if you want it to always have its texture facing the player, you can create an invisible texture for the entity itself, then spawn a particle at its location every tick, and create the particle to have whatever image you want for the entity.

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the only problems with them…
Sat, 03/29/2025 - 08:34

the only problems with them is that the first doesn't face the player and the second would lag the game out horribly with a large quantity of entities, plus there'd be issues with the particles lingering too long as it moves. one of the entities is pretty fast, so you'd definitely see visual bugs with it moving faster than the particles.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you set the particles to…
Sat, 03/29/2025 - 12:17

If you set the particles to only last for 1 or 2 ticks, and only spawn 1 at a time, it wouldn't really cause any noticeable lag. You also might be able to spawn it using the client-side procedure block so you can set its movement vectors/velocity to the same vectors of the entity. I know it isn't a perfect solution, but it is the best one I know of.