holdy_yt

The Hook: The server exists across two parallel timeline states—The Past (a vibrant, resource-rich world) and The Present (a ruined, dangerous world). Actions taken in the Past immediately alter the Present in real-time. Timeline Anchors: Placing specific blocks or building structures in the "Past" generates ruined, overgrown, or modified versions of those structures in the "Present." Temporal Discrepancy: Players in the Present can leave physical "ghost traces" or written messages in chest containers that decay over time unless preserved using custom plugin items (e.g., Chrono-Glass). Time-Slip Events: Triggered by script triggers or server timers, a section of the map flips from Past to Present instantly, swapping blocks, mob spawners, and environmental hazards around the players mid-scene. Can you make a spear, a mace, a sword, a elytra, and a axe that relates to this

Kodari AI
KodariOct 28 at 9:13 pm 1
TimelineRift
TimelineRift is a Minecraft plugin that creates dual parallel world states—a vibrant Past and a ruined Present—where player actions in one timeline instantly alter the other. It introduces five unique temporal weapons: the Chrono-Spear (strikes past targets to damage present enemies), the Rift Mace (shatters blocks across timelines), the Paradox Sword (swaps player positions between states), the Temporal Elytra (glides through time-slip zones), and the Flux Axe (harvests decayed resources). Features include Timeline Anchors that generate overgrown ruins in the Present, decaying ghost messages in chests preserved via Chrono-Glass, and scripted Time-Slip Events that flip map sections mid-scene, swapping blocks, spawners, and hazards around players in real-time.

I’ll create:

  1. A Paper plugin entry point and command to give the relics.

  2. Five timeline-themed items with distinct combat or movement abilities.

  3. The plugin metadata and build configuration.

Created ChronoRelics with five timeline-themed items and their abilities:

  • Epochal Javelin — right-click to surge forward.

  • Ruinfall Mace — right-click to damage and knock back nearby foes.

  • Paradox Edge — hits deal extra damage and slow targets.

  • Echo-Wing Elytra — gain a burst of speed when you start gliding.

  • Rootcutter Axe — hits deal extra damage and briefly slow targets.

Give them with /chronorelics give <player> <spear|mace|sword|elytra|axe|all>. The command is restricted to operators by default.

holdy_yt

can you make the elytra have a elytra dash also, the mace should have an ability that looks like a rip between the past and the present when fighting and it tp's you with effects up

Kodari AI
KodariOct 28 at 9:15 pm 1
  1. Add a dedicated forward dash ability to the elytra.

  2. Give the mace a visible Past–Present rift attack that teleports the wielder with effects.

  • Elytra: Right-click while gliding to dash forward, with portal and cloud effects; 5-second cooldown.

  • Mace: Face a nearby foe and right-click to open a visible Past–Present rift, teleport beside them, and deal damage. The teleport grants brief Speed and Strength; 6-second cooldown.

holdy_yt

it teleports the mace weilder higher up and the elytra will have the same protection of a netherite protection 4 chestplate. and it needs to change the overworld to look greifed and destroyed and somehow there needs to be a new dimention that you can go to like the og overworld before it got greifed and destroyed. The Hook: The server exists across two parallel timeline states—The Past (a vibrant, resource-rich world) and The Present (a ruined, dangerous world). Actions taken in the Past immediately alter the Present in real-time. Timeline Anchors: Placing specific blocks or building structures in the "Past" generates ruined, overgrown, or modified versions of those structures in the "Present." Temporal Discrepancy: Players in the Present can leave physical "ghost traces" or written messages in chest containers that decay over time unless preserved using custom plugin items (e.g., Chrono-Glass). Time-Slip Events: Triggered by script triggers or server timers, a section of the map flips from Past to Present instantly, swapping blocks, mob spawners, and environmental hazards around the players mid-scene.

Kodari AI
KodariOct 28 at 9:29 pm 3
  1. Make the mace rift teleport the wielder upward.

  2. Give the Elytra protection equivalent to a Protection IV netherite chestplate.

  3. Add the ruined Present world and a separate pristine Past world.

  4. Add timeline features: Past-to-Present structure changes, decaying chest traces, and timed area time-slips.

Updated the timeline mechanics:

  • Mace: the rift now teleports its wielder 3 blocks above the target.

  • Elytra: adds Protection IV plus the armor and toughness values of a netherite chestplate.

  • Worlds: the existing overworld is the Present, with rubble added as chunks load. /timeline past and /timeline present travel between it and a separate, fresh Past world generated with the same seed.

  • Anchors: placing stone, brick, glass, or wood-building blocks in the Past creates a worn or altered version at the same coordinates in the Present.

  • Ghost traces: written books stored in Present chests decay after 24 hours. Put Chrono-Glass in the chest to preserve them; decay starts 24 hours after the glass is removed.

  • Time-slips: every 5 minutes, a nearby area briefly takes on blocks and hazards from the other timeline, including spawner types. Admins can also trigger one with /chronorelics timeslip <player>.

