Grow-A-Mon 允许数据包创作者配置玩家破坏方块时 Cobblemon 的生成。这适用于任何类型的方块,包括作物、花朵、草、矿石等。该模组支持带有年龄/阶段属性的方块,同时也兼容没有这些属性的方块。
创建生成配置
文件位置
将您的 JSON 配置文件放置在:
data/growamon/spawn_configs/<file>.json
例如:
data/growamon/spawn_configs/wheat_oddish.json
data/growamon/spawn_configs/sunflower_sunflora.json
data/growamon/spawn_configs/stone_geodude.json
JSON 格式
{
"block": "minecraft:wheat",
"cobblemon": "cobblemon:arbok",
"odds": 0.05,
"required_age": 7,
"min_level": 5,
"max_level": 10,
"shiny_odds": 0.01,
"aspects": {
"snake_pattern": "speed"
},
"ivs": {
"hp": 31,
"attack": [25, 31],
"defense": 31,
"special_attack": [20, 31],
"special_defense": 31,
"speed": [28, 31]
},
"cancel_drops": true,
"tool_required": ["minecraft:diamond_hoe", "minecraft:netherite_hoe"]
}
参数说明
-
block(必填):触发生成的方块 ID
- 格式:
namespace:block_id
- 示例:
minecraft:wheat、minecraft:sunflower、minecraft:stone、somemod:magical_crop
- 适用于任何类型的方块(作物、花朵、矿石、草等)
-
cobblemon(必填):要生成的 Cobblemon 物种
- 格式:
cobblemon:species_name
- 示例:
cobblemon:oddish、cobblemon:bulbasaur、cobblemon:chikorita
-
odds(必填):生成概率(0.0 到 1.0)
0.05 = 5% 概率
0.1 = 10% 概率
1.0 = 100% 概率(必定生成)
-
required_age(可选):所需的特定生长阶段
- 如果省略,任何生长阶段都会触发生成(或没有年龄属性的方块将始终触发)
- 大多数原版作物的年龄为 0-7,其中 7 表示完全成熟
- 甜菜根使用 0-3,其中 3 表示完全成熟
- 系统会自动检测名为 "age"、"stage" 或任何整数类型的属性
- 对于没有年龄/阶段属性的方块(如石头、草等),此参数将被忽略
-
min_level(可选):生成的 Cobblemon 的最小等级(默认值:5)
-
max_level(可选):生成的 Cobblemon 的最大等级(默认值:5)
- 必须大于或等于 min_level
- 示例:
10 表示最高可达 10 级
- 实际等级将在 min 和 max 之间随机选择(包含两端)
-
shiny_odds(可选):生成的 Cobblemon 为闪光的概率(0.0 到 1.0,默认值:0.0)
0.01 = 1% 概率为闪光
0.1 = 10% 概率为闪光
1.0 = 100% 概率(必定为闪光)
-
aspects(可选):应用于生成 Cobblemon 的特性
- 格式选项:
- 字符串数组:
["shiny", "galarian"] 用于简单特性
- 包含对象的数组:
["shiny", {"pattern": "kanto"}] 用于混合简单特性和多选项特性
- 对象:
{"pattern": "kanto", "shiny": true} 用于带有布尔标志的多选项特性
- 多选项特性(具有选项的特性)使用格式
{"aspect_name": "option_value"}
- 示例:
{"pattern": "kanto"} 变为 pattern=kanto
- 示例:
{"bloom": "leaf"} 变为 bloom=leaf(用于自定义模组的特性)
- 对象格式中的布尔特性:
{"shiny": true} 添加该特性,{"shiny": false} 则不添加
- 特性会修改 Cobblemon 的外观或属性,并可能触发形态变化
- 当特性对应于某种形态时(例如 "galarian"、"alola"、"hisuian"),宝可梦将以该形态创建,并拥有其所有关联的属性、类型和技能
- 请参阅 Cobblemon 文档以获取可用特性及其选项
-
ivs(可选):生成的 Cobblemon 个体值(每项属性为 0-31)
- 格式:以属性名称为键的对象
- 可用属性:
hp、attack、defense、special_attack、special_defense、speed
- 值会被限制在 0 到 31 之间
- 如果省略,IVs 将随机生成(默认行为)
- 固定值格式:
"hp": 31 - 始终生成 HP IV 恰好为 31 的个体
- 范围格式:
"hp": [20, 31] - 生成 HP IV 在 20-31 之间(包含两端)随机的个体
- 示例:
{"hp": 31, "attack": [25, 31], "speed": 31} 表示 HP 和 Speed 完美,但 Attack 可变
-
cancel_drops(可选):阻止方块在生成 Cobblemon 时掉落正常战利品(默认值:false)
- 设置为
true 可在生成 Cobblemon 时取消所有方块掉落
- 方块仍会被破坏,但不会掉落物品
- 自动检测并取消连接方块的掉落(例如向日葵的两半)
- 当为
false 时,玩家将获得 Cobblemon 生成以及正常的方块掉落
-
tool_required(可选):限制哪些工具/物品可以触发生成(默认值:任何物品)
- 如果省略,任何物品(包括徒手)都可以触发生成
- 单个物品格式:
"minecraft:diamond_hoe" - 仅钻石锄头触发生成
- 数组格式:
["minecraft:diamond_hoe", "minecraft:netherite_hoe"] - 这些工具中的任何一种均可触发生成
- 使用完整的物品 ID 加上命名空间(例如
"minecraft:diamond_hoe"、"farmersdelight:minced_beef")
- 支持模组物品 - 可以指定游戏中注册的任何物品
- 可用于要求特定工具才能进行稀有生成(例如,仅钻石镐用于稀有矿石生成)
- 玩家在破坏方块时必须主手持有所需的物品
示例
基础:小麦生成 Oddish(5% 概率,仅限完全成熟)
{
"block": "minecraft:wheat",
"cobblemon": "cobblemon:oddish",
"odds": 0.05,
"required_age": 7
}
带有等级范围:胡萝卜会生成卷卷耳(10%概率,等级5-15)
{
"block": "minecraft:carrots",
"cobblemon": "cobblemon:buneary",
"odds": 0.1,
"required_age": 7,
"min_level": 5,
"max_level": 15
}
带有闪光概率:土豆偶尔会生成闪光喇叭花
{
"block": "minecraft:potatoes",
"cobblemon": "cobblemon:bellsprout",
"odds": 0.05,
"required_age": 7,
"shiny_odds": 0.1
}
带有特性(字符串数组):甜菜根会生成伽勒尔版小尾栗鼠
{
"block": "minecraft:beetroots",
"cobblemon": "cobblemon:zigzagoon",
"odds": 0.05,
"required_age": 3,
"aspects": ["galarian"]
}
带有多选特性(对象格式):自定义宝可梦具有特定模式
{
"block": "minecraft:pumpkin",
"cobblemon": "cobblemon:pumpkaboo",
"odds": 0.1,
"aspects": {"pumpkin_size": "super"}
}
带有混合特性:闪光宝可梦且具有自定义开花特性
{
"block": "minecraft:oxeye_daisy",
"cobblemon": "cobblemon:redpickmin",
"odds": 0.05,
"required_age": 7,
"aspects": ["shiny", {"bloom": "leaf"}]
}
带有完美个体值:向日葵会生成个体值完美的向日花怪
{
"block": "minecraft:sunflower",
"cobblemon": "cobblemon:oddish",
"odds": 0.01,
"required_age": 7,
"ivs": {
"hp": 31,
"attack": 31,
"defense": 31,
"special_attack": 31,
"special_defense": 31,
"speed": 31
}
}
带有个体值范围:胡萝卜会生成高个体值的卷卷耳
{
"block": "minecraft:carrots",
"cobblemon": "cobblemon:buneary",
"odds": 0.05,
"required_age": 7,
"ivs": {
"hp": [25, 31],
"attack": [20, 31],
"speed": [25, 31]
}
}
带有取消掉落:土豆(由 Cobblemon 替代掉落物)
{
"block": "minecraft:potatoes",
"cobblemon": "cobblemon:oddish",
"odds": 0.08,
"required_age": 7,
"cancel_drops": true
}
多方块结构:向日葵(自动检测两格高的方块)
{
"block": "minecraft:sunflower",
"cobblemon": "cobblemon:sunflora",
"odds": 0.15,
"cancel_drops": true
}
非作物示例:石头会生成隆隆石
{
"block": "minecraft:stone",
"cobblemon": "cobblemon:geodude",
"odds": 0.02,
"min_level": 10,
"max_level": 20,
"cancel_drops": true
}
高草丛会生成虫属性宝可梦
{
"block": "minecraft:tall_grass",
"cobblemon": "cobblemon:caterpie",
"odds": 0.08,
"min_level": 3,
"max_level": 8
}
带有工具要求(单个):需要钻石镐才能从钻石矿石中生成大朝北鼻
{
"block": "minecraft:diamond_ore",
"cobblemon": "cobblemon:carbink",
"odds": 0.1,
"min_level": 20,
"max_level": 30,
"tool_required": "minecraft:diamond_pickaxe"
}
带有工具要求(多个):任何高级锄头均可用于稀有小麦的生成
{
"block": "minecraft:wheat",
"cobblemon": "cobblemon:shaymin",
"odds": 0.001,
"required_age": 7,
"min_level": 50,
"max_level": 60,
"tool_required": ["minecraft:diamond_hoe", "minecraft:netherite_hoe"]
}
带有模组工具要求:为模组作物提供自定义工具
{
"block": "somemod:magical_crop",
"cobblemon": "cobblemon:celebi",
"odds": 0.05,
"required_age": 5,
"tool_required": "somemod:enchanted_sickle"
}
工作原理
- 当玩家破坏一个方块时,Grow-A-Mon 会检查所有已加载的配置
- 如果方块匹配某个配置:
- 检查方块的年龄/阶段是否匹配(如果指定了
required_age)
- 根据
odds 值决定生成或不生成
- 如果成功,则在方块位置生成指定的 Cobblemon
- 如果
cancel_drops 为 true,则阻止方块掉落战利品
- 生成的 Cobblemon 将以配置的等级、闪光状态、个体值和特性出现在底部方块的位置
如果上述描述有任何不符,请在我的 Discord 中告知我任何问题。
⚠️我无法保证此插件的性能,它可能会导致相当严重的卡顿⚠️
Mole Co.⛏'s 内容

