Topic category: User side tutorials
I'm creating a ticket in the hope that it will help someone! I ask everyone who wants to write their guides on using MCreator! (for example, you have found a way to use your animations without a plugin)
my guide!
defining a custom nbt tag for an entity (not a player).
if you need to determine the presence of an nbt tag for entities in a certain radius (but the use of the global procedure is not suitable for you, for example, you need to determine the tag of all entities in the radius, not 1)
then you can do the following:
entities with a custom tag in minecraft have an nbt containing a value, you can see it with the command /data get entity (your entity), and you will see the following (at the beginning of the log*) {Brain: {memories: {}},HutrByTimestamp:0, And our nbt tag, it will be marked as : ForgeData:{YOU_TAG: VALUE}
and thus, you can use the usual execute command to perform various procedures, but why do this? - you can detect it, well, and give a custom tag through the command!
to do this, create a command execution procedure : /data merge entity YOU_ENTITY {ForgeData:{YOU_NBT_TAG:VALUE}}
and you'll get an nbt tag that MCreator WILL SEE! It freed my hands! but don't abuse the commands! They're loading up the game!