Jump to content

BlackHole

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by BlackHole

  1. In the ClientProxy class. Here is the complete code for the Client Proxy class : The proxy method is called in the main mod preInit method like this : proxy.registerRenderers(); For more details on the code, here is the link to the code's GitHub
  2. That's what I first though, but if I put a debug line in the function that executes that line it says it is, which is why I'm stumped by the fact that if I put the line in the constructor it doesn't show up.
  3. So, I'm trying to make a custom explosive block, and the problem is that the primed explosive entity is invisible. It is there, and it explodes, but it's invisible. Here are the relevant parts of the code : The class for the entity Then renderer class associated with it : The registering of the renderer in the ClientProxy : The entity registering in the main file : I've tried to add some debug lines, and it seems that the doRender() method of the renderer is never called, in fact the constructor of the renderer class never seems to be called; if that can help.
  4. Tried with the latest instead of recommend and now it works. Thanks for the help
  5. Thank for the quick answer.By the way seem that I found what was the problem : it seem to be the Steve's cart mod causing the black screen. I removed it but now I face another problem : minecraft crash because I use block ID over 255, but Forge wasn't suppose to have implemented its own version of the 4096 fix (which is why Forge is now incompatible with it), or did i get it wrong again ?
  6. No offense meant but I don't really understand whats wrong with my post :'(. I read carefully the post and can't figure out what I did not do correctly : I included the complete crash log within spoiler tag, I don't think I have been impolite and I hope I don't made too much grammar mistakes. Don't get me wrong I would glad to correct the mistake I made and I apologize for making it but I can't find what is that mistake. Sorry for being such a noob.
  7. I have tried to update minecraft with the latest version of forge (3.3.7.135) but now I'm getting a black screen after the mojang logo. I have tried to start minecraft with just the modded .jar and this one work fine so the bug must be coming from one of the "mods" folder. Here is the log file : I have noticed the error with forestry but removing it do nothing, I end up with this log and still a black screen : Already thank to those who will take the time to answer me
  8. The error is in the blockPortal code : first, the variable mc you use is not initialized with the actual minecraft instance, so it is actually empty, so use instead the ModLoader.getMinecraftInstance() second, you will face a problem : the code will work but the usePortal() teleport you instantly, and when you will arrive in th edimension, you will be teleported back, and so on. To avoid this problem I used this code (this is certainly not the best way to do it but a least it work) : public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity) { if(entity.ridingEntity == null && entity.riddenByEntity == null && entity instanceof EntityPlayerSP) { if(ModLoader.getMinecraftInstance().thePlayer.timeUntilPortal == 0) { if(ModLoader.getMinecraftInstance().thePlayer.dimension != 2) { ModLoader.getMinecraftInstance().thePlayer.timeUntilPortal = 10; ModLoader.getMinecraftInstance().usePortal(2, mod_ghostdimension.TeleporterGhost); }else { ModLoader.getMinecraftInstance().thePlayer.timeUntilPortal = 10; ModLoader.getMinecraftInstance().usePortal(0, mod_ghostdimension.TeleporterGhost); } } else{ ModLoader.getMinecraftInstance().thePlayer.timeUntilPortal = 10; } } }
  9. It is a class that take care of the "safe landing" of the player, and generate the portal for going back
  10. I finally succeed to make my own so maybe I could help. You should try to add as a second parameter to your usePortal() function the Teleporter for your dimension. Also if it keep crashing try to give us more of your code
  11. I need a little more help about the usePortal() function, because in the tutorial I am using the usePortal() is called in a customized setInPortal() function, added in a base class. So how to do it without editing the base class ? And BTW how to make the mod load from a .zip in the mods folder ? (It will avoid opening a topic just for that)
  12. Thanks for the reply ^^
  13. Hello world, I would like to know how to create a new dimension using Forge, because I have found some tutorial on the net but none of them use Forge and because of that they all indicate to edit base class. I have noticed that Forge had a DimensionHandler but I have to admit that I am clueless on how to use it, so I would really appreciate a little explanation about it. I already thanks those who will take the time to help me with my noobs questions
×
×
  • Create New...

Important Information

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