Started by
thedipshiτ
on
Topic category: Help with Minecraft modding (Java Edition)
as it says in the title
is there a way to get and set such data from vanilla mobs using procedures? and if so, how is it done?
Edited by thedipshiτ on Mon, 10/20/2025 - 21:08
you can't without custom code
ok, how can i custom code it?
setting it is more complicated,
ayy
seems awesome
i think this is to get the data, right?
yeah
and the set data?
for example, setting the data based of the hp of the mob
So
The set is the custom code snipet
And the get is the print custom code snipet
Correct?
https://mcreator.net/comment/297644/#comment-297644 here i'm just using print as a way of using the value returned you can use the it with any block you want, like,
entity.saveWithoutId(new CompoundTag()).getInt("SpellTicks")(same thing but it's actually a number not just text)