Rustling Spots 示例数据包
这是 Rustling Spots 中新增的自定义 Spot 定义系统的官方示例数据包。
它展示了如何仅使用数据包(datapack)创建您自己的自定义 rustling spots,无需 Java 代码、资源包、自定义模型、自定义纹理或脚本系统。
功能特性
- 完整可用的示例数据包
- 专为 Minecraft 1.21.1 设计
- 使用官方的 Rustling Spots 数据包格式
- 添加了一个完整的沼泽主题自定义 spot 示例
- 演示了自定义 spot 定义
- 演示了自定义 Pokémon 家族
- 演示了自定义战利品家族
- 支持生物群系和方块标签
- 支持加权粒子选择
- 包含一个可供整合包和服务器复用的结构
此数据包展示的内容
包含的示例添加了一个自定义的沼泽 rustling spot,它可以出现在沼泽风格的环境中,并使用其专属的 Pokémon 池、战利品池、优先级、权重、有效方块、有效生物群系以及粒子设置。
自定义 spots 可以定义:
- spot 出现的位置
- 适用的维度
- 适用的生物群系
- 可生成的方块
- 使用的 Pokémon 家族
- 使用的战利品家族
- 播放的粒子效果
- 生成优先级和选择权重
重要视觉说明
自定义 spots 目前复用默认的草丛 spot 视觉基底。
这意味着自定义 spots 不会添加新的模型、纹理或渲染系统。它们主要的视觉差异来自于数据包中定义的粒子效果。
安装方法
将数据包文件夹放置于以下位置:
world/datapacks/
然后运行:
/reload
您可以使用以下命令测试包含的示例 spot:
/rustlingspots spawn rustlingspots:swamp_custom
数据包结构
custom_swamp_spot_pack/
├─ pack.mcmeta
├─ README.txt
└─ data/
└─ rustlingspots/
└─ rustling_spots/
├─ spot_definitions/
│ └─ swamp.json
├─ pokemon_families/
│ └─ swamp.json
└─ loot_families/
└─ swamp.json
Spot 定义示例
{
"format_version": 1,
"id": "rustlingspots:swamp_custom",
"display_name": "Swamp Spot",
"priority": 10,
"weight": 5,
"dimensions": [
"minecraft:overworld"
],
"biomes": [
"minecraft:swamp",
"minecraft:mangrove_swamp",
"#minecraft:is_forest"
],
"blocks": [
"minecraft:mud",
"minecraft:grass_block",
"#minecraft:dirt"
],
"pokemon_family": "rustlingspots:swamp",
"loot_family": "rustlingspots:swamp",
"particles": [
{
"type": "rustlingspots:grass_burst",
"weight": 7
},
{
"type": "minecraft:happy_villager",
"weight": 3
}
]
}
优先级与权重
当模组尝试生成 rustling spot 时,它会检查当前地点所有有效的内置和数据包提供的 spots。
系统将执行以下操作:
- 仅保留具有最高优先级的匹配 spots
- 使用权重选择一个最终的 spot
内置的 Rustling Spots 使用优先级 0和权重 1。如果您希望自定义 spot 在其区域内自然覆盖默认行为,请使用高于 0 的优先级。
支持的粒子效果
自定义 spots 可以使用简单的原版粒子效果和现有的 Rustling Spots 粒子类型。
示例:
"particles": [
{ "type": "rustlingspots:grass_burst", "weight": 7 },
{ "type": "minecraft:happy_villager", "weight": 3 }
]
仅支持 type 和 weight。不支持自定义速度、偏移量、颜色、粒子数量、纹理或模型。
有用指令
/reload
/rustlingspots reload
/rustlingspots spawn rustlingspots:swamp_custom
/rustlingspots spawnshiny rustlingspots:swamp_custom
/rustlingspots scan 64
适用人群
- 整合包制作者
- Cobblemon 服务器管理员
- 数据包制作者
- 自定义世界设计师
- 希望在不编写代码的情况下创建主题化 Rustling Spots 的玩家
要求
- Rustling Spots v3.0+
- Cobblemon 1.7+
- Minecraft 1.21.1
重要提示
- 这是一个示例数据包,而非独立模组。
- 它需要 Rustling Spots 才能正常工作。
- 它不会添加自定义模型或纹理。
- 它旨在作为创建您自己自定义 spot 的干净模板。
总结
Rustling Spots Example Datapack 是一个即插即用的模板,展示了如何仅使用数据包创建自定义 rustling spots。
以其为基础,复制并重命名 ID,调整生物群系、方块、Pokémon、战利品和粒子,即可为您的 Rustling Spots 构建自己的主题扩展。
Rustling Spots Example Datapack
This is the official example datapack for the Custom Spot Definitions system added to Rustling Spots.
It demonstrates how to create your own custom rustling spots using datapacks only, without Java code, resource packs, custom models, custom textures, or scripting systems.
Features
- Complete working example datapack
- Designed for Minecraft 1.21.1
- Uses the official Rustling Spots datapack format
- Adds a complete swamp-themed custom spot example
- Demonstrates custom spot definitions
- Demonstrates custom Pokémon families
- Demonstrates custom loot families
- Supports biome and block tags
- Supports weighted particle selection
- Includes a reusable structure for modpacks and servers
What This Datapack Shows
The included example adds a custom swamp rustling spot that can appear in swamp-style environments and uses its own Pokémon pool, loot pool, priority, weight, valid blocks, valid biomes, and particle setup.
Custom spots can define:
- where the spot can appear
- which dimensions it can use
- which biomes it can use
- which blocks it can spawn on
- which Pokémon family it uses
- which loot family it uses
- which particles it plays
- its spawn priority and selection weight
Important Visual Note
Custom spots currently reuse the default grass spot visual base.
This means custom spots do not add new models, textures, or rendering systems. Their main visual difference comes from the particles defined in the datapack.
Installation
Place the datapack folder inside:
world/datapacks/
Then run:
/reload
You can test the included example spot with:
/rustlingspots spawn rustlingspots:swamp_custom
Datapack Structure
custom_swamp_spot_pack/
├─ pack.mcmeta
├─ README.txt
└─ data/
└─ rustlingspots/
└─ rustling_spots/
├─ spot_definitions/
│ └─ swamp.json
├─ pokemon_families/
│ └─ swamp.json
└─ loot_families/
└─ swamp.json
Example Spot Definition
{
"format_version": 1,
"id": "rustlingspots:swamp_custom",
"display_name": "Swamp Spot",
"priority": 10,
"weight": 5,
"dimensions": [
"minecraft:overworld"
],
"biomes": [
"minecraft:swamp",
"minecraft:mangrove_swamp",
"#minecraft:is_forest"
],
"blocks": [
"minecraft:mud",
"minecraft:grass_block",
"#minecraft:dirt"
],
"pokemon_family": "rustlingspots:swamp",
"loot_family": "rustlingspots:swamp",
"particles": [
{
"type": "rustlingspots:grass_burst",
"weight": 7
},
{
"type": "minecraft:happy_villager",
"weight": 3
}
]
}
Priority and Weight
When the mod tries to spawn a rustling spot, it checks all valid built-in and datapack spots for the current location.
The system then:
- keeps only the matching spots with the highest priority
- selects one final spot using weight
Built-in Rustling Spots use priority 0 and weight 1. If you want your custom spot to naturally override the default behavior in its area, use a priority above 0.
Supported Particles
Custom spots can use simple vanilla particles and existing Rustling Spots particle types.
Example:
"particles": [
{ "type": "rustlingspots:grass_burst", "weight": 7 },
{ "type": "minecraft:happy_villager", "weight": 3 }
]
Only type and weight are supported. There is no support for custom speed, offset, color, particle count, textures, or models.
Useful Commands
/reload
/rustlingspots reload
/rustlingspots spawn rustlingspots:swamp_custom
/rustlingspots spawnshiny rustlingspots:swamp_custom
/rustlingspots scan 64
Who Is This For?
- Modpack creators
- Cobblemon servers
- Datapack creators
- Custom world designers
- Players who want to create themed Rustling Spots without coding
Requirements
- Rustling Spots v3.0+
- Cobblemon 1.7+
- Minecraft 1.21.1
Important Notes
- This is an example datapack, not a standalone mod.
- It requires Rustling Spots to work.
- It does not add custom models or textures.
- It is meant as a clean template for creating your own custom spots.
Summary
Rustling Spots Example Datapack is a ready-to-use template showing how to create custom rustling spots with datapacks only.
Use it as a base, duplicate it, rename the IDs, adjust the biomes, blocks, Pokémon, loot, and particles, then build your own themed spot addons for Rustling Spots.
评论 0
登录后参与评分
还没有评论,来抢沙发吧