Jump to content

How to NOT render blocks?


MGlolenstine

Recommended Posts

I'm not sure about another way to intercept the render, but hopefully someone else knows.

 

There are other ways that would be a lot of work, but I think possible. For example, perhaps you could replace the vanilla models with ones that are conditional based on a player capability.

 

EDIT: Actually probably wouldn't work assuming you want to only make specific locations invisible. See more below.

Edited by jabelar
  • Like 1

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

Actually, do you want all blocks of certain type to go invisible, or just certain ones within view or something based on specific positions? Any scheme to mess with the block models would affect all the blocks of that type. 

 

If you want different behavior for a block based on its specific position you only have two options: metadata or tile entity. Both of those imply that you would need a custom block since vanilla blocks don't have metadata for that and adding tile entities to all the vanilla blocks of a certain type would cause performance and storage problems.

 

So you probably gotta find a way to intercept the render.

 

  • Like 1

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

Well... I want to intercept the render... But I don't know how... Can I do it through event and which one to use then? I wanted to use RenderWorldEvent for that, but it doesn't exist anymore.

 

And yea, I want to change all the blocks of the same type

 

Aaaand I can't change blocks, so it has to be a render event.

Edited by MGlolenstine
Link to comment
Share on other sites

Wait

Are you trying to prevent the render of a specific block that you control, or something else?

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

57 minutes ago, Draco18s said:

Wait

Are you trying to prevent the render of a specific block that you control, or something else?

I'm trying to prevent loading of normal vanilla blocks without changing any metadata or tile entitying it...

I want to make it similar to XRay...

I'm making ore radar that makes blocks around you in a radius transparent/non-rendered...

Link to comment
Share on other sites

Ah, there we go.

Almost certainly going to be almost impossible to pull off.

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I don't know.

  • Confused 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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