Surprising Loot
Lets you define "surprise" entity spawns when players open specific loot chests or minecarts via datapacks.
介绍
Surprising Loot
Surprising Loot can let you create datapacks to define unexpected encounters to adventurers!
When a player first opens a container tied to a specific loot table, there is a configurable chance to spawn entities nearby, making treasure hunts far more thrilling or insteresting.
Supports both vanilla and modded loot chests, and is compatible with Lootr.
An example datapack is included indata/surprisingloot/loot_events/example.json:
{
"loot_table": "minecraft:chests/jungle_temple",
"check_range": 3,
"chance": 1,
"spawn_times": 3,
"entity_pool": [
{
"weight": 2,
"entity_type": "minecraft:zombie",
"nbt": "{CustomName:'\"Gift\"',CustomNameVisible:1b,Health:2.0f,Attributes:[{Name:\"generic.max_health\",Base:50.0}]}"
},
{
"weight": 1,
"glowing": true,
"entity_type": "minecraft:bat"
}
]
}
Datapack Field Explanation:
loot_table— The loot table ID this event applies to.check_range— Search radius for valid spawn positions (in blocks).chance— Chance for each spawn attempt to actually spawn a mob (0.0 ~ 1.0).spawn_times— Number of spawn attempts to make when the event is triggered.entity_pool— List of possible entities to spawn, with weighted selection.weight— Higher values increase the probability of this entry being chosen.entity_type— Entity ID to spawn.nbt(optional) — NBT data string to customize the entity.glowing(optional) — Iftrue, the entity will spawn with the glowing effect.
常见问题
Surprising Loot 支持哪些 Minecraft 版本?
Surprising Loot 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Surprising Loot 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Hakujoucho 的其他作品
查看全部 →Armor Damage Limit
确保单次攻击造成的耐久损失不超过盔甲最大耐久度的一定百分比。
OPack2Reload
防止玩家没有真正更改所选资源包时 Minecraft 重新加载资源包。同时在 PackSelectionScreen 中添加一个“取消”按钮。
Cataclysm: Weapon Skill Config/ Incinerator’s Try Hard
让你可以自定义 L_Ender 's Cataclysm 中焚化者、焚灭者、潮汐之爪等武器的技能伤害、范围、蓄力时间等参数!
Virtual Witch Arrangement
调整 Iron's Spellbooks 的 Eldritch 研究界面,让大量 Eldritch 法术同时出现时更易阅读。
评论
登录后评论和评分