Giter Club home page Giter Club logo

butterflies's Introduction

Butterflies

This mod adds butterflies with a full life cycle to the world of Minecraft. It features 16 butterfly species, mostly based on real-life butterflies but a couple of them are purely fantasy butterflies.

Features

Butterflies

There are 16 species of butterfly in total. Each butterfly species has its own size, speed, rarity and lifespan. Some will be larger, some will move faster, some will live longer than others.

Butterflies can be caught or released using a butterfly net. Once caught, they can be bottled and placed in the world as decorative objects.

If you want to breed the butterflies in this mod, then be sure to keep your cats away from them!

Eggs

Butterflies will lay eggs in leaves if they get close to them. The eggs will eventually hatch into caterpillars. If a player breaks the leaves, the eggs will drop. Players can then replant these eggs on other leaves.

Caterpillars

After living on the leaves for a short time, a caterpillar will eventually build a chrysalis. If the caterpillars end up on any other block, they will instead starve to death.

Players can pick up caterpillars and move them to other leaf blocks if they wish.

Chrysalises

Built by caterpillars, these will eventually hatch into new butterflies within the world. These cannot be moved by players and will be destroyed if they attempt to do so.

Scrolls and Books

Butterflies can also be pinned to a piece of paper to create a scroll where you can look at the butterfly in detail. Unfortunately this kills the butterfly. These scrolls can also be placed around your world as decoration.

Scrolls can also be placed in a book, allowing the player to collect more detailed information on each butterfly species.

Jars

Butterflies and caterpillars can be placed into jars. These are decorative items that can be placed in the world. Butterflies and caterpillars placed this way will not die, lay eggs or create chrysalises.

If you want to get the butterfly or caterpillar back, they can be released by using the bottle while not highlighting a block.

Server Config

There are now server config options to help manage butterfly growth. You can find them in your world folder, under /serverconfig/butterflies-server.toml.

The available options are:

double_egg_chance: Defines the chance a butterfly has double the eggs (default: 0.0625).

egg_limit: Defines how many eggs each butterfly can lay (default: 1).

max_density: Defines how many butterflies can be in a 32x32x32 region before breeding is disabled. If set to zero, this is ignored (default: 16).

enable_lifespan: If set to TRUE butterflies will die naturally (default: true).

Latest Release

Development Diary

Older Versions

Source Code

Other Locations

butterflies's People

Contributors

doc-bok avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

unilock

butterflies's Issues

Peacemaker Lair

A generated structure that houses a Peacemaker Cow as well as some Peacemaker Butterflies.

Butterflies Not Appearing When Spawned

As said in the title, butterflies aren't showing up when spawned nor are the eggs, chrysalises and caterpillars. Currently playing on 1.20.1 with a personally made modpack. I've turned off my shaders and resource packs and they still aren't showing up.

Butterfly Eggs in Azalea Leaves are a broken texture

Minecraft: 1.20.1
Forge: 47.2.0
Mod Version: 2.0.1

All Butterfly Eggs applied to Azalea Leaves result in a broken/missing texture until they hatch. No other mods or texture packs installed. Also are there any plans to support leaves and biomes for spawning from other mods like Biomes O' Plenty, Chipped, and Nature's Aura?

Steps to reproduce:

  • Choose any Butterfly Egg
  • Apply it to non-flowering Azalea Leaves

2023-12-25_14 14 33

Peacemaker Honey

A type of honey that can be used to distract, feed, and breed Peacemaker Butterflies.

Generate Scroll Screen Names

Currently the textures for the Butterfly Scroll GUI are hardcoded. These could easily be generated instead, reducing the amount of work needed when adding a new butterfly.

Caterpillar Jar

Caterpillars should be placeable in jars. Like butterfly jars, caterpillars will be invulnerable. They also won't change into chrysalises.

Peacemaker Cow

A large bulbous creature that supplies "honey", the main food source of Peacemaker Butterflies.

Caterpillars Not Added to Inventory Properly

It seems that caterpillars are only added to the inventory on the client-side, so the server doesn't know about the items. This means that the items aren't really in the client inventory. They cannot be placed, and will disappear when clicked on.

Make Sure Achievements Work With New Items

The new items that have just been implemented will likely break a lot of achievements. Go through and update any achievements involving butterfly nets, bottled butterflies, and butterfly scrolls.

Helper tooltips for items

Add tool tips for certain items so players know how to use them.

Butterfly Net
"Attack" (left-click) a butterfly to capture it

Butterfly Net (Full)
Right-click to release

Caterpillar/Egg
Right-click on some leaves to place

Bottled Butterfly/Caterpillar
Right-click to release

Silk

Comes from Domestic Silk Caterpillar. When it’s cocoon hatches into a butterfly, it will drop silk. Silk can be used to make string (3 in a horizontal line), and paper (9 silk).

Lepidopterist's Home

There should be a building for the new villager, containing 1 or 2 bottled butterflies or caterpillars.

