EvilTwin Posted December 21, 2017 Posted December 21, 2017 (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 December 22, 2017 by EvilTwin Solved Quote
Draco18s Posted December 21, 2017 Posted December 21, 2017 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. 1 Quote 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.
EvilTwin Posted December 22, 2017 Author Posted December 22, 2017 (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 December 22, 2017 by EvilTwin More Info Quote
Draco18s Posted December 22, 2017 Posted December 22, 2017 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 1 Quote 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.
EvilTwin Posted December 22, 2017 Author Posted December 22, 2017 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! Quote
EvilTwin Posted December 23, 2017 Author Posted December 23, 2017 (edited) I can't seem to find RenderWorldEvent.Post could it be that it has been replaced? I can only find RenderWorldLastEvent. Edited December 23, 2017 by EvilTwin Quote
EvilTwin Posted December 23, 2017 Author Posted December 23, 2017 Alright then this answers all my questions, cheers and thanks a bunch Quote
Recommended Posts
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.