Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public void worldUpdate(RenderWorldLastEvent e) {
for(Object o : Minecraft.getMinecraft().theWorld.loadedEntityList) {
if(o instanceof EntityArrow) {
EntityArrow obj = (EntityArrow) o;
//man all of forge insideofair, isCollided, onground, isAirborne, motion != 0 ... don't work? wtf?!?! why have useless fields?
if ( )//this is where the test goes
float red = 1F;
float green = 1F;
float blue = 1F;
double xPos = obj.posX - Minecraft.getMinecraft().getRenderManager().viewerPosX;
double yPos = obj.posY - Minecraft.getMinecraft().getRenderManager().viewerPosY;
double zPos = obj.posZ - Minecraft.getMinecraft().getRenderManager().viewerPosZ;
render(red, green, blue, xPos, yPos, zPos, obj.width/2, obj.height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.