How can you program an enemy to shoot fireballs?

Ba
6

I want to program a kind of boss fight that sometimes fires fireballs in the direction of the player, in 1.15 in Minecraft. How does it work?

Re

Do you really want to create what you want yourself or have the end result?

If you really want to lend a hand, you can't avoid learning to program and doing a lot of practice. There are already enough questions here and material on the Internet - just search, there's no need for another question. The programming language Java is used for the development of Minecraft Mods.

Otherwise, look for a professional who will do it for you. While it is possible that you will find someone to do this for free, this is unlikely, especially in terms of the quality of development or experience of the developer.

Ba

I can program quite well, have tried this for a long time and have not found out, so I would have liked to have everything programmed completely, then I can try to understand it.

Re

Being able to program means not only knowing the few rules of a language, but also being able to understand and apply all sorts of logic and certain paradigms. I.e. A look at the API documentation should be enough to implement something, provided you have knowledge of the relevant topic (be it an opponent logic, procedural world generation or a drone flight).

There are many ways to solve a problem, so a single ready-made approach won't help you much, on the contrary, it will only limit you to it. Ask yourself the following questions and try a new approach: What have you tried so far? What do your approaches look like? What does it depend on? What should the opponent do? Divide everything into individual points and try to approach them in isolation.

gl

You can do it without programming, but that's not so bad. You can make a re-textured skeleton, the arrows of which are invisible and fly briefly through lava. Do you want to know more?

Ba

Oh, the idea is completely good… And it works. Looks really cool.

gl

You're welcome

Can you send me a picture of what it looks like?