Grow-A-Mon allows datapack creators to configure Cobblemon spawns when players break blocks. This works with any block type including crops, flowers, grass, ores, etc. The mod supports blocks with age/stage properties but also works with blocks that don't have these properties.
Creating Spawn Configurations
File Location
Place your JSON configuration files in:
data/growamon/spawn_configs/<file>.json
For example:
data/growamon/spawn_configs/wheat_oddish.json
data/growamon/spawn_configs/sunflower_sunflora.json
data/growamon/spawn_configs/stone_geodude.json
JSON Format
{
"block": "minecraft:wheat",
"cobblemon": "cobblemon:arbok",
"odds": 0.05,
"required_age": 7,
"min_level": 5,
"max_level": 10,
"shiny_odds": 0.01,
"aspects": {
"snake_pattern": "speed"
},
"ivs": {
"hp": 31,
"attack": [25, 31],
"defense": 31,
"special_attack": [20, 31],
"special_defense": 31,
"speed": [28, 31]
},
"cancel_drops": true,
"tool_required": ["minecraft:diamond_hoe", "minecraft:netherite_hoe"]
}
Parameters
-
block (required): The block ID that triggers the spawn
- Format:
namespace:block_id
- Examples:
minecraft:wheat, minecraft:sunflower, minecraft:stone, somemod:magical_crop
- Works with any block type (crops, flowers, ores, grass, etc.)
-
cobblemon (required): The Cobblemon species to spawn
- Format:
cobblemon:species_name
- Examples:
cobblemon:oddish, cobblemon:bulbasaur, cobblemon:chikorita
-
odds (required): The chance of spawning (0.0 to 1.0)
0.05 = 5% chance
0.1 = 10% chance
1.0 = 100% chance (always spawns)
-
required_age (optional): The specific growth stage required
- If omitted, any growth stage will trigger the spawn (or blocks without age properties will always trigger)
- Most vanilla crops have ages 0-7, with 7 being fully grown
- Beetroots use 0-3, with 3 being fully grown
- The system automatically detects properties named "age", "stage", or any integer property
- For blocks without age/stage properties (stone, grass, etc.), this parameter is ignored
-
min_level (optional): The minimum level for the spawned Cobblemon (default: 5)
- Must be at least 1
- Example:
5 for level 5
-
max_level (optional): The maximum level for the spawned Cobblemon (default: 5)
- Must be greater than or equal to min_level
- Example:
10 for up to level 10
- The actual level will be randomly chosen between min and max (inclusive)
-
shiny_odds (optional): The chance of the spawned Cobblemon being shiny (0.0 to 1.0, default: 0.0)
0.01 = 1% chance to be shiny
0.1 = 10% chance to be shiny
1.0 = 100% chance (always shiny)
-
aspects (optional): Aspects to apply to the spawned Cobblemon
- Format options:
- Array of strings:
["shiny", "galarian"] for simple aspects
- Array with objects:
["shiny", {"pattern": "kanto"}] for mixed simple and multi-choice aspects
- Object:
{"pattern": "kanto", "shiny": true} for multi-choice aspects with boolean flags
- Multi-choice aspects (aspects with options) use the format
{"aspect_name": "option_value"}
- Example:
{"pattern": "kanto"} becomes pattern=kanto
- Example:
{"bloom": "leaf"} becomes bloom=leaf (for custom modded aspects)
- Boolean aspects in object format:
{"shiny": true} adds the aspect, {"shiny": false} omits it
- Aspects modify the appearance or properties of Cobblemon and can trigger form changes
- When an aspect corresponds to a form (e.g., "galarian", "alola", "hisuian"), the Pokemon will be created with that form and all its associated stats/types/moves
- See Cobblemon documentation for available aspects and their options
-
ivs (optional): Individual Values for the spawned Cobblemon's stats (0-31 for each stat)
- Format: Object with stat names as keys
- Available stats:
hp, attack, defense, special_attack, special_defense, speed
- Values are clamped between 0 and 31
- If omitted, IVs are randomly generated (default behavior)
- Fixed value format:
"hp": 31 - Always spawns with exactly 31 HP IV
- Range format:
"hp": [20, 31] - Spawns with random HP IV between 20-31 (inclusive)
- Example:
{"hp": 31, "attack": [25, 31], "speed": 31} for perfect HP and Speed, but variable Attack
-
cancel_drops (optional): Prevent the block from dropping its normal loot when a Cobblemon spawns (default: false)
- Set to
true to cancel all block drops when the Cobblemon spawns
- The block will still be destroyed, but no items will drop
- Automatically detects and cancels drops for connected blocks (e.g., both halves of a sunflower)
- When
false, players get both the Cobblemon spawn and normal block drops
-
tool_required (optional): Restrict which tools/items can trigger the spawn (default: any item)
- If omitted, any item (including bare hands) can trigger the spawn
- Single item format:
"minecraft:diamond_hoe" - Only diamond hoes trigger the spawn
- Array format:
["minecraft:diamond_hoe", "minecraft:netherite_hoe"] - Any of these tools trigger the spawn
- Use full item IDs with namespace (e.g.,
"minecraft:diamond_hoe", "farmersdelight:minced_beef")
- Works with modded items - any item registered in the game can be specified
- Useful for requiring specific tools for rare spawns (e.g., only diamond pickaxe for rare ore spawns)
- The player must be holding the required item in their main hand when breaking the block
Examples
Basic: Wheat spawns Oddish (5% chance, fully grown only)
{
"block": "minecraft:wheat",
"cobblemon": "cobblemon:oddish",
"odds": 0.05,
"required_age": 7
}
With level range: Carrots spawn Buneary (10% chance, levels 5-15)
{
"block": "minecraft:carrots",
"cobblemon": "cobblemon:buneary",
"odds": 0.1,
"required_age": 7,
"min_level": 5,
"max_level": 15
}
With shiny odds: Potatoes spawn shiny Bellsprout occasionally
{
"block": "minecraft:potatoes",
"cobblemon": "cobblemon:bellsprout",
"odds": 0.05,
"required_age": 7,
"shiny_odds": 0.1
}
With aspects (string array): Beetroots spawn Galarian Zigzagoon
{
"block": "minecraft:beetroots",
"cobblemon": "cobblemon:zigzagoon",
"odds": 0.05,
"required_age": 3,
"aspects": ["galarian"]
}
With multi-choice aspects (object format): Custom Pokemon with pattern
{
"block": "minecraft:pumpkin",
"cobblemon": "cobblemon:pumpkaboo",
"odds": 0.1,
"aspects": {"pumpkin_size": "super"}
}
With mixed aspects: Shiny Pokemon with custom bloom aspect
{
"block": "minecraft:oxeye_daisy",
"cobblemon": "cobblemon:redpickmin",
"odds": 0.05,
"required_age": 7,
"aspects": ["shiny", {"bloom": "leaf"}]
}
With perfect IVs: Sunflower spawns perfect IV Sunflora
{
"block": "minecraft:sunflower",
"cobblemon": "cobblemon:oddish",
"odds": 0.01,
"required_age": 7,
"ivs": {
"hp": 31,
"attack": 31,
"defense": 31,
"special_attack": 31,
"special_defense": 31,
"speed": 31
}
}
With IV ranges: Carrots spawn high IV Buneary
{
"block": "minecraft:carrots",
"cobblemon": "cobblemon:buneary",
"odds": 0.05,
"required_age": 7,
"ivs": {
"hp": [25, 31],
"attack": [20, 31],
"speed": [25, 31]
}
}
With cancelled drops: Potatoes (Cobblemon instead of drops)
{
"block": "minecraft:potatoes",
"cobblemon": "cobblemon:oddish",
"odds": 0.08,
"required_age": 7,
"cancel_drops": true
}
Multi-block structures: Sunflowers (auto-detects 2-tall blocks)
{
"block": "minecraft:sunflower",
"cobblemon": "cobblemon:sunflora",
"odds": 0.15,
"cancel_drops": true
}
Non-crop example: Stone spawns Geodude
{
"block": "minecraft:stone",
"cobblemon": "cobblemon:geodude",
"odds": 0.02,
"min_level": 10,
"max_level": 20,
"cancel_drops": true
}
Tall grass spawns bug-type Pokemon
{
"block": "minecraft:tall_grass",
"cobblemon": "cobblemon:caterpie",
"odds": 0.08,
"min_level": 3,
"max_level": 8
}
With tool requirement (single): Diamond pickaxe required for diamond ore spawn
{
"block": "minecraft:diamond_ore",
"cobblemon": "cobblemon:carbink",
"odds": 0.1,
"min_level": 20,
"max_level": 30,
"tool_required": "minecraft:diamond_pickaxe"
}
With tool requirement (multiple): Any high-tier hoe for rare wheat spawn
{
"block": "minecraft:wheat",
"cobblemon": "cobblemon:shaymin",
"odds": 0.001,
"required_age": 7,
"min_level": 50,
"max_level": 60,
"tool_required": ["minecraft:diamond_hoe", "minecraft:netherite_hoe"]
}
With modded tool requirement: Custom tool for modded crop
{
"block": "somemod:magical_crop",
"cobblemon": "cobblemon:celebi",
"odds": 0.05,
"required_age": 5,
"tool_required": "somemod:enchanted_sickle"
}
How It Works
- When a player breaks a block, Grow-A-Mon checks all loaded configurations
- If the block matches a configuration:
- Checks if the block's age/stage matches (if
required_age is specified)
- Spawns or doesn't spawn based on the
odds value
- If successful, spawns the specified Cobblemon at the block's location
- If
cancel_drops is true, prevents blocks from dropping loot
- The spawned Cobblemon will appear at the bottom block position with the configured level, shiny status, IVs, and aspects
If any of these aren't as described please inform me of any issues in my Discord
⚠️I cannot gaurantee the performance of this, it may be pretty laggy⚠️
Mole Co.⛏'s Content

评论 0
登录后参与评分
还没有评论,来抢沙发吧