The Past is a newly generated same-seed world, not a copy of a saved pristine world; the Present’s ruin treatment adds rubble rather than rebuilding terrain into a fully destroyed landscape.

holdy_yt

how do you go between the two worlds

Kodari AI
KodariOct 28 at 9:30 pm 1

Use /timeline past to travel to the Past and /timeline present to return to the Present. The Past is a separate world generated with the same seed.

holdy_yt

there needs to be a portal of some sort to get there

Kodari AI
KodariOct 28 at 9:31 pm 1
  • Automatically build a visible, walk-through timeline portal near each world’s spawn.

  • Teleport players between the Past and Present when they enter it, with particles and a brief re-entry cooldown.

Added a visible crying-obsidian rift portal about 8 blocks from each world’s spawn. Walk through it to travel between the Past and Present; it plays portal effects and has a brief cooldown to prevent bouncing straight back. /timeline past and /timeline present still work too.

holdy_yt

it needs to be hidden and look custom and has a command to find it

Kodari AI
KodariOct 28 at 9:38 pm 2
  1. Replace the obvious spawn portals with a concealed, custom-looking timeline rift.

  2. Add a command that points players toward the nearest rift.

Replaced the tall portal frame with a subtle, ground-level timeline seal styled differently in the Past and Present. Use /timeline find in either world to get its coordinates and point your compass toward it. Walk over the center of the seal to travel.

holdy_yt

can you make it where I spawn the portals in and can you get rid of the rubble from the present and dont spawn them yourself

Kodari AI
KodariOct 28 at 10:06 pm 1
  1. Stop automatic portal creation and add an admin command to create paired portals at your chosen coordinates.

  2. Remove the Present rubble generator and clean up plugin-generated rubble in marked chunks as they load.

  3. Save manually created portal locations so they still work after restarts.

Added /timeline portal. As an admin, stand where you want the rift and run it to create paired portals at those coordinates in both worlds. Their locations are saved across restarts; /timeline past, /timeline present, and /timeline find remain available to players.

Removed automatic portal creation and disabled the Present’s rubble generation. Plugin-generated rubble in already-marked chunks is cleaned up as those chunks load. Existing portal blocks from earlier runs may still be visible, but they won’t be active unless you create portals with the command.

holdy_yt

and can you give it a texture of some sort, the rift

Kodari AI
KodariOct 28 at 10:07 pm 1

Custom rift textures can be made with Kodari Studio, but Studio is disabled for this project. Enable it under Settings → Generation, or enable it for all projects at https://kodari.ai/settings?tab=features.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
3 776
src/main/java/com/kodari/chronorelics/ChronoRelicsPlugin.java
package com.kodari.chronorelics;

import com.cryptomorin.xseries.XEnchantment;
import com.cryptomorin.xseries.XAttribute;
import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XSound;
import com.cryptomorin.xseries.XPotion;
import com.cryptomorin.xseries.particles.XParticle;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.World;
import org.bukkit.WorldCreator;
import org.bukkit.attribute.AttributeModifier;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.block.CreatureSpawner;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryOpenEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.world.ChunkLoadEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.util.Vector;

public final class ChronoRelicsPlugin extends org.bukkit.plugin.java.JavaPlugin implements Listener, TabExecutor {
    private NamespacedKey relicKey;
    private NamespacedKey ruinedChunkKey;
    private NamespacedKey ghostExpiryKey;
    private World presentWorld;
    private World pastWorld;
    private final Map<UUID, Map<String, Long>> cooldowns = new HashMap<>();
    private final Map<UUID, Long> portalCooldowns = new HashMap<>();
    private final Map<World, Location> timelinePortals = new HashMap<>();
    private final Set<UUID> glidingPlayers = new HashSet<>();

