P

make a plugin that makes every player a sulfer cube yes the new one from the latest update and make the player pyshics the same bounciness and make the sulfer cube entity always teleport on every player and each player has theyre own sulfer cube and they bounce really much and you cant see you own sulfer cube that teleports to you

Kodari AI
KodariMay 11 at 7:30 pm 6,714 (v2)

I’ll create a unique plugin that transforms every player into a bouncy sulfur cube entity.

SulfurCubePlayer
Transforms every player into a bouncy sulfur cube entity from Minecraft 1.21.4+. Each player has their own sulfur cube entity that teleports to their location continuously. Players experience enhanced bounce physics similar to actual sulfur cubes, with high bounciness and unique movement. Players cannot see their own cube but see others' cubes, creating a fun multiplayer experience where everyone appears as bouncing sulfur cubes.

I’ll create a plugin that spawns sulfur cube entities for each player, hides them from their owner, and applies bouncy physics.


SulfurCubePlayer plugin created!

Features:

  • Spawns a sulfur cube entity for each player that continuously teleports to their location

  • Players can see other players’ cubes but not their own (using Player.hideEntity())

  • Applies bouncy physics: players bounce high when touching the ground, simulating sulfur cube behavior

  • Configurable bounce strength, horizontal dampening, and teleport frequency

  • Requires Minecraft 1.21.4+ (checks for sulfur cube support on startup)

  • /sulfurcube reload command to reload configuration

Key mechanics:

  • Cubes teleport to player position every tick (configurable)

  • Cubes are invulnerable, non-collidable, and have no gravity

  • Bounce system triggers when player is on ground, launching them upward

  • Cleans up cubes on quit/respawn/teleport and recreates them

The plugin will make everyone appear as bouncing sulfur cubes with exaggerated bounce physics!

P

also make a command that ops can do so they can see theyre own sulfer cube by doing /showsulfer

Kodari AI
KodariMay 11 at 7:31 pm 18,166 (v2)

I’ll add a /showsulfer command that allows ops to toggle seeing their own sulfur cube.

Done! I’ve added the /showsulfer command that allows ops to toggle seeing their own sulfur cube.

Changes made:

  • Added toggleShowOwnCube() method to PlayerCubeManager that tracks which players want to see their own cube

  • Created ShowSulferCommand that only ops can use to toggle visibility

  • When enabled, the player’s cube becomes visible to them; when disabled, it’s hidden again

  • Command aliases: /showsulfur, /seesulfer

  • The toggle state persists until the player logs out or the plugin reloads

Ops can now use /showsulfer to see their own bouncing sulfur cube!

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
Code
10 509
src/main/java/com/sulfurcubeplayer/SulfurCubePlugin.java
package com.sulfurcubeplayer;

import com.sulfurcubeplayer.command.CubeCommand;
import com.sulfurcubeplayer.command.ShowSulferCommand;
import com.sulfurcubeplayer.listener.BounceListener;
import com.sulfurcubeplayer.listener.PlayerListener;
import com.sulfurcubeplayer.manager.PlayerCubeManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SulfurCubePlugin extends JavaPlugin {

    private PlayerCubeManager cubeManager;
    private BounceListener bounceListener;
    private PlayerListener playerListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        // Check if sulfur cubes are supported
        if (!isSulfurCubeSupported()) {
            getLogger().severe("Sulfur cubes are not supported in this Minecraft version!");
            getLogger().severe("This plugin requires Minecraft 1.21.4 or higher.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        cubeManager = new PlayerCubeManager(this);
        bounceListener = new BounceListener(this);
        playerListener = new PlayerListener(this);

        registerListeners();
        registerCommands();

        // Initialize cubes for online players
        for (Player player : Bukkit.getOnlinePlayers()) {
            cubeManager.createCube(player);
        }

        getLogger().info("SulfurCubePlayer has been enabled! All players are now sulfur cubes!");
    }

    @Override
    public void onDisable() {
        if (cubeManager != null) {
            cubeManager.removeAllCubes();
        }
        getLogger().info("SulfurCubePlayer has been disabled!");
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(playerListener, this);
        getServer().getPluginManager().registerEvents(bounceListener, this);
    }

    private void registerCommands() {
        getCommand("sulfurcube").setExecutor(new CubeCommand(this));
        getCommand("showsulfer").setExecutor(new ShowSulferCommand(this));
    }

    private boolean isSulfurCubeSupported() {
        try {
            Class.forName("org.bukkit.entity.SulfurCube");
            return true;
        } catch (ClassNotFoundException e) {
            return false;
        }
    }

    public void reload() {
        reloadConfig();
        cubeManager.removeAllCubes();
        
        if (getConfig().getBoolean("enabled", true)) {
            for (Player player : Bukkit.getOnlinePlayers()) {
                cubeManager.createCube(player);
            }
        }
    }
}