enzovesseron

Je veux créer un model 3d pour présenter un mini jeux tnt-run sur le lobby d'un serveur

Kodari AI
KodariAug 4 at 12:48 pm 1
TntRunLobbyModel
Creates a decorative 3D TNT-Run mini-game showcase model for the server lobby. The plugin spawns a floating holographic structure featuring layered TNT blocks, a central jump platform, and animated falling-block particles to simulate the game's collapsing floor mechanic. Includes configurable spawn location, rotation, and scale settings via config.yml. The model auto-renders on server start and can be toggled with commands. Uses armor stands with custom heads and invisible item frames to construct the 3D illusion without resource packs. Provides particle effects and sound cues to attract player attention, enhancing the lobby's visual appeal and promoting the TNT-Run mini-game.
  1. Créer un plugin Paper autonome utilisant des BlockDisplay et TextDisplay, sans resource pack.

  2. Ajouter /tntrunshowcase create|remove|clear pour gérer la maquette dans le lobby.

  3. Persister les entités via des scoreboard tags afin qu’elles restent supprimables après un redémarrage.

Plugin TntRunShowcase créé.

Fonctionnalités :

  • Maquette 3D TNT Run avec :

    • plateforme en obsidienne ;

    • sol en TNT ;

    • bordures en verre ;

    • piliers rouges ;

    • titre flottant TNT RUN.

  • Commandes :

    • /tntrunshowcase create [id]

    • /tntrunshowcase remove <id>

    • /tntrunshowcase clear

  • Les maquettes sont persistantes après redémarrage grâce aux scoreboard tags.

  • Permission : tntrunshowcase.admin

  • Alias : /tntrunmodel

Utilisation :

Plain Text
/tntrunshowcase create main

La maquette sera créée à la position du joueur.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 321
src/main/java/com/kodari/tntrunshowcase/TntRunShowcasePlugin.java
package com.kodari.tntrunshowcase;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class TntRunShowcasePlugin extends JavaPlugin {

    private ShowcaseManager showcaseManager;

    @Override
    public void onEnable() {
        showcaseManager = new ShowcaseManager();

        PluginCommand command = getCommand("tntrunshowcase");
        if (command == null) {
            throw new IllegalStateException("La commande tntrunshowcase est absente du plugin.yml");
        }

        ShowcaseCommand showcaseCommand = new ShowcaseCommand(showcaseManager);
        command.setExecutor(showcaseCommand);
        command.setTabCompleter(showcaseCommand);
    }

    public ShowcaseManager getShowcaseManager() {
        return showcaseManager;
    }
}