Modpack authors are always on the hunt for ways to optimize performance, and that means giving them the right configuration options. A recent bug report revealed I’d made those options impossible to find in Bok’s Banging Butterflies.
Forge
A mod development kit for Minecraft.
Fixing the Landing States
I got a couple of bug reports about butterfly movement recently. Some were stuck floating in the sky, others wouldn’t animate properly when moving. So I took some time this week to clean up the movement and landing code to make it more robust.
Butterflies in Mud Puddles
I recently learned about mud-puddling, a behaviour where butterflies and other insects will gather nutrients from puddles, soil, and decaying organic matter. I immediately thought, “That would make a great feature for Bok’s Banging Butterflies.” So I set out to implement it.
The Automation of Releases
Every time I make a new release of Bok’s Banging Butterflies, I have to manually upload it to multiple sites. While this doesn’t take too long to do, it is tedious and repetitive, especially now I’m updating the mod more frequently.
Better Butterfly Landings
One feature that’s bugged me (pun intended) for a while in Bok’s Banging Butterflies is how butterflies only ever land on the tops of blocks. In real life, butterflies and moths land wherever they please. They’ll land on walls or ceilings, completely ignoring gravity like tiny winged rebels.
Immutable Butterfly Scrolls
The butterfly mod is full of bugs, and not always the good kind. This week another bug was reported about Butterfly Scrolls changing after an update. This was a weird one to solve, and unfortunately the fix will only work for scrolls placed in future versions of the mod.
The Copycat of Butterflies
This week was supposed to be a simple implementation of a new butterfly. However, I ended up going off on a couple of tangents, fixing a few issues with the code here and there. Ultimately though, the Common Mime Butterfly is the latest addition to Bok’s Banging Butterflies.
A Butterfly Spawn Category
One problem that’s been around since the mod’s inception is that butterfly spawns take away from other animal spawns. That means fewer cows, sheep, rabbits, and so on in any Minecraft game with Bok’s Banging Butterflies installed. And as more butterfly species were added, the problem only got worse.
Porting Things to the Past
A while ago someone asked me to port Bok’s Banging Butterflies to 1.18.2. I made an attempt and failed due to the numerous changes in the code between Minecraft versions. This week I decided to take another look at it, determined to actually create a build that would work.
Placing Butterfly Origami
This week I implemented something I thought would be simple. But as it turns out, even the simplest of features can introduce a few interesting problems to solve. So this is the chronicle of how I implemented Butterfly Origami.