S

Create a Minecraft server plugin for version 1.20.1 named Apple Steal.

In this plugin, there should be 7 special apples. These apples must be non-edible.

To give an apple to a player, an operator must use this command in chat: /applegive [playername] [apple name]

Each player should receive only 1 apple at a time (no stacking allowed).

Each apple must have:

A unique name

A different texture based on its type

A different special power

Apple Names and Powers

  1. FIRE APPLE

This apple should have 2 abilities:

Ability 1:

Hold the apple and press Shift + Right Click → A massive fireball is summoned and launched forward.

Everything within 60 blocks explodes and catches fire.

Ability 2:

Hold the apple and Left Click → Fire-style particles appear around the player, then the player flies into the air.

All players within 30 blocks are reduced to 1 heart for 30 minutes (real time).

  1. ICE APPLE

This apple has 1 ability:

Hold the apple and press Shift + Left Click → All players within 25 blocks, except the owner, are frozen for 5 minutes (real time).

It should be impossible to escape from this freeze.

  1. DRAGON APPLE

This apple has 1 ability:

On Right Click → The player is teleported to the End dimension, spawning 30 blocks above the void.

If the player is wearing an elytra, it will be removed/despawned.

  1. TIME APPLE

This apple has 1 main ability:

Hold the apple and Shift + Right Click → The entire server freezes (including all players) for 2 hours (real time).

While the server is frozen:

If the apple holder uses Shift + Left Click, everything returns to normal.

Each apple can only freeze/unfreeze time 10 times.

If a new apple is given via command, it will again have 10 uses.

  1. ENDER APPLE

This apple has 1 ability:

Hold the apple and Left Click → The player teleports in the direction they are looking.

  1. FLIGHT APPLE

This apple has 1 ability:

Hold the apple and Right Click → The player can fly like in Creative mode, but without actually getting Creative mode.

This ability can be used only 15 times per apple.

  1. OWNER APPLE

This apple has 1 ability:

When the player holds the apple and crouches → The player is granted server operator (OP) permissions.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code