Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. Instead of calling fuse-- in onUpdate call setFuse(fuse-1)
  2. No it's completely fine if you leave it with the yellow underline. It just wants you to specify a type argument.
  3. Should be in the TileEntity however the name may be slightly different but there are two other methods but I cant remember the names so you should look in the TileEntity class.
  4. You can, but you dont have to, vanilla has one. And the methods I told you to override are used by them.
  5. That just tells the server that something has changed and it needs to be saved, it may query sending the packet based on if it has been marked dirty or not.
  6. @Azazell 1.8.9 and below are no longer supported on this forum please update to receive support.
  7. No, it's totally saving them. You just aren't updating the client. You need to override getUpdatePacket, handleUpdatePacket, and two other methods I cant think of right now.
  8. Or you could just instantiate the object directly. IE RegistryEvent() Object o = new Object() Event.register(o) Obviously you could add all of the objects into a set via their constructor for the simplicity of registering. Plus ObjectHolder is broken in Java 9 and will probably not be in the 1.13 release of forge.
  9. Yes it will, it's just ridiculous. @monkeybee Just say value == 3
  10. This just sounds horrible to me. I'm not sure if that is correct, I also don't know if I am understanding it. But just in case. From the update primer.
  11. Numerical ids won't ever go away, they are and still will be used for serialization(as far as I know).
  12. Did you push all of your code to github or just your jsons? Cause we also need to see the Block class too.
  13. You need to override isFullCube or isOpaqueCube in your Blocks class.
  14. I see two options 1. Expect it to be true 2. Make a separate mod for this specific interaction that is dependent on your mod and any other mods. Or you can explain in more detail what you are trying to do with this.
  15. You need to have a Capability<?> value in order to call hasCapability. The only way to get the Capability<?> instance is to access a class from the Mod itself, or as posted above the various other ways to get it.
  16. The code will crash if the mod isn't loaded, seeing as how he would be getting the Capability from one of that mods classes, this post was so that he could find a way around that. And he has, but now he needs to know if an Event exists which as far as I know he will have to do something like Loader.isModLoaded and then only do his registration that way.
  17. Do you want to draw something like a hat on the player or do you want to change the way the player looks entirely?
  18. You don't need a TESR for this. Use the RenderPlayerEvent.Post and render your object model there. A TESR stands for TileEntitySpecialRenderer IE for Block Entities/TileEntities not the player.
  19. Modid and the textures path should be two separate parameters.
×
×
  • Create New...

Important Information

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