samrxt.xyz

make a plugin to make a elevator player must get blindness effect when teleporting to elevator we can customize the elevator width and once it is used it will reset after player goes out ,player can't move when they are in the elevator region the elevator must be smooth like in video and we can create a region with is not a part pf elevator and if player crouches all player in that region gets the message that the specified player crouched is ready the message above the hot bar small message and player can crouch wen in elevator but not move player can move when they are out of elevator the elevator should summon block after player is landed to that place and remove that block when transporting player and repeat it

Kodari AI
KodariMar 27 at 3:57 am 17,948 (v2)

I’ll create a smooth elevator plugin with animated teleportation, blindness effects, movement restrictions, and a ready-check region system.

SmoothElevator
An advanced elevator plugin featuring smooth animated teleportation with visual block effects. Players receive blindness during transit and cannot move within elevator regions. Includes customizable elevator dimensions, automatic reset after use, and separate ready-check regions where players can signal readiness via crouching. The system displays action bar messages for ready status and provides seamless vertical transportation with spawning floor blocks during animation.

I’ve created a comprehensive smooth elevator plugin! Here’s what’s included:

Features:

  • Smooth animated teleportation between two points

  • Blindness effect during elevator rides

  • Customizable elevator width (cuboid region)

  • Players cannot move while in elevator regions

  • Floor blocks spawn/despawn during animation

  • Ready regions with crouch detection for readiness checks

  • Action bar messages for ready status

  • Automatic elevator reset after use

Commands:

  • /elevator create <name> - Create elevator (select two points with your location)

  • /elevator delete <name> - Remove elevator

  • /elevator setwidth <name> <width> - Adjust region size

  • /elevator setblock <name> <material> - Change floor block material

  • /readyregion create <name> - Create ready-check region

  • /readyregion delete <name> - Remove ready region

How it works:

  1. Create an elevator by running /elevator create MyLift twice at start and end positions

  2. Players entering the region automatically trigger smooth teleportation

  3. During transport, players get blindness and can’t move

  4. Glass blocks spawn under the player and follow them up/down

  5. Ready regions allow players to crouch and notify others via action bar

All files created with XSeries compatibility, Lombok annotations, proper imports, and full implementations!

samrxt.xyz

the elevator should lift players using the same material like real on smooth

samrxt.xyz

x

samrxt.xyz

The compilation failed with this error:

code
Compilation failed with 7 error(s):

