Random Ghast Speed 图标

Random Ghast Speed

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.21.11
本资源为搬运资源,原资源地址: https://modrinth.com/mod/random-ghast-speed
资源信息

Minecraft 版本: 1.21.9 1.21.10 1.21.11

平台: datapack

标签: transportation

资源介绍

Random Ghast Speed

Give every happy ghast its own unique, permanent flying speed — just like horses!
No more identical ghasts; each one you tame will be either slow, steady, fast, or extremely rare and lightning-quick.

? Features

Randomized speeds – Every new happy ghast gets a randomly assigned flying speed when first ridden.

Horse-like rarity tiers – Speeds are distributed with varying probabilities:

50% – Normal (0.05, vanilla default)

30% – Slow (0.04)

15% – Fast (0.8)

5% – Very Fast (0.1)

Permanent per ghast – Once set, the speed stays with that ghast forever (even after reloading the world).

Lightweight – Runs once per second, minimal performance impact.

Works in multiplayer – Each player experiences their own ghast's speed independently.

⚙️ How It Works

The datapack uses a simple but effective mechanic:

Every second it checks for players riding happy ghasts.

When a new ghast is mounted (one without the ghast_speed_set tag), it generates a random number 1–100.

Based on that number, it assigns one of four speed tiers and sets the flying_speed attribute permanently.

The ghast is tagged to prevent re-rolling.

The speeds are carefully chosen to match the horse feel – from sluggish to thrillingly fast.

? Installation

Download the .zip file.

Place it in your world's datapacks folder:

Singleplayer: .minecraft/saves/world_name/datapacks/

Server: world/datapacks/

Start the world (or run /reload if already in-game).

Optional – If the load message doesn't appear, run /function hello:load once.

That's it! All new happy ghasts from now on will have random speeds.

✅ Compatibility

Minecraft Java Edition 1.21.7 – 1.21.11

Works on both singleplayer and multiplayer servers.

Does not require any mods or resource packs.

Fully compatible with other datapacks (as long as they don't modify the same attributes on happy ghasts).

?️ Customization (For Advanced Users)

You can easily tweak the speed values and rarity percentages by editing the set_random_speed.mcfunction file inside the datapack.

Change Speed Values

Look for lines like:

execute if score @s ghast.rarity matches 1..50 run attribute @s minecraft:flying_speed base set 0.05

Replace 0.05 with any number you like (e.g., 0.3 for even faster ghasts).

Change Rarity Percentages

The numbers after matches define the percentage ranges:

1..50 = 50%

51..80 = 30%

81..95 = 15%

96..100 = 5%

Adjust them to your liking (they must cover 1–100 with no gaps).

After editing, save the file and run /reload in-game.

❓ Troubleshooting

Q: The ghast doesn't move faster after mounting.
A: Dismount and remount – sometimes attribute changes need a remount to take effect.

Q: Can I use this on an existing world with already-tamed ghasts?
A: Yes, but only new ghasts spawned after installation will have random speeds. Existing ghasts keep their original speed.

Q: The speeds feel too slow / too fast.
A: See the Customization section above – you can easily change the numbers.

? Credits
Created by TVcraft01 for the Minecraft community.
Based on the idea of giving happy ghasts the same charming randomness as horses.

? License
This datapack is free to use and modify. If you include it in a modpack or video, a credit is appreciated but not required.

Enjoy your uniquely speedy ghasts! If you have any issues or suggestions, feel free to leave a comment.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
My Badger

价格:0 墨喵币
下载量:0

查看详情
MelvanaSMP's Client Side Modpack

价格:0 墨喵币
下载量:0

查看详情
SyncPlayers

价格:0 墨喵币
下载量:0

查看详情
SRC

价格:0 墨喵币
下载量:0

查看详情