跳到正文

Unusual Precipitation (Rain)

作者:Ninjaking312

This datapack rains random items/mobs/projectiles from the sky!

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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#Entity_data:~:text=health%20reaches%200.-,Item,-%3A%20The%20inventory%20item). The <nbt> data should not include the outer {} and any single quotes (\) within the 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:uninstall and 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-cycle to restart it.
  • Any changes made to rain_duration and rain_interval may 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) 支持哪些 Minecraft 版本?

Unusual Precipitation (Rain) 支持 Minecraft Java 版 1.20.4–26.3,共 20 个版本。下载时注意选择和你游戏版本一致的文件。

Unusual Precipitation (Rain) 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Ninjaking312 的其他作品

查看全部 →