Cobbleloots:战利品球与更多!
Cobbleloots 是一款针对 Cobblemon 的模组,它添加了基于原版宝可梦电子游戏的方式来获取物品。
重要提示(BETA-2.2.0+): 最近的更新引入了破坏性变更,特别是关于配置部分。您需要更新您的配置文件以确保兼容性。
功能特性
战利品球 ?
这些球体包含对玩家有用的物品。它们在打开时可以给予经验值和物品,并且可以在生存模式中使用作为装饰性实体。当战利品球没有剩余使用次数时,它可以被摧毁并掉落为装饰物品(此行为可配置)。
获取战利品球
- 生成:战利品球可以在世界中找到。其中一些特定于生物群系,而另一些则更为常见。
- 刷新:随着时间的推移,战利品球会在随机玩家周围的世界中刷新。
- 钓鱼:玩家在使用 Cobblemon 精灵球钓竿钓鱼时可以捕获战利品球。不同的钓竿可以捕获不同等级的战利品球,使用 海之眷顾 附魔可以增加发现战利品球的几率。
战利品球分为几个等级,决定了它们的稀有度和战利品质量:普通、** uncommon**、稀有和超稀有。
贵重物品 ?
Cobbleloots 融入了 10 种来自宝可梦的经典贵重物品,它们用作交易商品、奖励或服务器经济代币:
- 金块 和 大金块 (
cobbleloots:nugget, cobbleloots:big_nugget)
- 珍珠、大珍珠 和 珍珠串 (
cobbleloots:pearl, cobbleloots:big_pearl, cobbleloots:pearl_string)
- 星尘、星星碎片 和 彗星碎片 (
cobbleloots:stardust, cobbleloots:star_piece, cobbleloots:comet_shard)
- 稀有骨头 (
cobbleloots:rare_bone)
- 疗伤蘑菇 (
cobbleloots:balm_mushroom)
每个物品都包含自定义的 16x16 像素艺术纹理,具有提及收藏家和高价购买商店的沉浸式工具提示,并且可在 Cobbleloots 创造模式标签页中获得。
地图制作 ?️
查看 文档 以了解如何在自定义地图中使用模组对象和功能。如果您仍有疑问,欢迎在我的 Discord 服务器上提问。
注意: 文档仍在完善中,某些功能可能尚未完全记录。如果您需要特定功能的帮助,请通过我的 Discord 服务器 联系我们。
自定义战利品球 ?
使用新的战利品球数据系统创建具有不同物品和属性的自定义战利品球。您可以定制各个方面,包括:
- 游戏中显示的 名称。
- 打开时使用的 战利品表。
- 战利品球的 纹理。
- 授予玩家的 经验值 数量。
- 玩家重新打开战利品球之前的 玩家专属计时器(冷却时间)。
- 战利品球出现的 来源(例如
generation、spawning),带有详细过滤器:
- 用于稀有度的
weight。
structure 标签。
biome 标签(生物群系键、生物群系标签或生物群系字典)。
dimension 列表。
block 标签(用于生成方块或基础方块)。
fluid 标签。
position(x, y, z 坐标及最小/最大范围)。
light 级别(方块和天空亮度,用于生成)。
time 一天中的时间(带有周期选项)。
date 范围(例如季节性事件)。
weather 条件(晴朗、下雨、雷暴)。
- 单个战利品球类型的 变体,每个变体都有其可选的名称、纹理和战利品表。
其中一些功能正在不断细化,但数据系统设计灵活,便于未来添加新内容。
模组配置 ⚙️
模组配置由 MidnightLib 提供支持,并支持游戏内编辑:
- Fabric:通过 ModMenu 进行编辑。
- NeoForge:通过模组菜单进行编辑。
- 命令:服务器 OP 可以使用
/midnightconfig cobbleloots <key> <value>。
配置文件位于 Minecraft 实例的 config 文件夹中。查阅 配置 文档以获取更多信息。
命令 ?️
Cobbleloots 提供了游戏内命令,以帮助服务器操作员和地图制作者管理战利品球:
/cobbleloots reset loot_ball target [player] [restore_uses]:重置您视线范围内的战利品球(16 格以内),适用于自己或目标玩家。
/cobbleloots reset loot_ball all [player] [restore_uses]:全局重置世界中的所有战利品球(未加载区块会自动持久化)。
/cobbleloots reset loot_ball entity <selector> [player] [restore_uses]:重置匹配实体选择器的特定战利品球。
/cobbleloots reset loot_ball undo [player]:撤销上一次执行的重置操作。
/cobbleloots debug weights [source_type] [pos]:显示您位置处候选战利品球的加权刷新概率表。
/cobbleloots debug check <id> [source_type] [pos]:评估特定战利品球 ID 的每个过滤条件,并报告通过/失败的检查项。
查看详细 命令参考 以获取详细的参数、权限和示例。
常见问题解答
如何让战利品球为所有玩家提供战利品,而不仅仅是第一个打开的玩家?
这是服务器中常见的设置,适用于希望所有玩家都能从同一个球体中收集战利品的情况。
你需要两项配置:
- 无限使用次数 — 将战利品球的
uses NBT 标签设置为 -1。具有 -1 次使用的战利品球是无限的,并且基于每个玩家独立运作:每位玩家获得各自的独立战利品。
- 玩家冷却时间 (可选) — 将
PlayerTimer NBT 标签设置为一个刻数。这是玩家再次从同一球体收集战利品之前的冷却时间。如果省略(或设置为 0),每位玩家只能收集一次。
要将此配置全局应用于所有新生成的战利品球,请更新默认配置值:
- 将
loot_ball_default_uses 设置为 -1 → 所有新生成/生成的战利品球都将拥有无限使用次数。
- 将
loot_ball_default_player_cooldown 设置为所需的冷却刻数(例如 72000 = 1 小时)→ 玩家可以在该时间后重新收集。设置为 0 以允许每位玩家仅收集一次,且无法重复收集。
有关更多详细信息,请参阅 Configuration 文档。
计划中的功能
隐藏物品 ?
受原版宝可梦游戏启发,“隐藏物品”是世界中散布的不可见物体,等待被玩家发现。
伪装物品 ?
请注意,某些物体可能并非表面看起来那样。宝可梦有时会伪装成物体来欺骗你。
Cobbleloots: Loot Balls and More!
Cobbleloots is a mod for Cobblemon that adds different ways to obtain items based on the original Pokémon video games.
IMPORTANT (BETA-2.2.0+): Recent updates have introduced breaking changes, especially with the configuration. You will need to update your configurations to ensure compatibility.
Features
Loot Balls 💎
These balls contain useful items for the player. They can grant XP and items when opened, and can be used as a decorative entity in survival mode. When a loot ball has no remaining uses, it can be destroyed to drop as a decorative item (this behavior is configurable).
Obtaining Loot Balls
- Generation: Loot balls can be found in the world. Some of them are specific to biomes, while others are more common.
- Spawning: Over time, loot balls will spawn in the world around random players.
- Fishing: Players can catch loot balls when fishing with Cobblemon Poké Rods. Different rods can catch different tiers of loot balls, and using the Luck of the Sea enchantment increases the chance of finding a loot ball.
Loot balls are categorized into tiers that determine their rarity and loot quality: Common, Uncommon, Rare, and Ultra Rare.
Valuable Items 💰
Cobbleloots incorporates 10 classic valuable items from Pokémon that serve as trade goods, rewards, or server economy tokens:
- Nugget & Big Nugget (
cobbleloots:nugget, cobbleloots:big_nugget)
- Pearl, Big Pearl & Pearl String (
cobbleloots:pearl, cobbleloots:big_pearl, cobbleloots:pearl_string)
- Stardust, Star Piece & Comet Shard (
cobbleloots:stardust, cobbleloots:star_piece, cobbleloots:comet_shard)
- Rare Bone (
cobbleloots:rare_bone)
- Balm Mushroom (
cobbleloots:balm_mushroom)
Each item includes custom 16x16 pixel-art textures, immersive tooltips referencing collectors and shops who buy them at high prices, and is available in the Cobbleloots creative mode tab.
Mapmaking 🗺️
Check out the documentation to learn how to use the mod objects and features in your custom maps. If you still have questions, feel free to ask on my discord server.
Note: The documentation is a work in progress, and some features may not be fully documented yet. If you need help with a specific feature, please reach out on my Discord server.
Custom Loot Balls 🎁
Create custom loot balls with different items and properties using the new Loot Ball Data system. You can customize various aspects, including:
- The name displayed in-game.
- The loot table used when opened.
- The texture of the loot ball.
- The amount of XP granted to the player.
- Player-specific timers (cooldowns) before a player can reopen the loot ball.
- Sources for how loot balls appear (e.g.,
generation, spawning), with detailed filters:
weight for rarity.
structure tags.
biome tags (biome keys, biome tags, or biome dicts).
dimension lists.
block tags (for spawn block or base block).
fluid tags.
position (x, y, z coordinates with min/max ranges).
light levels (block and sky, for spawning).
time of day (with period options).
date ranges (e.g., seasonal events).
weather conditions (clear, rain, thunder).
- Variants for a single loot ball type, each with its own optional name, texture, and loot table.
Some of these features are continuously being refined, but the data system is designed for flexibility and future additions.
Mod configuration ⚙️
The mod configuration is powered by MidnightLib and supports in-game editing:
- Fabric: Edit via ModMenu.
- NeoForge: Edit via the Mods menu.
- Command: Server OPs can use
/midnightconfig cobbleloots <key> <value>.
The config file is located in the config folder of your Minecraft instance. Check the Configuration docs for more information.
Commands 🛠️
Cobbleloots provides in-game commands to help server operators and mapmakers manage loot balls:
/cobbleloots reset loot_ball target [player] [restore_uses]: Resets the loot ball in your line of sight (within 16 blocks) for yourself or targeted player(s).
/cobbleloots reset loot_ball all [player] [restore_uses]: Globally resets all loot balls in the world (with automatic persistence for unloaded chunks).
/cobbleloots reset loot_ball entity <selector> [player] [restore_uses]: Resets specific loot balls matching an entity selector.
/cobbleloots reset loot_ball undo [player]: Reverts the last reset action performed.
/cobbleloots debug weights [source_type] [pos]: Displays the weighted spawn probability table for candidate loot balls at your position.
/cobbleloots debug check <id> [source_type] [pos]: Evaluates each filter condition for a specific loot ball ID and reports passed/failed checks.
Check out the full Commands Reference for detailed arguments, permissions, and examples.
FAQ
How do I make loot balls give loot to every player, not just the first one?
This is a common setup for servers where you want all players to be able to collect loot from the same ball.
You need two things:
- Infinite uses — Set the
uses NBT tag on the loot ball to -1. A loot ball with -1 uses is infinite and works on a per-player basis: each player gets their own loot independently.
- Player cooldown (optional) — Set the
PlayerTimer NBT tag to a number of ticks. This is the cooldown before a player can collect from the same ball again. If omitted (or set to 0), each player can only ever collect once.
To apply this globally to all new loot balls, update the default configuration values:
- Set
loot_ball_default_uses to -1 → all newly spawned/generated loot balls will have infinite uses.
- Set
loot_ball_default_player_cooldown to the desired cooldown in ticks (e.g., 72000 = 1 hour) → players can reclaim after that time. Set to 0 to allow each player to collect exactly once, with no reclaim.
See the Configuration docs for more details.
Planned Features
Hidden Items 🔍
Inspired by the original Pokémon games, Hidden Items are invisible objects scattered across the world, waiting to be discovered.
Fake Items 🪤
Be aware that some objects may not be what they appear to be. Pokémon will sometimes disguise themselves as objects in order to trick you.
评论 0
登录后参与评分
还没有评论,来抢沙发吧