
Mob 文本气泡
为任何生物添加高度可自定义的文本气泡。
生物对话框(Mob Text Bubbles)
本模组会在生物上方随机显示对话气泡。气泡的内容以及显示气泡的生物都可以通过简单的数据包进行修改。
该模组还会在不同情境下显示对话气泡,例如下雨时、处于危险中时会显示自定义气泡等(此选项可关闭)。模组还有许多其他可自定义的元素,例如气泡的缩放、文本宽度、显示时间、淡入淡出时间等。模组还拥有不同颜色的气泡(被动生物为白色、村民为绿色、敌对生物为红色),气泡颜色可以通过简单的资源包轻松更改。
数据包教程
僵尸气泡示例:
{
"entries": [
{
"weight": 10,
"entity": "minecraft:zombie",
"text": "Hungry."
},
{
"weight": 10,
"entity": "minecraft:zombie",
"text": "Need brains."
},
{
"weight": 10,
"entity": "minecraft:zombie",
"text": "Cold..."
},
{
"weight": 10,
"entity": "minecraft:zombie",
"text": "Where am I?"
},
{
"weight": 2,
"entity": "minecraft:zombie",
"rare": true,
"text": "I used to be an adventurer."
},
{
"weight": 10,
"entity": "minecraft:zombie_villager",
"text": "Hungry."
},
{
"weight": 10,
"entity": "minecraft:husk",
"text": "So thirsty..."
},
{
"weight": 10,
"entity": "minecraft:drowned",
"text": "Join us."
}
]
}
自定义气泡示例:
{
"entries": [
{ "entity": "examplemod:example_entity_id", "text": "Does anyone else feel that way?" },
{ "entity": "examplemod:example_entity_id", "text": "Don't look at me like that." },
{ "entity": "examplemod:example_entity_id", "text": "Today is a good day to exist." },
{ "entity": "examplemod:example_entity_id", "text": "This is weird, even for me." },
{ "entity": "examplemod:example_entity_id", "text": "Did you hear that?", "conditions": { "time": "night" } },
{ "entity": "examplemod:example_entity_id", "text": "It's raining!", "conditions": { "weather": "rain" } },
{ "entity": "examplemod:example_entity_id", "text": "Hey! that hurts.", "conditions": { "health": "critical" } },
{ "entity": "examplemod:example_entity_id", "text": "Run, run, run!", "conditions": { "nearby": ["hostile"] } },
{ "entity": "examplemod:example_entity_id", "text": "No one really understands me.", "rare": true }
]
}
为不同生物添加自定义气泡时,JSON 的文件名并不重要,正如你在 zombie.json 示例中所见,同一个 JSON 文件中可以包含僵尸村民和溺尸等其他生物。因此,你可以轻松地在单个 JSON 文件中为所有想要显示自定义气泡的生物添加内容。
鸣谢
- 主要创意最初来自 Dynamic Surroundings,作者为 Orecruncher
- 主要代码来自模组 RLBubbles,作者为 EmeryTheModder
- 气泡纹理来自模组 Notable Bubble Text (NBT),作者为 Mrbysco
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。