
pig spawn
make a mod that spawns a mob at player location with a 50% chance if the player broke a block. Also play a ping sound when that is done
00—FreehytaleServer2026.02.19mod
Pig Spawn - Release Notes
Overview
Pig Spawn adds a fun surprise mechanic to your Hytale server. Every time a player breaks a block, there's a 50% chance a pig will appear at their location. A cheerful ping sound plays whenever a pig spawns, letting you know when luck is on your side.
Features
- Random Pig Spawns: Breaking any block gives you a coin-flip chance of spawning a pig right where you stand
- Sound Notification: A clear ping sound plays whenever a pig appears, so you never miss a spawn
- Server-Side Operation: Works automatically for all players on the server with no client-side installation needed
How to Use
- Join the server with the mod installed
- Break any block in the world
- Listen for the ping sound — if you hear it, a pig has spawned nearby!
- Each block break is an independent 50% chance, so results vary every time
Known Limitations
- Only pigs can spawn; other mob types are not supported
- The spawn chance is fixed at 50% and cannot be adjusted in-game
- Sound only plays to the player who broke the block, not to nearby players
- Works only on server environments; single-player worlds are not supported