senyacool

Create a plugin for Minecraft Paper (version 26.1.2). The plugin must allow an administrator to summon an entity resembling a large, stationary rift in reality; this rift deals damage to any player who comes within three blocks of it. The rift itself should look like a crack at least 15 blocks long, with smaller, diagonal cracks branching off from it. The rift must be visible to players.

Kodari AI
KodariJun 30 at 8:54 am 1

I’ll create a rift-summoning plugin for Paper 1.21. The rift renders as a 15+ block vertical crack with branching fractures, deals damage in a 3-block radius, and uses particles for visibility.

RiftPlugin
A Paper plugin that allows administrators to summon a large, stationary rift in reality. The rift renders as a jagged vertical crack at least 15 blocks long, with branching diagonal fractures, using dynamic particle effects. Any player within 3 blocks of the rift takes damage every second. The rift persists until the server restarts or the plugin is disabled.

The plugin structure is ready:

4 files, one package:

  • plugin.yml — declares the summonrift command (op-only) targeting API 1.21

  • RiftPlugin.java — main class instantiates RiftManager and registers the command

  • RiftManager.java — thread-safe registry of active rifts with create/remove/destroy-all

  • Rift.java — the core; generates a jagged vertical crack 15+ blocks tall with diagonal branches, renders it using DUST (dark purple), PORTAL, and DRAGON_BREATH particles, damages players within the configured radius (default 3 blocks) with a 1-second cooldown per player

  • SummonRiftCommand.java — /summonrift [length] [damage] [radius] defaults to 15/5/3, parses overrides, spawns at the player’s feet

How it looks: A vertical tear in the air — dark purple dust particles trace the main crack and its diagonal branches. Portal particles flicker along the edges. Dragon’s breath drifts off the sides. Three swirling portal particles orbit slowly around the rift as ambient glow. Players within 3 blocks take 5 damage (2.5 hearts) every second.

Kodari can make mistakes. Review important code before using.
Files
src
Code
5 421
src/main/java/com/riftplugin/RiftPlugin.java
package com.riftplugin;

import org.bukkit.plugin.java.JavaPlugin;

public class RiftPlugin extends JavaPlugin {

    private RiftManager riftManager;
    private static RiftPlugin instance;

    @Override
    public void onEnable() {
        instance = this;
        this.riftManager = new RiftManager(this);

        getCommand("summonrift").setExecutor(new SummonRiftCommand(this));
        getLogger().info("RiftPlugin enabled.");
    }

    @Override
    public void onDisable() {
        if (riftManager != null) {
            riftManager.removeAll();
        }
        getLogger().info("RiftPlugin disabled.");
    }

    public RiftManager getRiftManager() {
        return riftManager;
    }

    public static RiftPlugin getInstance() {
        return instance;
    }
}