    @Override
    public void onEnable() {
        relicKey = new NamespacedKey(this, "relic");
        ruinedChunkKey = new NamespacedKey(this, "ruined_chunk");
        ghostExpiryKey = new NamespacedKey(this, "ghost_expiry");
        presentWorld = Bukkit.getWorlds().get(0);
        pastWorld = Bukkit.getWorld("chrono_past");
        if (pastWorld == null) {
            pastWorld = Bukkit.createWorld(new WorldCreator("chrono_past")
                    .environment(World.Environment.NORMAL)
                    .seed(presentWorld.getSeed()));
        }
        getServer().getPluginManager().registerEvents(this, this);
        getCommand("chronorelics").setExecutor(this);
        getCommand("timeline").setExecutor(this);
        getCommand("timeline").setTabCompleter(this);
        for (org.bukkit.Chunk chunk : presentWorld.getLoadedChunks()) {
            removeGeneratedRubble(chunk);
        }
        loadTimelinePortal(presentWorld, "portals.present");
        loadTimelinePortal(pastWorld, "portals.past");
        getServer().getScheduler().runTaskTimer(this, this::animateTimelinePortals, 10L, 10L);
        getServer().getScheduler().runTaskTimer(this, this::triggerAutomaticTimeSlip, 6000L, 6000L);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (command.getName().equalsIgnoreCase("timeline")) {
            if (args.length == 1 && args[0].equalsIgnoreCase("portal")) {
                if (!sender.hasPermission("chronorelics.admin")) {
                    sender.sendMessage(color("&cYou do not have permission to create timeline portals."));
                    return true;
                }
                if (!(sender instanceof Player player)) {
                    sender.sendMessage(color("&cOnly players can choose where to create the portals."));
                    return true;
                }
                int x = player.getLocation().getBlockX();
                int z = player.getLocation().getBlockZ();
                createTimelinePortal(presentWorld, x, z);
                createTimelinePortal(pastWorld, x, z);
                saveTimelinePortal(presentWorld, "portals.present");
                saveTimelinePortal(pastWorld, "portals.past");
                saveConfig();
                player.sendMessage(color("&bPaired timeline portals created near &f" + x + ", " + z
                        + "&b in the Past and Present."));
                return true;
            }
            if (!(sender instanceof Player player)) {
                sender.sendMessage(color("&cOnly players can travel between timelines."));
                return true;
            }
            if (args.length == 1 && args[0].equalsIgnoreCase("find")) {
                Location portal = timelinePortals.get(player.getWorld());
                if (portal == null) {
                    player.sendMessage(color("&cThere is no timeline rift in this world."));
                    return true;
                }
                player.setCompassTarget(portal);
                int distance = (int) Math.sqrt(player.getLocation().distanceSquared(portal));
                player.sendMessage(color("&bThe hidden rift is at &f" + portal.getBlockX() + ", "
                        + portal.getBlockY() + ", " + portal.getBlockZ() + "&b. Your compass points toward it (&f"
                        + distance + " blocks&b)."));
                return true;
            }
            if (args.length != 1 || !(args[0].equalsIgnoreCase("past") || args[0].equalsIgnoreCase("present"))) {
                sender.sendMessage(color("&eUsage: /timeline <past|present|find|portal>"));
                return true;
            }
            World destinationWorld = args[0].equalsIgnoreCase("past") ? pastWorld : presentWorld;
            player.teleport(destinationWorld.getSpawnLocation());
            player.sendMessage(color(args[0].equalsIgnoreCase("past")
                    ? "&bYou step into the world before the fall."
                    : "&7You return to the ruined Present."));
            return true;
        }
        if (!sender.hasPermission("chronorelics.admin")) {
            sender.sendMessage(color("&cYou do not have permission to give timeline relics."));
            return true;
        }
        if (args.length == 2 && args[0].equalsIgnoreCase("timeslip")) {
            Player target = Bukkit.getPlayerExact(args[1]);
            if (target == null) {
                sender.sendMessage(color("&cThat player is not online."));
                return true;
            }
            beginTimeSlip(target);
            return true;
        }
        if (args.length != 3 || !args[0].equalsIgnoreCase("give")) {
            sender.sendMessage(color("&eUsage: /chronorelics give <player> <spear|mace|sword|elytra|axe|chronoglass|all> or /chronorelics timeslip <player>"));
            return true;
        }

        Player target = Bukkit.getPlayerExact(args[1]);
        if (target == null) {
            sender.sendMessage(color("&cThat player is not online."));
            return true;
        }

        String requested = args[2].toLowerCase();
        if (requested.equals("all")) {
            for (String relic : List.of("spear", "mace", "sword", "elytra", "axe")) {
                giveRelic(target, relic);
            }
            sender.sendMessage(color("&aGave the five timeline relics to &f" + target.getName() + "&a."));
            return true;
        }

        if (!List.of("spear", "mace", "sword", "elytra", "axe", "chronoglass").contains(requested)) {
            sender.sendMessage(color("&cUnknown item. Choose spear, mace, sword, elytra, axe, chronoglass, or all."));
            return true;
        }

        giveRelic(target, requested);
        sender.sendMessage(color("&aGave the " + requested + " relic to &f" + target.getName() + "&a."));
        return true;
    }

    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        if (command.getName().equalsIgnoreCase("timeline") && args.length == 1) {
            return matching(List.of("past", "present", "find", "portal"), args[0]);
        }
        if (args.length == 1) {
            return matching(List.of("give", "timeslip"), args[0]);
        }
        if (args.length == 2 && args[0].equalsIgnoreCase("timeslip")) {
            return matching(Bukkit.getOnlinePlayers().stream().map(Player::getName).toList(), args[1]);
        }
        if (args.length == 2 && args[0].equalsIgnoreCase("give")) {
            return matching(Bukkit.getOnlinePlayers().stream().map(Player::getName).toList(), args[1]);
        }
        if (args.length == 3 && args[0].equalsIgnoreCase("give")) {
            return matching(List.of("spear", "mace", "sword", "elytra", "axe", "chronoglass", "all"), args[2]);
        }
        return List.of();