Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MrObsidy24

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

1 Neutral

About MrObsidy24

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Weird. Do you know if there is any other way to create fog?
  2. Constants.fogDensity is 0f. EDIT: The picture below is with fogDensity set to 0f.
  3. @SideOnly(Side.CLIENT) @SubscribeEvent public void onFogDensityRender(EntityViewRenderEvent.FogDensity event){ event.setDensity(Constants.fogDensity); event.setCanceled(true); } @SideOnly(Side.CLIENT) @SubscribeEvent public void onFogColorRender(EntityViewRenderEvent.FogColors event){ event.setRed((float) Constants.fogColor.getRed() / 255); event.setGreen((float) Constants.fogColor.getGreen() / 255); event.setBlue((float) Constants.fogColor.getBlue() / 255); } EDIT: Another Edit. So if I increase the fog densi
  4. I'll try that. I edited my post above to show you how the fog looks EDIT: Didn't work, result still the same as above.
  5. The event.setCanceled(); was a typo mistake on this forum (the code does not have this mistake). (it says canceled in the code) Constants.fogColor is a ljwgl color which stores the red/green/blue as ints as values 0-255 I just realized my mistake. I divide the 255 by the value, not the value by 255. And I am in maths AP. Oops. I'll try that. EDIT: just realized that FogColor() is not cancelable. Also, this is what the fog looks like on my screen:
  6. I implemented them like this: @SideOnly(Side.CLIENT) @SubscribeEvent public void onFogDensityRender(EntityViewRenderEvent.FogDensity event){ event.setDensity(Constants.fogDensity); event.setCanceled(true); } @SideOnly(Side.CLIENT) @SubscribeEvent public void onFogColorRender(EntityViewRenderEvent.FogColors event){ event.setRed(255 / Constants.fogColor.getRed()); event.setGreen(255 / Constants.fogColor.getGreen()); event.setBlue(255 / Constants.fogColor.getBlue()); event.setCancaled(true); }
  7. I know that er.setupFog() is private, was that replaced by updateFogColor()?
  8. So I am creating a Mod that acts similar to weather2 by Corosus and the thing I ask for is the following: When underneath a storm, I want the player to experience fog. I have no idea how to to this (I tried the EntityViewRenderEvent.FogDensity / FogColor, this just makes the sky appear black and white). the method EntityRender.setupFog() method is private so I cannot use that. Anybody knows how to setup fog (preferrably with color)?
  9. EntityRenderer#setupFog() is private in 1.11.2
  10. Bump, this would be interesting to know, also for newer versions.
  11. If I do something on the World class, does that automatically update the Client?
  12. Hey! For the mod I am creating I need to get the World (in particular, the overworld) and I stumbled across this thing that FMLServerStartingEvent.getServer().worldServerForDimension(0) gives me a "WorldServer" type object, however I pass this world to another function that only takes "World" type objects. Eclipse doesn't give me a error on that, so I am not sure wether I am doing things correctly. Can anybody explain me the difference or if I'm wrong, what is the proper way to get the overworld? Thanks in Advance, MrObsidy24
  13. Fail. My bad. Sorry, I just recently got into modding (hence the "Joined 22 Minutes ago") I'll try that!
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.