ERROR in src/main/java/com/smoothelevator/commands/ReadyRegionCommand.java at line 20: class ElevatorCommand is public, should be declared in a file named ElevatorCommand.java
public class ElevatorCommand implements CommandExecutor, TabCompleter {
       ^

ERROR in src/main/java/com/smoothelevator/commands/PushRegionCommand.java at line 14: class ElevatorAnimator is public, should be declared in a file named ElevatorAnimator.java
public class ElevatorAnimator {
       ^

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 4: cannot find symbol
import com.smoothelevator.commands.PushRegionCommand;
                                  ^
  symbol: class PushRegionCommand
  location: package com.smoothelevator.commands

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 5: cannot find symbol
import com.smoothelevator.commands.ReadyRegionCommand;
                                  ^
  symbol: class ReadyRegionCommand
  location: package com.smoothelevator.commands

ERROR in src/main/java/com/smoothelevator/commands/ReadyRegionCommand.java at line 4: package com.smoothelevator.libs.com.cryptomorin.xseries does not exist
import com.smoothelevator.libs.com.cryptomorin.xseries.XMaterial;
                                                      ^

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 47: cannot find symbol
      this.getCommand("readyregion").setExecutor(new ReadyRegionCommand(this));
                                                     ^
  symbol: class ReadyRegionCommand
  location: class SmoothElevator

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 48: cannot find symbol
      this.getCommand("pushregion").setExecutor(new PushRegionCommand(this));
                                                    ^
  symbol: class PushRegionCommand
  location: class SmoothElevator


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - PushRegionCommand
  - ReadyRegionCommand
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/smoothelevator/commands/ReadyRegionCommand.java
  - src/main/java/com/smoothelevator/commands/PushRegionCommand.java
  - src/main/java/com/smoothelevator/SmoothElevator.java

Please fix this error by creating a new artifact with the corrected code.

samrxt.xyz

The compilation failed with this error:

code
Compilation failed with 5 error(s):

ERROR in src/main/java/com/smoothelevator/commands/PushRegionCommand.java at line 14: class ElevatorAnimator is public, should be declared in a file named ElevatorAnimator.java
public class ElevatorAnimator {
       ^

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 4: cannot find symbol
import com.smoothelevator.commands.PushRegionCommand;
                                  ^
  symbol: class PushRegionCommand
  location: package com.smoothelevator.commands

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 5: cannot find symbol
import com.smoothelevator.commands.ReadyRegionCommand;
                                  ^
  symbol: class ReadyRegionCommand
  location: package com.smoothelevator.commands

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 47: cannot find symbol
      this.getCommand("readyregion").setExecutor(new ReadyRegionCommand(this));
                                                     ^
  symbol: class ReadyRegionCommand
  location: class SmoothElevator

ERROR in src/main/java/com/smoothelevator/SmoothElevator.java at line 48: cannot find symbol
      this.getCommand("pushregion").setExecutor(new PushRegionCommand(this));
                                                    ^
  symbol: class PushRegionCommand
  location: class SmoothElevator


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - PushRegionCommand
  - ReadyRegionCommand
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/smoothelevator/commands/PushRegionCommand.java
  - src/main/java/com/smoothelevator/SmoothElevator.java

Please fix this error by creating a new artifact with the corrected code.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
22 2,395
src/main/java/com/smoothelevator/SmoothElevator.java
package com.smoothelevator;

import com.smoothelevator.commands.ElevatorCommand;
import com.smoothelevator.commands.PushRegionCommand;
import com.smoothelevator.commands.ReadyRegionCommand;
import com.smoothelevator.listeners.ElevatorListener;
import com.smoothelevator.listeners.MovementListener;
import com.smoothelevator.listeners.PushRegionListener;
import com.smoothelevator.listeners.ReadyRegionListener;
import com.smoothelevator.listeners.WandListener;
import com.smoothelevator.managers.ElevatorManager;
import com.smoothelevator.managers.PushRegionManager;
import com.smoothelevator.managers.ReadyRegionManager;
import com.smoothelevator.managers.SelectionManager;
import org.bukkit.plugin.java.JavaPlugin;

public class SmoothElevator extends JavaPlugin {
   private ElevatorManager elevatorManager;
   private ReadyRegionManager readyRegionManager;
   private PushRegionManager pushRegionManager;
   private SelectionManager selectionManager;

   public void onEnable() {
      this.saveDefaultConfig();
      this.elevatorManager = new ElevatorManager(this);
      this.readyRegionManager = new ReadyRegionManager(this);
      this.pushRegionManager = new PushRegionManager(this);
      this.selectionManager = new SelectionManager();
      this.elevatorManager.loadElevators();
      this.readyRegionManager.loadRegions();
      this.pushRegionManager.loadRegions();
      this.registerCommands();
      this.registerListeners();
      this.getLogger().info("SmoothElevator has been enabled!");
   }

   public void onDisable() {
      this.elevatorManager.saveElevators();
      this.readyRegionManager.saveRegions();
      this.pushRegionManager.saveRegions();
      this.elevatorManager.cancelAllSessions();
      this.getLogger().info("SmoothElevator has been disabled!");
   }

   private void registerCommands() {
      this.getCommand("elevator").setExecutor(new ElevatorCommand(this));
      this.getCommand("readyregion").setExecutor(new ReadyRegionCommand(this));
    //   this.getCommand("pushregion").setExecutor(new PushRegionCommand(this));
     this.getCommand("pushregion").setExecutor(new PushRegionCommand(this, this.elevatorManager));
   }

   private void registerListeners() {
      this.getServer().getPluginManager().registerEvents(new ElevatorListener(this), this);
      this.getServer().getPluginManager().registerEvents(new MovementListener(this), this);
      this.getServer().getPluginManager().registerEvents(new ReadyRegionListener(this), this);
      this.getServer().getPluginManager().registerEvents(new PushRegionListener(this), this);
      this.getServer().getPluginManager().registerEvents(new WandListener(this), this);
   }

   public ElevatorManager getElevatorManager() {
      return this.elevatorManager;
   }

   public ReadyRegionManager getReadyRegionManager() {
      return this.readyRegionManager;
   }

   public PushRegionManager getPushRegionManager() {
      return this.pushRegionManager;
   }

   public SelectionManager getSelectionManager() {
      return this.selectionManager;
   }
}