V

make a special plugin that adds a holo like this one showing that it breaks after 30 seconds so just add a 30 second cooldown like the one in the picture and make sure this only applies for packed ice blocks cobwebs and pressure plates only example i place one cobweb it gets broken after 30 seconds of being placed and theres a cooldown letting me know like the one in the picture

1 image attached
Kodari AI
KodariMar 15 at 2:01 am 8,081 (v2)

I’ll create a plugin that adds holographic countdown timers above placed packed ice, cobwebs, and pressure plates that auto-break after 30 seconds.

TimedBlockRemoval
Automatically removes specific blocks (packed ice, cobwebs, pressure plates) after 30 seconds with a holographic countdown display above each block. Perfect for preventing block spam and maintaining clean gameplay areas. Features configurable countdown messages, block types, and removal time with automatic cleanup.

All files created! The plugin tracks packed ice, cobwebs, and all pressure plate types, displays a purple holographic countdown above each placed block, and automatically removes them after 30 seconds.

V

make the backround transparent and add the warning emoji and make it red instead of purple make the backround transparent and make it so i dont see the armour stand when placed for a sec

V

make the backround transparent and make it so i dont see the armour stand when placed for a sec and make it red instead of purple and add the warning emoji and make it so the holo gram is on the same level as the block so like in the middle of the cobewb and the middle of other blocks

Kodari AI
KodariMar 15 at 2:10 am 6,790 (v2)

I’ll read the current files to understand the implementation and make the requested changes.

I’ll modify the plugin to make the requested changes:

  • Center hologram in the middle of the block (not above it)

  • Change color from purple to red

  • Add warning emoji ⚠️

  • Add a small delay so armor stand doesn’t flash when placed

Changes made:

  • Hologram now spawns at the center of the block (0.5, 0.5, 0.5) instead of above it

  • Added 2-tick delay before spawning the hologram to prevent armor stand flash

  • Changed color from purple (&d, &5) to red (&c)

  • Replaced clock emoji ⏰ with warning emoji ⚠️

  • Armor stands already have transparent backgrounds by default

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

import com.timedblock.listener.BlockPlaceListener;
import com.timedblock.manager.TimedBlockManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TimedBlockPlugin extends JavaPlugin {
    
    private TimedBlockManager timedBlockManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.timedBlockManager = new TimedBlockManager(this);
        
        getServer().getPluginManager().registerEvents(new BlockPlaceListener(this), this);
        
        getLogger().info("TimedBlockRemoval has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (timedBlockManager != null) {
            timedBlockManager.shutdown();
        }
        getLogger().info("TimedBlockRemoval has been disabled!");
    }
}