Jump to content

[Solved] [1.12] 3x3 Block Overlay with Tileentity or Blocktexture


Recommended Posts

Posted (edited)

I am trying to create a sort of overlay for Blocks if something ingame happens.

This overlay would cover a 3x1x3 area either just over the blocks through one or multiple tileentities, or through a blocktexture. Now this overlay should also animate (in this case rotate), would it be better to have one tileentity in the center that rotates with the whole texture (is that even possible?) or multiple tileentities in every block, that the overlay is on, which slowly go through a texture change, or through texture animation of the blocks?

 

Also important to note is that players shouldn't be able to interact with it at all.

Would a TESR be capable of this feat?

Sorry if this seems unecessarily complicated those are the only options that come to my mind right now, if there is another way to do this please do tell me so.

Thanks in advance!

Edited by EvilTwin
Solved
Posted

You do not need a TESR for this and likely as not, a TESR can't do this. 

You want to subscribe to one of the rendering events and just render whatever you want. 

  • 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.

Posted (edited)

I'm sorry I don't really know how rendering events work, could you send me something to read about it?
In the meantime I'll also look for that.
Thanks for your help :)

 

Edit: Found something its pretty old but I guess I can still take something away: https://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/vanilla-rendering/
Edit2: Basically what I am looking for is kind of what the Beacon does, as long as the block is there and a requirement is fulfilled, it should render something, that rotates and covers more than one block. I'll read through the Beacon a bit but I have a feeling like this is a vanilla only thing...

Edited by EvilTwin
More Info
Posted

This code is out of date because I haven't updated the mod past 1.7, but sojourn give you an idea:

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/client/HazardsClientEventHandler.java#L138

  • 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.

Posted

Oh hey this looks great, thanks for that! Just one last question, since there is so many events, which one would you choose to make it render at all times like the beam from the beacon? I thought RenderWorldEvent.Post seemed good but I am not so sure.TickEvent.ClientTickEvent also seems like it could work but I guess this would just draw it every time the client ticks which would result in a million renders.

Anyway my actual Question is solved this is just extra, so thanks a lot!

Posted (edited)

I can't seem to find RenderWorldEvent.Post could it be that it has been replaced? I can only find RenderWorldLastEvent.

Edited by EvilTwin

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.