Minecraft / Mods

Giant's Simple Arrow Fix

  • 3
  • 1
  • comment5
  • playlist_add
  • share
  • more_horiz
avatar GiantNuker
Level 31 : Artisan Modder
21
Simply makes arrows show up in any mob.
This should affect all modded mobs as long as the're renderer extends RenderLiving.
The way it works is in postInit, it adds the arrow layer to every mob.

For any modder who wants to add layers to non-players without replacing the render, here is the code.
for (Render<? extends Entity> ent : Minecraft.getMinecraft().getRenderManager().entityRenderMap.values()) {
if (ent instanceof RenderLivingBase) {
((RenderLivingBase) ent).addLayer(new LayerArrow((RenderLivingBase<?>) ent));
}
}
Progress100% complete
Game VersionMinecraft 1.12.2
Tags

5 replies

1
11/07/2017 12:30 pm
Level 59 : Grandmaster Modder
Tschipp
Love that you're trying to mine coins from people downloading your mod.
1
11/16/2017 11:17 pm
Level 31 : Artisan Modder
GiantNuker
What does "mine coins" mean?
1
11/18/2017 5:43 am
Level 59 : Grandmaster Modder
Tschipp
Bitcoin mining.
1
11/24/2017 2:31 pm
Level 31 : Artisan Modder
GiantNuker
Um. No. What gave you that idea?
1
11/24/2017 5:12 pm
Level 59 : Grandmaster Modder
Tschipp
My antivirus scanner that linked me right back to your page

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome