A Minecraft Paper plugin that gives players a random flower when they die and respawn.
- ๐ธ Random Flower Drops: Players receive a random flower in their inventory when they respawn after death
- โ๏ธ Player Toggle: Each player can enable/disable the feature for themselves
- ๐จ Colored Flower Names: Flowers have custom colored display names
- ๐ Rich Item Customization: Support for lore, enchantments, glowing effects, and more
- ๐ Hot Reload: Reload configuration without restarting the server
- ๐ฏ Permission-Based: Control who can use commands and reload configs
- Download the latest
RandomFlowerDeath.jarfrom the Releases page - Place the JAR file in your server's
pluginsfolder - Restart your server
- The plugin will automatically create a configuration file at
plugins/RandomFlowerPlugin/config.yml
- Server Software: Paper 1.21+ (or compatible forks)
- Java Version: Java 21+
- Minecraft Version: 1.21+
| Command | Description | Permission | Usage |
|---|---|---|---|
/randomflowerondeath <true|false> |
Toggle flower drops for yourself | randomflower.toggle |
/randomflowerondeath true |
/randomflowerondeath reload |
Reload the plugin configuration | randomflower.reload |
/randomflowerondeath reload |
| Permission | Description | Default |
|---|---|---|
randomflower.toggle |
Allows players to toggle the feature | true (all players) |
randomflower.reload |
Allows reloading the configuration | op (operators only) |
The plugin creates a configuration file at plugins/RandomFlowerPlugin/config.yml:
flowers:
- material: "DANDELION"
name: "&eSunny Dandelion"
- material: "POPPY"
name: "&cCrimson Poppy"
lore:
- "&7A vibrant red flower"
- "&7Symbolizes love and passion"
defaultEnabled: true
showMessages: falseflowers:
# Glowing enchanted flower
- material: "BLUE_ORCHID"
name: "&9&lMystical Blue Orchid"
lore:
- "&bA rare magical flower"
- "&7Glows with ethereal light"
glowing: true
enchantments:
UNBREAKING: 3
MENDING: 1
unbreakable: true
amount: 1
item-flags:
- "HIDE_ENCHANTS"Each flower in the config supports the following attributes:
| Attribute | Type | Description | Example |
|---|---|---|---|
material |
String | Minecraft material name | "DANDELION" |
| Attribute | Type | Default | Description | Example |
|---|---|---|---|---|
name |
String | Material name | Custom display name with color codes | "&eMagical Flower" |
lore |
List | None | Description lines under the item name | ["&7Line 1", "&7Line 2"] |
glowing |
Boolean | false |
Adds enchantment glow effect | true |
amount |
Integer | 1 |
Number of items to give (1-64) | 3 |
enchantments |
Map | None | Enchantments with levels | {UNBREAKING: 3, MENDING: 1} |
unbreakable |
Boolean | false |
Makes item unbreakable | true |
custom-model-data |
Integer | 0 |
Custom model data for resource packs | 1001 |
item-flags |
List | None | Flags to hide item information | ["HIDE_ENCHANTS", "HIDE_ATTRIBUTES"] |
HIDE_ENCHANTS- Hide enchantment informationHIDE_ATTRIBUTES- Hide attribute modifiersHIDE_UNBREAKABLE- Hide unbreakable statusHIDE_DESTROYS- Hide "can destroy" informationHIDE_PLACED_ON- Hide "can be placed on" informationHIDE_POTION_EFFECTS- Hide potion effectsHIDE_DYE- Hide dye information
Use & followed by a character for colors and formatting:
&0- Black&1- Dark Blue&2- Dark Green&3- Dark Aqua&4- Dark Red&5- Dark Purple&6- Gold&7- Gray&8- Dark Gray&9- Blue&a- Green&b- Aqua&c- Red&d- Light Purple&e- Yellow&f- White
&l- Bold&o- Italic&n- Underline&m- Strikethrough&k- Magic/Obfuscated&r- Reset formatting
UNBREAKING- Increases durabilityMENDING- Repairs with experienceEFFICIENCY- Faster tool usageFORTUNE- Better dropsSILK_TOUCH- Collect blocks as-isPROTECTION- Reduces damageSHARPNESS- Increases weapon damagePOWER- Increases bow damageINFINITY- Infinite arrows
| Setting | Type | Default | Description |
|---|---|---|---|
defaultEnabled |
Boolean | true |
Whether new players have the feature enabled by default |
showMessages |
Boolean | false |
Whether to show chat messages when flowers are given |
- When a player dies, the plugin randomly selects a flower from the configuration
- The selected flower is stored temporarily
- When the player respawns, the flower is added to their inventory with all configured attributes
- Players can toggle this feature on/off for themselves using the command
flowers:
- material: "DANDELION"
name: "&eDandelion"
- material: "POPPY"
name: "&cPoppy"
- material: "BLUE_ORCHID"
name: "&9Blue Orchid"
defaultEnabled: true
showMessages: falseflowers:
# Rare glowing flower
- material: "BLUE_ORCHID"
name: "&9&k||&r &b&lMystical Orchid &9&k||"
lore:
- "&7A flower touched by magic"
- "&bGlows with ethereal energy"
- "&8Rarity: &6Legendary"
glowing: true
enchantments:
UNBREAKING: 10
unbreakable: true
item-flags:
- "HIDE_ENCHANTS"
- "HIDE_UNBREAKABLE"
# Bouquet of flowers
- material: "RED_TULIP"
name: "&cRed Tulip Bouquet"
lore:
- "&7A beautiful arrangement"
amount: 5
# Custom resource pack flower
- material: "ALLIUM"
name: "&dSpecial Allium"
custom-model-data: 2001
glowing: true
defaultEnabled: true
showMessages: true- Clone this repository
- Make sure you have Java 21+ installed
- Run the build command:
./gradlew build
- The compiled JAR will be in
build/libs/
If you encounter any issues or have suggestions:
- Check the Issues page
- Create a new issue if your problem isn't already reported
- Include your server version, plugin version, and any error messages
This project is open source. Feel free to modify and distribute according to your needs.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Enjoy your magical flowers! ๐ธโจ