Is there a way to get an entity's type AS STRING?

Started by RigNinja59YT on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to get an entity's type AS STRING?
Sun, 08/04/2024 - 02:31 (edited)

I'm using commands for a mod and I need to get the type of an entity as "source:entity" format, like the game uses with the /summon command.

(I already know about the "is _ (sub)type" block but that doesn't work in my case)

Edited by RigNinja59YT on Sun, 08/04/2024 - 02:31
You can convert anything to…
Mon, 08/05/2024 - 18:14

You can convert anything to string using "string join" procedure block found in text/string category.

Set it to one input and put anything in it and it will be converted to string