O
📎 1 file 14,812 chars
📄
pasted-code-1786089018152.txt
txt 181 lines
▶
so i want to create an smp prompt for another ai to make it into a plugin, so heres what i want: the name of the server is Instinct smp
(all commands are tab completions, and there will be commands that are op only! everything should have proper sound effects and particles (perferably mostly dust and the approprtaite color, and a mix of other particles if needed), try to have mostly everything small caps, and colorful, (have alomost everything be edited in a config folder) i will be using custom model data or unicodes for other textures, also, which ever playstlye the player has, they immediately get a rank (unicode), however even if the players have the same rank, they CANNOT see each other invis, in chat their rank will show when next to their name, also, their nametag will NOT show their rank but on tab and in chat yes
10 different playstyles with passives and abilities

On death, regaurdless if by a player, which every ability they have in their menu (shows in their actionbar), will drop, if they have a max of 2 abilities in their menu (shows in the acionbar) there is a 50% chance to drop only one of the two

If the dragon warrior dies, a unique echo shard is dropped onto the floor which glows, if a regular player picks it up, their old playstyle is removed from their inventory and they take the new dragon warrior playstyle. If the dragons warrior dies, they are immediatly rerolled. 

To reroll, a player needs to complete trials, if they complete their trials, they gain the echo shard. In order to start the trial, they have to begin the first trial and can no longer do other trials until they finish the original trial
Aggro
"Prove your aggression."
Complete all:
Kill 20 players.
Disable 50 shields.
Gain the achievements caves and cliffs .
 Quickdropper
"Master speed."
Complete all:
Gain surge protector 
Travel 2 thousand blocks while sprinting.
Kill 5 players with haste 2
 Annoying
"Become unpredictable."
Complete all:
Kill 20 players with bows.
Throw 64 Wind Charges at a player
Gain the achievement uneasy alliance
 Strategic
"Fight smarter."
Complete all:
Gain the achievement A Balanced Diet
Go invisible 10 times (have to wait 6 minutes every time for the potion to end) (3 minute potions dont count)
Kill the same player 10 times
🛡 Tank
"Become unbreakable."
Complete all:
Block 100 attacks with a shield.
Eat 100 food items.
Die 20 times
Coward
"Know when to run."
Complete all:
Gain the achievement sniper duel
Fall 100 times without dying
Gain 5 music discs from skeletons killing creepers
 Drain
"Control your opponent's resources."
Complete all:
Place 100 cobwebs.
Place 100 water buckets in the nether
Get to 200 levels total earned
Eat 100 Golden Apples.
 Passive
"Master survival."
Complete all:
Mine 1 thousand of the same block
Harvest 64 haybales wether crafting or from villages.
Gain the achievement star trader
Trade with villagers 100 times.
 Dragon Warrior (Mythic)
Since this is the only Mythic:
Complete all:
Obtain the Dragon Egg.
Kill 10 different players.
Collect 64 Dragon's Breath.
Spend 1 hour in the End.

so a command /playstlye smpstart, this expands the world border to a 2.5k to 2.5k border, it also rerolls every player who is online once, and gives a 30 minute long grace period (pvp is turned off and it shows in chat, and a 10 seconds warning in chat, then when pvp turns on, it shows in chat), with players getting 10 cooked steak, and a title saying "Playstyle smp has started!" then, it rerolls everyone. After this, if any player joins the server for the first time, it rerolls them, but if they have already joined the server, it doesnt reroll them.

All abilities damages are set damage, meaning that armor or having no armor doesnt matter, it always deals the amount of damage its supposed to do, for example, if an ability does 2 hearts of damage, than it does 2 hearts of damage to players regardless of their armor or if they have any armor. Main abilities have a name. For the actionbar, its gonna have an icon then “&aʀᴇᴀᴅʏ!”. And then the ability active, so when the ability is activated, it lasts a certain amount which will be “&bnumber of seconds”, and the cooldown, which is when the ability is over, it starts a cooldown which will be “&enumber of seconds” 

Try to send messages, for example when u activate ur ability or if its a chance passive. It tells you if u landed the chance or not


when the player is rerolled, the player is shown with a cool animation (titles) and sound effects,  of the different playstyles being rerolled, once rerolled, the title of the ability u recieved shows up and gives the appropriate particle colors, as well as a playsound, preferably the achievment unlocked and level up, they will be given a book, more on that later

the playstyle given will then not have any abilites, just passives, the main abilities are locked. there will be 1 ability for each playstyle, and the actionbar will have an icon, that will be given later once i make the pack, also there will be 10 playstyles, a trust system, /trust add (username) /trust remove (username) and a /trust list (shows a INVENTORY GUI of the player heads of the players u trusted, u can left click a head to untrust a player), trust players can NOT be affected by abilites. so if u have a teamate trusted, they cannot get hurt from their abilies, however if that teammate does NTO have u trusted, their abilites can damage u and do what ever the abiluty does. a /playstyle remove (name of playstyle), what this does is like infuse. so it removed the ability so u cant use it until u right click the echo_shard, it gets rid of the echo shard and shows up on ur actionbar with an icon, and once u do that comand, the icon goes away and u cant use those abilities, and it gives u the book back. 
to activate the abilites: /playstyleright | /playstyleleft

/info
opens up a guide with all the books and shows u what each one does, players cannot move anything in their inventory so they cant steal the books etc

there needs to be a cooldown on right clicking the books, and the /playstyle remove command
the 9 playstyles are , aggro, quickdropper,, coward, annoying, tank, drain, passive, strategic, (the last one is crafted with the dragon egg, the dragon warrior playstyle this one is a mythic and is not obtainable only one player can have it), 


Commands: (if the command is invalid or cannot be completed such as / playstyle remove (playstyle) and they dont have that playstyle active, then it wont give that echo shard back
	Op commands:
		/playstyle give (item that isnt a playstyle book)
		/playstyle set (name of a playstyle)
		/cooldown_remove (resets the cooldown of the abilities so it resets the actionbar to ready, and you’re able to use the abilities again)
		/playstyle reroll
		/particle trail on/off
		/playstyle reload (if u changed the config, and u use this command, it adds the changes)
		/playstlye smpstart
	Non permission commands:
		/playstyleright 
 /playstyleleft
/info (opens a chest INVENTORY GUI menu with 2 rows, (plays a sound effect when u open the INVENTORY GUI and after u close it) (unicodes for the texture will be added later in config)
/playstyle remove (name of the playstlye)
/trust add (player name) 
/trust remove (player name)
/trust list
/stats (shows how far you are into youre achievement to reroll)
/playstyle menu
/playstyle inspect 
	Player

Playstyle
Trusts
Kills

	(opens a INVENTORY GUI chest with 2 rows, in the 2nd slot you hotkey the echo shard, depending on which on u have shows up on the actionbar so u can use your abilities, like the infuse smp with their custom effects, and the 2nd to last slot, this is where u add your abilities, if u have abilities active on the menu, it shows, and they can only be removed with the playstyle remove command)A 3D icon/model of the playstyle.
Passive descriptions.
Main ability with cooldown and duration.
Your personal stats for that playstyle.
Challenge progress.
Whether the ability is currently equipped.
Cooldown timer if it's unavailable.



Custom items:
	The echo shard, which will have custom model data in the config
(and others when i got it)
Other stuff:
	If there is a INVENTORY GUI, you CANNOT move items in your inventory, so there is no duping, but you can hotkey it
	
Mythic announcement
🐉 THE DRAGON HAS CHOSEN A WARRIOR!

(player) has awakened the Dragon Warrior instinct.

The ground trembles…

Custom death messages if killed by an ability active




abilities:
aggro:
passives, drain 20 more dura from an enemies shield, make ur enemies shield cooldown longer (10 seconds), permaent strength 2, gain auto crit when lower than 5 hearts, (auto crit makes it so that all hits, sprint normal etc, are critical hits, when active, jumoing and hitting a player with auto crit does NOT do more damage, it jsut does the same), when an enemy is below 5 hearts, they gain weakness 2 and slowness 2, gain speed 2 when lower than 4 hearts, 
main ability, you’re mine: it gives u a teleport where when activated, it teleports u to the nearest player who is lower than 5 hearts, it gives them slowness 3, and the user gains strength 3 for 2 seconds the ability lasts 5 seconds, and the cooldown is 150 seconds seconds

quickdropper, 
passives: permanent speed 2, permant haste 2you cant lost hunger from a spear, when hitting a player, have a 20% chance on electricuting them (gain ominues spanwer particles for 5 seconds) it gives the user speed 4 and the victum slowness 2, the lightning strike deals 2 hearts. bows charge up faster, windcharges have half the cooldown, ur shield has a 3 second cooldown instead of 5, after hitting a player 10 times, gain haste 4 and speed 4 for 5 seconds
main ability, impulse desire: when hitting a player, ur haste level goes up, (max of 20), if u stop hitting a player for 3 seconds, the ability resets ur haste until u attack again, the ability lasts 20 seconds, and the cooldown is 200 seconds

Annoying playstyle
	Passives: /invison (toggles invisibility permanently) /invisoff (turns off your invisibility, when hit, have a 15% chance to go full invis (this means untrusted players cannot see you even if u have armor on and they cant see ur offhand or mainhand), a 20% chance to inflict untrust plaerys with blindness 1 for 5 seconds, projectiles fired at you have a 50% change to miss, eating while invis makes no sound, you are immune to wardens, when shooting a bow, it has a 40% chance to shoot a random debuff tipped arrow
	Main ability: all for jokes: all players hotbars are shuffled they are given a warning for 2 seconds and then it randomizes untrusted players hotbar, they use gains true invis, and speed 2 for 20 seconds. The ability lasts 20 seconds and the cooldown is 250 seconds

Strategic Playstyle:
	Passives: When moving or eating, you make no noise, when lower than 4 hearts, have a 10 % chance to stun the player on their next hit, permanent regen 1, /enderchest, allows you to open your enderchest, a 20% chance to deal 5% more damage to the player youve hit in the past 10 seconds. Projectiles reveal players hit and gives them glowing, any splash potions are doubled in time successful, for example one potion of speed with 8 minutes duration, equals 16
	Main ability: battle plan: for 15 seconds all untrusted players gain glowing in a 10x10 block radius, all glowing untrusted players take 10% more damage from the user
	

Tank Style
	Passives: resistance 1, eating any food gives double saturation, all tools have twice their durability. Knockback is reduced by 10%, shields have twice their durability. Mobs deal 50% less damage
	Main ability: fortress: take no knockback, (every hit on the user plays a anvil playsound minecraft:block.anvil.land, gain resistance 2, every hit on the user, has a chance 20% to reflect back on the unstrusted player that hit the user, it lasts 10 seconds, and the cooldown is 250 seconds

Coward Playstyle:
	Passives: permanent speed 1, no fall damage, gain plus 2 hearts, a 15% chance for for melee attacks to not work, negative potion effects revert to their positive alternative, have a 15% chance to not die if killed by another player or by anything, if activated, the player gains 15 hearts, and it fully heals them, it acts like a mini totem
	Main ability: escape artist, a dash that if it hits a player or entity, it deals 3 hearts of set damage, and the untrust player hit, gains weakness 2 the ability lasts 10 seconds, the cooldown is 60 seconds

Drain Playstyle:
	Permanent weaving, craftable cobwebs, (in the crafting table an x shape with string), a 15% chance to recover 5 armor durability points when hit by a player. Heal half a hearts every 10 hits, killing a player heals you by 4 hearts, when hitting a player, have a 10% chance to steal 5 of each of these items: webs, experience bottles, golden apples
	Main ability: all star: summons a 5x5 circle of dust cyan particles that circles you, players that place water in that circe, lose their water (it extinguishes), and deals 2 armor durability point every 2 seconds, it has a 5% chance to take 10 webs, or bottles of enchanting, or golden apples every second, the ability lasts 12 seconds, and the cooldown is 230 seconds

Passive playstyle:
	Permanent hero of the village 3, double exp gain, toggleable, /smelt, every block mined, is auto smelted, toggleable bad omen, /bo on/off, when near villagers or irongolems, gain resistance 2, a 50% chance to stun a player after every shield disable. All crops are instantly grown in a 2x2 radius. Craft cheap golden apples: one apple in the middle and the 4 corners in the crafting table have to be empty
	Main ability: stuns all untrusted players in a 5x5 radius for 5 seconds, the cooldown is 200

dragon warrior: 
	Passives: dragons breath acts as a better golden apple, (is able to be consumed whenever like a golden apple), permanent strength 2, permanent speed 2, regen 2, and haste 2, in the end. Toggleable glide: /glide on/off, allows the user to glide like an elyra without having an elytra, craftable chorus fruit, one apple in the middle, the 4 corners are empty, and then amethyst shards in the rest of the slots, all end mobs ignore you, immune to dragons breath, have a 30% chance to ignite players on fire that cannot be extinguished, it lasts 5 seconds, after 10 hits on a player, gain 5 absorption hearts, and speed 3, falling from a high enough height (like 10 blocks above an untrusted player) acts as a mace (deals 4 hearts at max), 
	Main ability: dragons accent: gain speed 4 and fire resistance for 20 seconds, all untrusted players cannot sprint for 10 seconds. Leaves a 10x10 dragons breath area, after 5 seconds, all players are levitated, then launched, when falling down, they take 4 hearts of damage. Ability lasts 20 seconds but the cooldown is 300 seconds



Kodari AI
KodariAug 7 at 7:53 am 18
InstinctSMP
InstinctSMP is a comprehensive playstyle-based SMP plugin featuring 10 unique playstyles (Aggro, Quickdropper, Annoying, Strategic, Tank, Coward, Drain, Passive, and the Mythic Dragon Warrior) with passive abilities, active main abilities, and a trial-based reroll system. Players receive randomized playstyles on join, with abilities shown in the actionbar and ranks displayed in chat and tab. The plugin includes a trust system with GUI management, an info guide GUI, playstyle menu with echo shard hotkeying, custom death messages, particle effects, sound effects, configurable cooldowns, OP commands, and a full SMP start command that expands the world border and initiates grace periods.
  1. Build the plugin foundation, persistent player profiles, configurable playstyles, and server-start flow.

  2. Add command/tab-completion, trust protection, rerolls, shards, cooldowns, and safe inventory GUIs.

  3. Implement core passive/active ability mechanics, death handling, effects, and trial-progress tracking.

Created the Instinct SMP plugin foundation with:

  • Persistent player playstyles, trust lists, ability states, cooldowns, settings, and trial progress.

  • Config-driven playstyle names, colors, particles, item model data, messages, durations, cooldowns, server startup, and trials.

  • /playstyle, /trust, /info, /stats, ability, toggle, particle-trail, and admin command structure with tab completion.

  • Protected chest GUIs for profile, info, inspect, and trusted-player management.

  • Rerolls, echo shards, Dragon Warrior ownership/announcement, death shard drops, grace-period startup, passive effects, action-bar ability state, and core active abilities.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle.kts
settings.gradle.kts
Code
14 1,289
src/main/java/com/instinctsmp/InstinctSmpPlugin.java
package com.instinctsmp;

import com.instinctsmp.command.InstinctCommand;
import com.instinctsmp.gui.MenuListener;
import com.instinctsmp.gui.MenuService;
import com.instinctsmp.listener.PlaystyleListener;
import com.instinctsmp.service.PlaystyleManager;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class InstinctSmpPlugin extends JavaPlugin {
    private ProfileStore profileStore;
    private PlaystyleManager playstyleManager;
    private MenuService menuService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        profileStore = new ProfileStore(this);
        playstyleManager = new PlaystyleManager(this, profileStore);
        menuService = new MenuService(this, playstyleManager);

        InstinctCommand command = new InstinctCommand(this, playstyleManager, menuService);
        registerCommand("playstyle", command);
        registerCommand("playstyleright", command);
        registerCommand("playstyleleft", command);
        registerCommand("trust", command);
        registerCommand("info", command);
        registerCommand("stats", command);
        registerCommand("cooldown_remove", command);
        registerCommand("particletrail", command);
        registerCommand("invison", command);
        registerCommand("invisoff", command);
        registerCommand("enderchest", command);
        registerCommand("smelt", command);
        registerCommand("bo", command);
        registerCommand("glide", command);

        Bukkit.getPluginManager().registerEvents(new PlaystyleListener(this, playstyleManager), this);
        Bukkit.getPluginManager().registerEvents(new MenuListener(menuService), this);
        Bukkit.getScheduler().runTaskTimer(this, playstyleManager::tick, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (profileStore != null) {
            profileStore.save();
        }
    }

    private void registerCommand(String name, InstinctCommand executor) {
        PluginCommand command = getCommand(name);
        if (command == null) {
            throw new IllegalStateException("Command missing from plugin.yml: " + name);
        }
        command.setExecutor(executor);
        command.setTabCompleter(executor);
    }

    public ProfileStore getProfileStore() {
        return profileStore;
    }

    public PlaystyleManager getPlaystyleManager() {
        return playstyleManager;
    }
}