Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/13/17 in all areas

  1. Well, there are a lot of things to consider when you are doing entity AI. As mentioned before, there is a priority to the AI. There is also something called "mutex" which stands for mutually exclusive. This indicates which AI can run at the same time and which cannot. I have an explanation of entity AI in a tutorial here: http://jabelarminecraft.blogspot.com/p/minecraft-forge-1721710-custom-entity-ai.html To debug, you should just use the normal debug strategies -- set breakpoints and use Eclipse debug mode to make sure that your code is executing and further to check the value of key fields during the execution. Alternatively you can add console print statements, but assuming you're using the built-in AI classes that can be a pain because you'll have to copy them and make your own versions in order to add the prints. So I suggest starting with breakpoints. Based on that, confirm that your AI is executing and then it is usually pretty easy to figure out what is wrong after that.
    1 point
  2. It was the sub blocks! BlockWall.getSubBlocks() adds a sub block for the mossy variant, which is why my instance of BlockWall was displaying two items. I've now subclassed BlockWall and overriden the getSubBlocks() method to return a single item like Block does, and no more duplicates. Thanks for your help TGG
    1 point
  3. Some ideas: Do you still get two duplicates if you search for your item on the search tab? What if you set the tab to a vanilla creative tab instead of your custom? Do your blocks have multiple metadata? What does your getSubItems() (or Block.getSubBlocks() ) look like? You could try adding a breakpoint into ItemModelMesher.getItemModel() if (ibakedmodel == null) { ibakedmodel = this.modelManager.getMissingModel(); } - this is where it silently substitutes the missing model if it can't find the one it's looking for. This will tell you what stack it's looking for, and with any luck why it's not finding it. -TGG
    1 point
×
×
  • Create New...

Important Information

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