Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. It probably has built in numbers deeper into the code specifically for all EntityMobs.
  2. Try a smaller value for the second parameter like 2. IE mimicing the EntityPlayerMP value.
  3. It is one of the coremods that you have. The last part of that message says not to contact forge, here you are contacting forge. Forge didn't make the code that is causing the problem. A coremod injects code into vanilla code to change functionality which can very easily cause problems.
  4. The last part of that message in the quote. By the way I am quoting your crash report there.
  5. Typically I just check the file locations, net.minecraftforge.client.event, net.minecraftforge.event, net.minecraftforge.fml.client.event, net.minecraftforge.fml.common.event, or net.minecraftforge.fml.common.gameevent. Note fml.common.event are the mod life-cycle events.
  6. Change the method Entity#setPositionAndUpdate to setPosition and use World#updateEntityWithOptionalForce wth the boolean parameter being true.
  7. What does the command prompt say when you run this command.
  8. I believe you are thinking of onItemUse instead here Draco. You shouldn't be calling this. Try only having this section.
  9. This is a static initalizer. Don't do this. This is basically having IHasModel. This doesn't exactly say what isn't working, but I believe it is this part. You are attempting to register a new instance of the Item class. Which you have supplied no registry name, unlocalized name, etc etc.
  10. Nevermind it is probably better to do it in RenderWorldLastEvent. But I'm not sure haven't been able to sit down and look at stuff in a while. School just started up and today is my first day off since.
  11. @Andrew Murdza Please reformat your post do that you either use spoilers or the code block the button for which looks like <>
  12. It was made for compatibility, if mod one wants all swords to be used in there machine, then it will check if an Item is an instance of ItemSword.
  13. A String is an Object. So you dont need to convert a String to an Object.
  14. Cache the a list of IBlockStates on startup in either the initialization event or the postInitialization event in your @Mod class. This solves long break times, however it will take a little longer to load the game initially. On the other hand you could cache this when a block is broken so only the first block takes a while. I'd recommend the first one personally.
  15. A good way to do this is to kinda sit on the forums and read anything that sounds interesting or anything at all. Because people that help on here tend to have been modding for many years with forge or have worked on forge itself either with PRs on github or actually work on it like LexManos. Indeed. Bukkit as a API is much simpler to use because you cant do too much with it, also you are only ever interacting with the Server side of things, except for sending packets. There is also the limiting factor of not having access to all the Minecraft classes in it of it self. Most of this is actually in vanilla's code base. Forge has plenty of documentation on it's own stuff, but I will say it is difficult to learn how to do stuff like this without documentation or with out knowing where to look.
  16. I dont think that link works, could you post your code here on the forum using the <> button.
  17. Ok. Which part of what he said did you not understand this part Or this part
  18. You can read about a few things forge related. On the docs here. You will want to look at the "events" section if you dont know what these are or how to use them. RenderTickEvent is pretty self explanatory I think. I know about the BlockRenderDispatcher from experience. You won't find much comments on semi-advanced to advanced topics. You kinda need to look at the code and figure out what it does and what it is used for. Events are pretty straightforward as mentioned above you can read about them at the link. However rendering code is most of the time unique so that isn't really covered in tutorials you can pieces things together from some online resources scattered over the internet. But it will mostly be from experimenting and reading the already existing code.
  19. World#getChunkFromBlockPos And use the players position Multiply the chunk coordinates by sixteen and simply calculate from there(will give you one corner) Use the RenderTickEvent and Minecraft#getBlockRendererDispatcher() to render your block of choice.
  20. What is that, it is appearing as a completely white box for me.
×
×
  • Create New...

Important Information

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