Flourish [Megas & Form Held Items]

Flourish [Megas & Form Held Items]

Mod

Flourish allows you to add custom server-side held items and mega stones for Cobblemon, in the most compatible, flexible, customizable way possible.

Server Game MechanicsUtility

704 downloads
2 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Flourish

Flourish is a server-side (works in modpacks too!) side-mod designed to aid server owners and pack developers alike to be able to very easily add custom held items to Cobblemon, in the most compatible way possible. This was born from an annoyance with having to fix other mega/held item mods on commission, so I decided to write one for free instead of charging like others.

Guide

Setup

First of all, this setup is only required if you're adding new items/mega stones - by default Flourish comes with all megas and form-changing held items up to gen 9. Configure the mod with the config file in the configs folder located at configs/flourish/config.json The first string in the list of items should be the Pokémon Showdown ID of the item you're wanting to create, i.e Gengarite would be gengarite, for things like Charizardite X, it would be charizarditex. The 3 equip_types are ALL, HOTBAR and OFFHAND, which determines where the mega keystone item should be for players to be able to mega evolve pokemon. See an example config here:

{
  "debug": false,
  "equip_type": "ALL",
  "mega_keystone": {
    "item_id": "minecraft:paper",
    "item_name": "<purple>Mega Stone",
    "item_description": [
      "<gray>Item to Mega Evolve Pokemon."
    ],
    "custom_model_data": 1,
    "particle_effect": {
        "particle":"cobblemon:impact_water",
        "anchor": "root"
      }
  },
  "items": {
    "gengarite": {
      "item_id": "minecraft:paper",
      "item_name": "<purple>Gengarite",
      "item_description": [
        "<gray>Held item to Mega Evolve Gengar."
      ],
      "custom_model_data": 1
    },
    "charizarditex": {
      "item_id": "minecraft:paper",
      "item_name": "<light_purple>Charizardite X",
      "item_description": [
        "<gray>Held item to Mega evolve Charizard"
      ],
      "custom_model_data": 13,
      "particle_effect": {
        "particle": "cobblemon:mega_evolution_particles",
        "anchor": "middle"
      },
      "default_aspect_values": [
        "mega-x=false"
      ],
      "aspect_override": "mega-x=true"
    }
  }
}

You will also need to create the mega species feature: In your datapack, create this file structure: data/cobblemon/species_features/mega.json and populate it like so:

{
  "keys": [
    "mega"
  ],
  "type": "flag",
  "isAspect": true,
  "default": false
}

then, you need to assign which species can get this aspect. Create this file structure: data/cobblemon/species_feature_assignments/mega.json and populate it like so:

{
  "pokemon": ["gengar", "charizard"],
  "features": ["mega"]
}

Fill in the pokemon list with the species names of the pokemon you want to be able to mega evolve.

Models

For custom mega models, it is quite involved but relatively simple: Put your models/animations/posers into your resourcepack as per normal, in cobblemon/bedrock/pokemon/<animations/models>/<dex_number>_<species> i.e cobblemon/bedrock/pokemon/models/0302_sableye/sableye_mega.geo.json Then, you want to copy the vanilla cobblemon poser file into your resourcepack and append a mega variation to your list (also a shiny variant of the mega variant), like so: cobblemon/bedrock/pokemon/resolvers/0302_sableye/0_sableye_base.json

{
  "species": "cobblemon:sableye",
  "order": 0,
  "variations": [
    {
      "aspects": [],
      "poser": "cobblemon:sableye",
      "model": "cobblemon:sableye.geo",
      "texture": "cobblemon:textures/pokemon/0302_sableye/sableye.png",
      "layers": []
    },
    {
      "aspects": [
        "shiny"
      ],
      "texture": "cobblemon:textures/pokemon/0302_sableye/sableye_shiny.png"
    },
    {
      "aspects": [
        "mega"
      ],
      "texture": "cobblemon:textures/pokemon/0302_sableye/sableye_mega.png",
      "model": "cobblemon:sableye_mega.geo",
      "poser": "cobblemon:sableye_mega"
    },
    {
      "aspects": [
        "mega",
        "shiny"
      ],
      "texture": "cobblemon:textures/pokemon/0302_sableye/sableye_mega_shiny.png",
        "model": "cobblemon:sableye_mega.geo",
        "poser": "cobblemon:sableye_mega"
    }
  ]
}

This is quite self-explanatory. For the most part, you can just copy the same thing as done for sableye, but just change the dex number and species name as need be - don't forget, you HAVE to copy the vanilla poser, or else other features wont work!

Check the generated configs in ./config/flourish/ for examples on how to set up new configs.


Project members

am-o

Member

Details

Licensed MIT
Published 2 months ago
Updated 2 months ago