Jump to content

EvilTwin

Members
  • Posts

    22
  • Joined

  • Last visited

EvilTwin's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. So the Beacon in Minecraft has a Static Blockmodel (the Beacon) and a dynamic model (the beam), the beam only activates when isComplete equals true, but how does it do this, I've been trying to reproduce this for a while now, and I don't see how I should be able to render the beam, after I rendered the "beacon" itself, I have tried to reproduce everything in the Block, the TileEntity and the TileEntityRenderer classes, to an extent that it should work. But I can't seem to find the actual event that calls for the rendering of the beam, looking in the ContainerBeacon and GuiBeacon classes didn't help either. My problem that I have is that I can't find the line that tells the TileEntityRenderer to actually render the beam. I have two instances in which I can have my own TileEntity update it's model/render the beam, but I don't know how to implement it I mean I can't just add in render(TileEntityModEntity te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) and thats it I have to update the TileEntity somehow right? When is this render called by the Beacon, when it should render the Beam?
  2. Alright then this answers all my questions, cheers and thanks a bunch
  3. I can't seem to find RenderWorldEvent.Post could it be that it has been replaced? I can only find RenderWorldLastEvent.
  4. 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!
  5. 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...
  6. 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!
  7. When I open my chest (36 slots) ingame it first creates a container with 27 slots, and then overrides the first container with a second one with 36 slots. Nowhere in my code did I tell the container the number 27 in the first place, so where does this come from is there a method to stop this? This results in a bug, that results in the item that is in the last row of the chest, to also be placed inside of the players inventory. I don't really want code just food for thought Thanks in advance
  8. Ahh thank you all for the hints, will check em out. I think I have better insight now on this topic Edit: What is that boolean simulate doing in insertItem?
  9. Shouldn't I use isItemValidForSlot then from IInventory in .net.minecraft.inventory? Because it says I should use Slot.isItemValid in the gui. Or should I let it check in the gui instead then?
  10. If I want to make a Chest that has 9 Slots for certain items reserved and 18 Slots for other items reserved, how would I go on to tell the Chest which item to fill in which slot, I have read through the Furnace and Chest TileEntity but that doesnt seem to help me with my core problem. Would I even tell the chest in the TE which item to accept for which slot or in the Container? And would I need to define the slots like in the FurnaceTileEntity (like 9 slots for x and 18 for y) or should I just define all 27 slots in one go and just check every item if it can be accepted for every slot? Just a bump into the right direction would help me already Thanks in advance!
  11. It's working now, I've cleared my cache and rebuilt my Workspace and Project, now it works. Thanks to everyone for their heads up though Edit: no not a single error, and they were in the .json format Edit2: before that I also tried other stuff and before testing it in minecraft again, I also copied the Code, deleted the .json files and put it in new files in the exact same spot with another filename, maybe this could be it too, I don't know but it works for me now.
  12. Ok got it thanks a lot if I find a solution I'll post it here!
  13. Where would it be best to make a step in to check if it is the ResourceLocation that is the problem, sorry I don't know where exactly Forge is handling registration of recipes, is it in the same class as the registration of items, blocks etc?
×
×
  • Create New...

Important Information

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