Started by
Rebuilt
on
Topic category: Help with Minecraft modding (Java Edition)
I need to know how to get the coordinates from the "run /[locate biome <mod_id:mod_biome>] at X Y Z"
Edited by Rebuilt on Tue, 09/23/2025 - 14:32
Topic category: Help with Minecraft modding (Java Edition)
I need to know how to get the coordinates from the "run /[locate biome <mod_id:mod_biome>] at X Y Z"
you might try "execute command "/locate biome" at x, y, z and get result"
looks like the output of that command is never the coordinates.
Yeah @thatperson_ I do have that. Honestly I should have been more specific. I did that and I need to extract the coords from the result
What minecraft and mcreator version are you using?
2025.2 on forge 1.20.1
I don't have a 1.20.1 mcreator environment set up so I can't test it but I have added,
to my plugin,
https://files.catbox.moe/5238ed.zip
Quick question, what am I supposed to put in the main part of the block?
here?
the code that will use the coords
so like you can put anything you want there
Oh ok. Its a compass like item that locates biomes so it needs to send the coords to an item data tag as text and then to a text variable in its gui. It needs to set its tag to the coords and then send the coords to the code that renders it in game.
sadly the X-iterator Y-iterator and Z-iterator aren't supported by the current generator :/
yeah that should be possible, but you should probably use 3 separate number nbt tags for x, y and z
like 3 in total not 3 per x y and z
oh right sorry I forgot to port them gimme a min