Marketplace/Gameplay/immortal plugin

immortal plugin

minecraftFreev1.0.0

Description

Create a Minecraft Java Edition plugin for Spigot/Paper server.

Plugin Minecraft Version:
- Compatible with Minecraft 1.21 – 1.21.x

Plugin Features:
1. Add a command:
/immortal <player>

2. Command Behavior:
- When an admin runs /immortal <player>, that player becomes IMMORTAL.
- Immortal player can take damage normally until health reaches HALF HEART (0.5).
- Once the player reaches half heart:
- Player should NEVER die
- Any further damage should NOT reduce health below half heart
- Player should stay alive even if attacked by mobs, players, lava, fall damage, void, fire, explosions, etc.

3. Toggle System:
- Running /immortal <player> again should DISABLE immortal mode for that player.

4. Permissions:
- Permission: immortal.use
- Only players with permission can use the command.

5. Messages:
- Send message when immortal mode is enabled:
"Immortal mode enabled for <player>"
- Send message when immortal mode is disabled:
"Immortal mode disabled for <player>"
- Send error if player not found.

6. Technical Requirements:
- Use Bukkit / Spigot / Paper API
- Use EntityDamageEvent or EntityDamageByEntityEvent
- Cancel or modify damage when player is at half heart
- Store immortal players using UUID (HashSet or similar)
- Proper plugin.yml included
- Clean, optimized, and commented Java code

7. Extra:
- Prevent death event for immortal players
- Plugin should not cause lag
- Use best practices for Minecraft 1.21

Provide:
- Full Java main class
- plugin.yml file
- Explanation of how the plugin works

Reviews (0)

No reviews yet

Be the first to leave a review!

ANAS GAMERZ

Seller

ANAS GAMERZ

0

downloads

Versionv1.0.0
Platformminecraft
Typepaper
Minecraft VersionMC 1.21
CategoryMinecraft Plugins > Gameplay
Published on11/01/2026
Last update21/04/2026
Free