异常降水
天上开始下猫、钻石、箭矢、监守者、鸡蛋……任何东西都在下!
此数据包为游戏添加了高度可配置的自定义天气循环,会从天空中随机掉落生物、物品和投射物。原版天气系统不受此数据包影响。
存在两种天气循环:降雨循环,会掉落物品、中立生物以及大部分非危险的投射物;雷暴循环,则掉落敌对生物和危险投射物(例如火球)。
配置
要配置此数据包,请运行命令 /scoreboard objectives setdisplay sidebar unusual-precipitation-config。每个记分板条目均可使用命令 /scoreboard players set <entry> unusual-precipitation-config <value> 进行编辑。各条目的含义如下:
rain_interval- 上一个天气循环结束与新一个天气循环开始之间的秒数。rain_duration- 单个天气循环持续的秒数。thundering_chance- 发生雷暴天气循环而非降雨天气循环的概率百分比。取值范围为 0 到 100。include_items- 是否在降雨天气循环中包含物品。值为 0 表示假,1 表示真。include_mobs- 是否在天气循环中包含生物。值为 0 表示假,1 表示真。include_projectiles- 是否在天气循环中包含投射物。值为 0 表示假,1 表示真。chaos_mode- 启用后,将在同一个天气循环内不断随机切换不同的实体进行掉落。值为 0 表示禁用,1 表示启用。
设置自定义天气
你还可以使用以下两个函数之一,使特定实体从天空持续掉落:
/function unusual-precipitation:start-custom-weather {entity:'<id>'}/function unusual-precipitation:start-custom-weather-nbt {entity:'<id>', nbt:'<nbt>'}
第一个函数用于通过替换 <id> 为实体的 ID(例如 shulker_bullet、cave_spider)来掉落生物/投射物。第二个函数用于以自定义 NBT 数据的方式掉落物品/生物/投射物。对于物品,请确保 NBT 数据遵循 此处 的格式。<nbt> 数据不应包含外层 {},且 <nbt> 内部的任何单引号 (`) 必须使用反斜杠 (\`) 进行转义。
若要停止自定义天气,只需运行 /function unusual-precipitation:stop-custom-weather。然后,若要重新启用数据包的天气循环,请运行 /function unusual-precipitation:enable-weather-cycle。
其他注意事项...
- 若要移除此数据包,请运行
/function unusual-precipitation:uninstall,然后删除或禁用该数据包。 - 如果数据包的天气循环卡住或以某种方式停止工作(这在禁用并重新启用数据包时可能发生),请尝试运行
/function unusual-precipitation:enable-weather-cycle以重新启动它。 - 对
rain_duration和rain_interval所做的更改可能需要经过额外的一个天气循环才能生效。 - 从天空掉落的实体在 Y=350 处生成,并在主世界中围绕每位在线玩家随机分布在半径 50 块的范围内。下界和末地维度不包含在天气循环中。
感谢 MC: Ultimate List,它在创建此数据包时提供了极大的帮助。
Unusual Precipitation
It's raining cats, diamonds, arrows, wardens, eggs... It's raining anything and everything!
This datapack adds a highly configurable custom weather cycle to the game that rains random mobs, items and projectiles from the sky. The vanilla weather system is unaffected by this datapack.
There is the raining weather cycle, which rains items, neutral mobs and mostly non-dangerous projectiles. Then there is the thundering weather cycle, which rains hostile mobs and dangerous projectiles (e.g. fireballs).
Configuration
To configure this datapack, run the command /scoreboard objectives setdisplay sidebar unusual-precipitation-config. Each scoreboard entry can be edited using the command /scoreboard players set <entry> unusual-precipitation-config <value>. The meaning of each entry is explained below:
rain_interval- The number of seconds between the end of the previous weather cycle and the start of a new one.rain_duration- The number of seconds a single weather cycle lasts.thundering_chance- The percentage chance that a thundering weather cycle occurs instead of a raining weather cycle. Values range from 0 to 100.include_items- Whether to include items in the raining weather cycle. Value of 0 means false while 1 means true.include_mobs- Whether to include mobs in the weather cycle. Value of 0 means false while 1 means true.include_projectiles- Whether to include projectiles in the weather cycle. Value of 0 means false while 1 means true.chaos_mode- When enabled, this will constantly roll a different entity to rain within the same weather cycle. Value of 0 means disabled while 1 means enabled.
Setting Custom Weather
You can also set a specific entity to be rained from the sky non-stop using these two functions:
/function unusual-precipitation:start-custom-weather {entity:'<id>'}/function unusual-precipitation:start-custom-weather-nbt {entity:'<id>', nbt:'<nbt>'}
The first function is used to rain mobs/projectiles by replacing <id> with the entity's id (e.g. shulker_bullet, cave_spider). The second function is used to rain items/mobs/projectiles with custom NBT data. For items, ensure the NBT data follows this. The <nbt> data should not include the outer {} and any single quotes (`) within the <nbt> itself must be escaped using a backslash (\`).
To stop the custom weather, simply run /function unusual-precipitation:stop-custom-weather. Then, to reenable the datapack's weather cycle, run /function unusual-precipitation:enable-weather-cycle.
Other Things to Note...
- To remove the datapack, run
/function unusual-precipitation:uninstalland then delete/disable the datapack. - If the datapack's weather cycle ever gets stuck or somehow stops working, which can happen when disabling then enabling the datapack, try run
/function unusual-precipitation:enable-weather-cycleto restart it. - Any changes made to
rain_durationandrain_intervalmay take an extra weather cycle to take effect. - The entities that rain from the sky are summoned at Y=350 and randomly distributed in a 50-block radius around each online player in the overworld. The nether and end dimensions are not included in the weather cycle.
Credit to MC: Ultimate List as it helped greatly in creating this datapack.
下载 Unusual Precipitation (Rain)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unusual Precipitation (Rain)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unusual Precipitation (Rain)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Unusual Precipitation (Rain)
下载 Unusual Precipitation (Rain)
下载 Unusual Precipitation (Rain)
下载 Unusual Precipitation (Rain)
- 添加了
/function unusual-precipitation:enable-weather-cycle和/function unusual-precipitation:disable-weather-cycle,用于启用/禁用数据包的天象循环。- 自定义天象仍可独立于该功能启动
/function unusual-precipitation:stop-custom-weather不再自动重新启用数据包的天象循环。- 首次安装时,数据包的天象循环默认处于禁用状态。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
此数据包添加了新的“祝福模式”难度。
数据包
添加了基于官方概念图的蓝蛙和红眼树蛙变体。
数据包
使用原版/生存友好的方法更改青蛙的变种类型。支持原版(寒冷、温带、温暖)以及可选的“More Frogs 2”变种:深红、末影、地狱、毒镖、紫珀、幽匿、灵魂、诡异和木头。
数据包
手持潜影盒时可直接打开,无需将其放置在地面上。只需按住 Shift 并右键点击即可访问你的潜影盒。
数据包
所有我原创内容的合集。
评论 0
登录后参与评分
还没有评论,来抢沙发吧