Jump to content

Socrate

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Socrate

  1. Okay thank you a lot for your help ! So either I create a BlockEntity and set it in a sphere shape using the BER or I use the RenderLevelLastEvent to draw something ? I don't really understand how the RenderLevelLastEvent For you wich option is the best ?
  2. So if I understood correctly, I should create a new BlockEntity like a Foggy green block and set it on the surface of the sphere using RenderLevelLastEvent or BlockEntityRenderer ( to hide the outside of the protecting sphere ) ? And the green foggy block should be translucid but not transparent and make the player able to go trough it like a phantom block ?
  3. Okay thank you that's what I was thinking too, so I need a way to hide the zone where there is the fog (but not visible cause the player is not inside ) from the player outside of when he's outside of the fog ? Could you explain a little bit more precisely how to use the RenderLevelLastEvent or the BlockEntityRender ?
  4. here is my github if you want to check what I did https://github.com/Socrateee/Mist
  5. Hi, i'm trying to create a sort of toxic "mist" in minecraft wich will be cleared by a machine. To create my mist I modified minecraft RenderSystem using the setShaderFogStart and End and setShaderFogColor methods and the EntityViewRenderEvent from forge to update it. The final idea is to make the block create a protective sphere where there is no toxic mist. What I've done from now is to apply the toxic fog effect to the player when he leaves a sphere i defined (center : 10 100 10 in the World, radius = 10 blocks ). Here is how it looks : https://imgur.com/WdAhF3D (inside the sphere) https://imgur.com/PcluWul (outside the sphere) The reason why i'm posting here is because I have a problem that I can't solve : as you can see in the picture 1, when inside the fog clear zone the player can see clearly through the sphere's border wich makes no sens as the outsides of the sphere is supposed to be toxic. What I would like to do is to make the outside of the sphere look the same as when we are outside of it (I hope what I say makes sense, English is not my native language ), how can I achieve that ? Maybe modifing the fog center effect to be centered on the sphere center (10 100 10 ) instead of the player itself ? Is it possible ? Do you think about an another way accomplishing what i descibed ? I really hope what I said made sense and that I made a correct description of what i want to accomplish Have a nice day !
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.