Jump to content

Arphahat

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by Arphahat

  1. Oh, good. I was going to say that it overrides the Block class' onBlockAdded function, so it can go anywhere in the class. You should take a look at the Block.java class to see what other functions can be overridden.
  2. Sure, but understanding what is going on is important here. The updateTick for the block gets called when the block is scheduled for update. The onBlockAdded call makes sure it is scheduled for update the first time. Putting it in the updateTick routine makes sure it is called again. You could probably add logic to not do it if a portal was successfully created or if none of the blocks next to the block are of type cloud.
  3. So, I downloaded your code and mucked about with it, and did some searching online and found that scheduling the tick did the trick. Here is the relevant code: I altered the code to generate glass so I could tell if it was working or not, but it should work with your portal as well. Something I don't know is if it checking every tick is a bad idea or not. You might want to update your code to be smarter about rescheduling the tick, like having blocks only schedule a new tick if there is any cloud block next to it, or having the portal frame check be able to work for any block in the frame, instead of just the corner. Anyhow, cool idea and it works instantly this way, not needing a surface under it and being able to hang in mid air.
  4. I'll summarize what the issues seemed to be from the video: [*]Portal does not spawn when the portal frame is ignited [*]Location of the player's exit point is not right next to the portal in the other dimension. [*]Not sure if this is also an issue or not, but another issue is that the portal in the other dimension does not spawn a frame. [*]Another issue is some displeasure regarding the portal blocks not being able to use meta data. Would you say that is a good summary of the issues you are trying to address? Could you give more details on what the different areas of the code are doing and responsible for? For example, point out where the code that is supposed to detect the fire and open the portal.
×
×
  • Create New...

Important Information

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