Make egg items smaller

They're too big and and I don't like it. Make the item drops smaller and make them appear smaller in the hand.

Craftable Empty Butterfly Scrolls

Hi! I wanted to report some quirky behavior. So, you can craft an Empty butterfly scroll using an empty net, paper, and iron nugget. This means that if I have a butterfly in the net, and I hold shift while crafting, it makes one filled butterfly scroll, and 63 empty ones D:

What's extra frustrating is that I can't then use caught butterflies on the empty butterfly scroll, so I essentially just burned through a stack of iron nuggets and paper for a bunch of unusable items.

What would be ideal, imo, would be not to allow the crafting recipe if it doesn't detect the EntityID in the Net. Alternatively, to allow the empty butterfly scroll to be crafted with a Net containing a butterfly.

Diurnality

Diurnal

  • Wakefulness concentrated during the light phase.

Nocturnal

  • Wakefulness concentrated during the dark phase.

Crepuscular

  • Most activity occurring during twilight.

Cathemeral

  • Activity during both the day and the night.

During the least active phase, butterflies should try and land on the nearest leaf block they can, otherwise they will land on any block nearby. They will stay there until frightened, or until their active phase starts.

Invisible butterflies on servers

I need to do more testing but it seems that butterflies end up being invisible on servers but not singleplayer. I'm not sure if this is a mod interaction or not so I'll test it out but if you have any ideas of what might be causing this a fix would be great. Otherwise I'll come back here and tell you what issues/info I find. Figured I should let you know this does seem to be a problem.

Bottled Butterflies makes my server crash?

So, I have recently opened my modded server which included this mod. After someone placed down a Bottled Butterfly and broke it, the server completely crashed and shut down. I know the Bottled Butterfly is the cause since it says it in the latest crash report. Any Ideas if I can fix it on my own? Otherwise, bug report.

Here is the crash down below:

crash-2024-03-18_17.39.47-server.txt

Remove Custom Leaf Code

After adding butterfly egg entities, we should remove the old custom leaf code. We should wait for a future release to do this so that players don't lose any eggs they have already planted with an earlier version of the mod.

Invisible Caterpillars

Caterpillars go in and out of existence for me. I am using a lot of mods that tweak rendering and such so one of those is probably involved. If you need me to diagnose what the conflict is I can do that but if you have an idea of how to fix this otherwise pls do that.

Butterfly Egg Entities

Replace custom leaves with a small egg entity. The entity can only be placed on leaf blocks. In this way, there is visual feedback that eggs have been planted, and the eggs will work with any leaves, including other mods. Butterfly eggs should also naturally spawn in a similar manner to caterpillars and chrysalises.

Suggestion: pollenation and spreading of flowers

an absolute great addition would be for butterflies to spread flowers during their life spawn and have some species prefer specific flowers more than others for faster spread. ive always wanted a cool flower spread function

Caterpillars Need Food

Caterpillars that end up not on leaf blocks should starve to death rather than create chrysalises.

Caterpillar Items

Caterpillars should drop items on "death" so they can be placed elsewhere. They should only be placeable on leaf blocks so that they have food.

Butterfly Landing

Add some behaviour so that butterflies occasionally land on blocks, flowers or animal. If another entity gets close, they should fly away again.

Butterflies can land on the following:

  • Leaf Blocks
  • Flowers
  • Tall Flowers
  • Passive Mobs
  • Players

Moths

Add 16 moths to the game

  • Clothes
  • Luna
  • Domestic Silk
  • Peppered
  • Indianmeal
  • Lymantria Dispar
  • Atlas
  • Carpet
  • Japanese Silk
  • Codling
  • Diamondback

Fix Items and Recipes

At the moment many items depend on NBT tags in order to work properly. This doesn't quite work as there is no reliable hook to add these NBTs when crafting (the code to get it working with shift-clicking is a hack).

After we have data-driven butterflies, we should look into implementing multiple items rather than NBTs, and auto-generate them if we can. This way, the crafting will be a lot more reliable and shouldn't require any hacky code to get it working.

Items that need looking at:

  • Butterfly Net
  • Bottled Butterflies
  • Butterfly Scrolls
  • Butterfly Book

Visual Feedback for Butterfly Mating

Butterflies should release heart particles when they become fertilised, just as other animals do when they are bred together. This can provide visual feedback to a player who is trying to breed butterflies.

Modded Leaf Support?

I'm using regions unexplored and you can't put butterfly eggs in leaves from that mod :(

Crossmod Support

Allow butterflies to spawn in custom biomes. Currently requested:

  • Biomes O' Plenty
  • Chipped
  • Nature's Aura
  • Regions Unexplored,
  • Ars Noveau
  • Ars elemental,
  • Terralith

Remove Old Items

With the items rewritten, we should remove the old items at some point in the future.

Data Drive Butterflies

Butterfly data could be moved to a json file so we can add new butterflies without modifying any code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.