js_jveo

make a plugin were when someone gets hit with the mace a ripple happens and all blocks in a 5 block radius get pushed up and move like sand

Kodari AI
KodariJul 19 at 6:38 pm 1
MaceRipple
A Bukkit/Paper plugin that creates a dramatic ripple effect when a player is hit with a mace. All non-air blocks within a 5-block radius are launched upward in a wave pattern radiating from the impact point, then restored after 3 seconds. The effect uses falling block entities with randomized velocities for a natural sand-like animation.

I’ll create 5 files for this plugin.

js_jveo

Detect when a player successfully damages an entity while holding a Mace.

Create a circular shockwave of temporary Block Display entities around the victim.

The blocks should look like smooth iron blocks (matching the attached screenshot).

Arrange the blocks in concentric rings with different heights to form a rounded dome or crater-like platform.

Animate the blocks rising from the ground over 5–10 ticks.

Keep the structure visible for about 1 second.

Animate the blocks sinking back into the ground before removing them.

The effect should be purely visual (Block Displays only), with no actual block placement or terrain modification.

The structure should always align with the ground beneath the victim, even on uneven terrain.

Add particles (dust, clouds, debris) and a deep impact sound when the platform rises.

Make the radius, height, duration, block type, animation speed, particles, and sounds configurable in config.yml.

Use modern Paper 1.21.11 APIs only, with no NMS.

Optimize the effect so multiple players can trigger it simultaneously without lag.

Kodari AI
KodariJul 19 at 7:08 pm 2

I’ll rewrite the plugin to use Block Display entities with smooth interpolation, a dome shape, particles, sound, and full config. Let me update all files

Now let me rewrite all the core files and create the config:

Now let me rewrite all the files. First, the config and main plugin

Let me put these as inline tags properly:

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 278
src/main/java/com/maceripple/MaceRipple.java
package com.maceripple;

import com.maceripple.listener.MaceListener;
import com.maceripple.config.ConfigManager;
import org.bukkit.plugin.java.JavaPlugin;

public class MaceRipple extends JavaPlugin {

    private ConfigManager configManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.configManager = new ConfigManager(this);
        getServer().getPluginManager().registerEvents(new MaceListener(this), this);
        getLogger().info("MaceRipple enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("MaceRipple disabled!");
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }
}