Here is the
code on GitHub
It's an Easter Egg Hunt.
A defined amount of Easter Eggs start falling where you want, when a player "picks it up" instead of getting the spawn egg, they receive a predefined prize. Players will never get a spawn egg, just he prize you define.
You must configure this. All in the configuration file. There are tons of comments, you shouldn't have a problem figuring it out. You define how many eggs where will be, how quickly they will fall, the area they will fall in and exactly what prizes the players will get.
The only part that needs explaining is the area defined for the game. I use my spawn as the Easter egg drop, it has buildings with grass and flowers which makes a good place. You define the two corners of a rectangle, only the X and Z coords that cover the area you want the eggs to fall. Then you define the Y where you want all the eggs to spawn at, which then fall to ground level. Since there are buildings, etc and the eggs should be on the ground they will only spawn above normal ground materials. Like grass, dirt, plants, fence, etc.
This was written as a throw away plugin for my server without a configuration file, then I was asked by a couple friends for it on their server, so I hacked it a little. Then I decided to make things configurable and post it here so i hacked it some more. It doesn't seem to break and used virtually no resources on your server.
EDIT: the commands and permissions
only commands:
/egghunt start - starts the Easter egg hunt
/egghunt stop - ends a hunt early in case you screw up the config
/egghunt reload - reloads the configuration file (safe to abuse)
permission:
Anyone can participate in the Easter Egg hunt. In order to use the /egghunt commands you need either the permission egghunt.run or you need to be op.
It's an Easter Egg Hunt.
A defined amount of Easter Eggs start falling where you want, when a player "picks it up" instead of getting the spawn egg, they receive a predefined prize. Players will never get a spawn egg, just he prize you define.
You must configure this. All in the configuration file. There are tons of comments, you shouldn't have a problem figuring it out. You define how many eggs where will be, how quickly they will fall, the area they will fall in and exactly what prizes the players will get.
The only part that needs explaining is the area defined for the game. I use my spawn as the Easter egg drop, it has buildings with grass and flowers which makes a good place. You define the two corners of a rectangle, only the X and Z coords that cover the area you want the eggs to fall. Then you define the Y where you want all the eggs to spawn at, which then fall to ground level. Since there are buildings, etc and the eggs should be on the ground they will only spawn above normal ground materials. Like grass, dirt, plants, fence, etc.
This was written as a throw away plugin for my server without a configuration file, then I was asked by a couple friends for it on their server, so I hacked it a little. Then I decided to make things configurable and post it here so i hacked it some more. It doesn't seem to break and used virtually no resources on your server.
EDIT: the commands and permissions
only commands:
/egghunt start - starts the Easter egg hunt
/egghunt stop - ends a hunt early in case you screw up the config
/egghunt reload - reloads the configuration file (safe to abuse)
permission:
Anyone can participate in the Easter Egg hunt. In order to use the /egghunt commands you need either the permission egghunt.run or you need to be op.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
EasterEggHunt is a free Minecraft Java mod. Downloaded 849 times (via Spigot). Download it and open it directly in the game.