Minecraft Mods

[1.10][1.11]FindTheMobs - an entity radar!

  • 8,986 views, 4 today
  • 0 downloads, 0 today
  • 8
  • 6
  • 11
Ktos94852's Avatar Ktos94852
Level 63 : High Grandmaster Hero
143
Hi!

I'm here to present you my new mod called FindTheMobs. The idea is simple - to detect mobs (or players, of course) around you and show them on a radar. I sometimes need a simple tool like this and couldn't find any available for new versions of the game, so I made one myself.


The mod works fine with all mobs - whether they come with vanilla minecraft or not (that means mobs from other mods are detected as well).

Mod reads mobs the first time you launch the game and join any world and adds all of them to the list, where you can select specific mobs to be detected.

Radar is also customizable - you can change it's position, size, zoom, scale of icons and indicators, color, and the height difference it should notify about (when a mob's Y coord is different from yours by selected amount (default 6), an indicator will appear on the radar next to mob's icon showing whether it's above, or below you).


You can enter radar's settings by pressing R button (you can change this in settings, of course).


Mod works both in single and multiplayer mode.

Also, remember that this mod was partially a training for myself so I am not going to develop it anymore until i need to



Yes, I know that some mob icons (especially modded ones) are buggy.
Progress100% complete
Game VersionMinecraft 1.11
Tags

Create an account or sign in to comment.

1
09/02/2017 10:55 am
Level 1 : New Network
Volunstein
Volunstein's Avatar
Hey could you add a feature to the entity to configure them in the map with their nbt tags, like custom named armor stand ,equiped mob...
1
02/14/2017 11:28 pm
Level 13 : Journeyman Architect
Tonybo
Tonybo's Avatar
Nice. It's basically the radar feature out of most minimaps turned into a seperate mod. It's helpful for some things, otherwise I personally would use VoxelMap. But it is good, so credit!
1
01/29/2017 5:33 pm
Level 99 : Overlord Programmer
MamiyaOtaru
MamiyaOtaru's Avatar
Out of curiosity, how do you display new mobs from mods? Like what do their icons look like? That's something that's vexed me for a while
1
01/29/2017 5:40 pm
Level 63 : High Grandmaster Hero
Ktos94852
Ktos94852's Avatar
Right now the icons are drawn based on first box (head) of each entity's model. Mod gets it's size, offset, draws it. This method works for mobs with simple models, but when the model gets complicated - rendered icon looks like a bunch of random pixels. I think the best way is to hook into (private) fields of entity's specific ModelRenderer so that the radar would always use the right texture offset. Going to try that as soon as I get time for that.
1
01/29/2017 6:49 pm
Level 99 : Overlord Programmer
MamiyaOtaru
MamiyaOtaru's Avatar
hah that's actually a good idea. I currently look for boxes named head, nose, ear, mouth, etc etc etc. Didn't occur to me that the head was very likely to be the first.
1
01/29/2017 7:18 pm
Level 99 : Overlord Programmer
MamiyaOtaru
MamiyaOtaru's Avatar
do note that it's not guaranteed to be true though. For example among vanilla mobs, Ocelot (7th), rabbit (8th). But I think in general you've hit upon a pretty safe assumption
1
01/30/2017 1:10 am
Level 63 : High Grandmaster Hero
Ktos94852
Ktos94852's Avatar
I thought of searching for boxes with specific names (like head), but are you sure every box actually HAS a name? I am pretty sure Minecraft skips the ModelRenderer's constructor containing the boxName field and replaces it with null. That's why I went for using the first available box.
1
01/30/2017 2:13 pm
Level 99 : Overlord Programmer
MamiyaOtaru
MamiyaOtaru's Avatar
hah it's actually worse than that. I don't look for ModelRenderers whose boxName variable is set to "head" (it's more than likely null, as you point out). I look in ModelBase for ModelRenderers whose field name (in ModelBase) is head.

In ModelChicken for instance, there's a ModelRenderer named head:
public ModelRenderer head;

That of course wouldn't work once its obfuscated but it does OKish for non-vanilla mobs.

ie I'm getting instances of java.lang.reflect.Field of type ModelRenderer.class from the ModelBase.class, and checking field.getName(). It's honestly pretty gross
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome