Started by
GyokuroKunso
on
Topic category: Minecraft mod ideas exchange
Does anyone know how to create a system where an entity follows the player through a GUI? And how to do it without needing the entity taming system. I need this for my mod.
Yes. Very easy. When the entity is spawned, you give the spawned entity an tag that is the uuid of the player. The Player has a global variable that is set to the uuid of the spawned entity Now if the player clicks it gets another tag set to true, like idk, follow=true and in the tick update of the entity you do if follow=true pathfind to xyz of get entity from the uuid of the tag. This may not work with a lot of entity’s, but if it’s only 2 you can make multiple variables
Okay, thanks friend. It's just that I'm still a beginner at this whole Mcreator thing.