Share this post

Link to post

Share on other sites

I am using packets yes. I am not sure what could be causing it because I am not too familiar with packets as I am newish to modding. These are all the packet classes, which work, but I am not familiar with how they work so I can't seem to figure out why they are causing this error, if they are.

Share this post

Link to post

Share on other sites

How many Blocklings are you loading, what is their detection/pathfinding range, and is there anything else about them that might cause the behaviour of the new AI to take up a large amount of resources?

Share this post

Link to post

Share on other sites

The indentation issues when pasting arise from using mixed tabs and spaces. You ought to set your editor to enforce one over the other - you will probably want to replace one with the other before pasting, as well, unless your editor allows automatic conversion.

Personally I use spaces - that way I am sure other people will have the intended indentation size when reading my code in their editor.

If you want, I can look over your code once we fix the overloaded-issue and give you some hints as to improvements for your code, both regarding readability and performance? Just a friendly offer

Oh, and if you could update the gist with fixed indentation before I delve into it to try and find the issue you're having, that would be wonderful

Share this post

Link to post

Share on other sites

Thank you so much. I have read though the DRY page and have started to apply it some other classes and it literally has cut the class down by 90%. I am now just removing any errors in the code and testing to make sure it works

Recently Browsing

Posts

Hi there,
I want to use my custom 3D Models I created, but I don't understand how to render and bake custom 3D OBJ Models, or if it is even possible.
Here is what I got so far:
public class BakeHandler {
public BakeHandler() {
OBJLoader.INSTANCE.addDomain(HelicopterMod.MOD_ID);
}
@SubscribeEvent
public void onModelBake(ModelBakeEvent event)
{
try
{
IUnbakedModel model = OBJLoader.INSTANCE.loadModel(new ResourceLocation(HelicopterMod.MOD_ID, "models/entity/helicopter_tris.obj"));
//model.bake(bakery, spriteGetter, sprite, format);
} catch (Exception e)
{
e.printStackTrace();
}
}
}
I simply don't know where to continue now, as I don't find any currently working example or explanation.
Does anyone of you guys know an example I can look at, or a good explanation on how to use OBJ models for entities?
Would appreciate any help

How do you create a multi project work-space in Eclipse?
I want to build a mod that has an optional dependency and a mandatory dependency.
I recently learned basic java code and how to make simple mods with new recipes, tools, blocks, armor, ore gen, that sort of stuff...
Now I want to learn how to use API's and call items from other mods but every time I try to import other mods into my work space I have issues.
How Do I set up a multi project work space?