Started by
gracekaras
on
Topic category: Help with Minecraft modding (Java Edition)
I cannot for the life of me find out how to make entities head towards specific kinds of blocks, like if I wanted something to move towards coal ore or something :( Does anyone have any advice?
Something like this for the entity's tick trigger,
you can probably use the 6x6x6 template,
but if you want to do it with one block I made a plugin for the block you see in the first picture, (there might be other plugins which also add this, I haven't looked)
https://files.catbox.moe/lhmfvf.zip
and finally I don't know how performant this will be but it looks fine with a couple of entities..
Wow this is amazing thanks so much! I'm really excited to use this. Can I ask what the first if statement is for? I'm curious if I should be using that.
You might not need it, I just added it because none of the code is really necessary to have running on the client. So really just to cut down on potential bugs.
My plugin adds the "return;" block but you can also just use the custom code snippet with
return;
in it.Yay, thank you for your help :3 Ill try and keep that in mind!