Started by
ShadowPlayer51
on
Topic category: Help with Minecraft modding (Java Edition)
What the title says: is there any way I can use the data from local entity variables to summon an entity? I don't see a codeblock that could work for it anywhere, so would it be possible to do with code?
Is this working ?
https://imgur.com/a/PMmimG6
I'm not talking about a number local variable, I'm taking about an ENTITY local variable (one of the new ones in the 2022.1 release). I see the ability to save an entity to a local variable, but I don't see much use of the variable if you can't summon an entity using that variable.
Yea mcreator should make it so you could put variables in the dropdown menu
This still isn't added, it would be very useful for spawning entities from other mods.
2025 and still nothing
definitely too late, but i was looking for a solution and came up with this and it seems to work just fine!
https://imgur.com/a/KLqNEdZ
saving the entity as whatever variable, then substituting the registry name in a command using the replace
string block using the registry name of the entity variable (get registry name of block)
gqstavo,
this is a really nice solution!