This week I spent some time fixing a few bugs I’ve been noticing while testing the mod. Now our butterflies look better, animate better, and spawn better. These things may seem minor in comparison to adding cool new features, but as I’ve said before: details matter.
Minecraft Modding
Tutorials on how to create new things in Minecraft
Moths, Silk, and Startling
This week I add silk to the butterfly mod and finally add my first moth. This moth has its own unique behaviour, something I will start adding to several other butterflies. Along the way I fixed a bug or two, and discovered a couple more that need to be fixed.
Just Like a Moth to a Flame
This week I continued adding new behaviours specifically for moths. Along the way I had to update the movement code (again) and fix a minor bug. But now moths will be drawn to light and use a different landing animation.
A Bugfix and a Day/Night Cycle
Last week I released version 4 of Bok’s Banging Butterflies, introducing flower pollination and improved AI for butterflies. With that done, it’s time to start focusing on the next feature I want to introduce. Moths will be main feature for Bok’s Banging Butterflies v5.0.0.
The Butterfly’s Final Goals
I’m getting close to finishing version 4 of Bok’s Butterflies. I just need to cross some Is and dot some Ts. A couple of new goals and a bugfix or two, then port the mod to all supported versions, and it’s ready for release.
Pollinating Flowers with AI
This week I introduced a new system to the Butterfly mod. Since butterflies like to pollinate flowers in real life, I’ve added a system where they can do the same in Minecraft. A lot of thought went into this system so it doesn’t unbalance the game too much.
Very Intelligent Butterflies
Butterflies aren’t very smart in real life. But they are smarter than the butterflies currently implemented in the Butterfly Mod. So I’ve started implementing new goals for the butterfly’s AI to make them behave just a bit smarter than they have been so far.
Butterflies Float Like a Bee
Butterflies aren’t smart. At least in the Butterfly mod they aren’t. Minecraft has an AI system that I haven’t taken advantage of so far. However, I’m planning on introducing some new behaviour to the butterflies, so it’s time to evolve.
Removing Boiler Plate Code
Currently adding a new butterfly to the Butterfly Mod requires writing too much boiler plate code. This week I looked into simplifying things to the point where we can generate a java file and have the rest of the code automatically register any new butterflies.
Generating Butterfly Advancements
I’m still on a mission to reduce the amount of work needed to add new butterflies to the mod. This week I looked at advancements, with the goal of being able to generate their requirements without having to manually edit each one.