vanshgamer_02

Create a plugin where i can morph into any block and every block has different scales i want only horizontal rotation the block should not merge with other block and when i become something big like door both part of door should appear

Kodari AI
KodariApr 9 at 7:50 pm 14,668 (v2)

I’ll create a block morphing plugin with custom scaling and proper multi-block support.

BlockMorph
A comprehensive morphing plugin that allows players to transform into any block type with customizable scaling and horizontal rotation. Features include automatic multi-block structure support for doors and beds, proper collision handling, invisible player rendering, and real-time display updates. Uses modern Block Display entities for high-quality visual representation with smooth rotation and precise scaling control.

All files created! The plugin allows players to morph into any block with custom scaling, supports multi-block structures like doors, uses horizontal-only rotation, and maintains proper visual separation through Block Display entities.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 578
src/main/java/com/blockmorph/BlockMorphPlugin.java
package com.blockmorph;

import com.blockmorph.commands.MorphCommand;
import com.blockmorph.listeners.MorphListener;
import com.blockmorph.managers.ConfigManager;
import com.blockmorph.managers.DisplayManager;
import com.blockmorph.managers.MorphManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class BlockMorphPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private DisplayManager displayManager;
    private MorphManager morphManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.displayManager = new DisplayManager(this);
        this.morphManager = new MorphManager(this);
        
        getCommand("morph").setExecutor(new MorphCommand(this));
        getServer().getPluginManager().registerEvents(new MorphListener(this), this);
        
        getLogger().info("BlockMorph enabled successfully!");
    }

    @Override
    public void onDisable() {
        if (morphManager != null) {
            morphManager.shutdown();
        }
        getLogger().info("BlockMorph disabled successfully!");
    }

    public void reload() {
        reloadConfig();
        configManager.reload();
    }
}