▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Random Ghast Speed
Random Ghast Speed

Random Ghast Speed

Happy Ghasts now have random speeds, just like horses! Some are slow and steady, others are fast and quick – each one is unique. Enjoy a different flying experience every time!

18
2

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.

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Создатели

Детали

Лицензия:LicenseRef-All-Rights-Reserved
Опубликован:3 недели назад
Обновлён:2 недели назад
Главная