Joseph Juarez
📎 1 file 12,977 chars
📄
pasted-code-1788147144386.txt
txt 255 lines
▶
		Playstyle smp idea

Things to add:
Trust system
8 different Playstyles
Aggro, quickdropper, drain, passive, tank, coward, annoying, strategic
1 Mythic item (dragon egg)

How the plugin works:
Craft specific trial keys 
This is essentially how to reroll
I can make the crafting recipe for the trial keys, i just need the actual items
Right click one of the trial keys (aggro, quickdropper etc)
Once right clicked, you have to complete certain tasks to official reroll
Later on, you can use /playstyle menu, to open a 1 chest row menu

You are able to have 2 playstyles in ur menu/actionbar active, 
To activate them, you have to hotkey the specific core to the 2nd slot of the gui, and the second playstyle has to be hotswapped to the 2nd to last slot of the gui for it to activate
The plugin will be activated with command keys (commands given later)
All abilities damages are set damage
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” 
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 (for example, you have electrocuted this player) 
when the player is rerolled: shown with a cool animation (titles) and sound effects,  appropriate particle colors, as well as a playsound, preferably the achievment unlocked and level up, they will be given a custom model data echo shard, more on that later
The trial keys will be a custom model data trial key, 
Custom model data:
Aggro:
Quickdropper:
Drain:
Passive:
Strategic:
Tank:
Coward:
Annoying :
Dragon warrior:
There will be cores that are the physical items you have to put in ur menu, you can either hotkey them into the menu, or right click on them and it immediately adds it to the menu
The cores will be echo shards with custom model data
Custom model data:
Aggro:
Quickdropper:
Drain:
Passive:
Strategic:
Tank:
Coward:
Annoying :
Dragon warrior:



How death works:
	-On death, regardless 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 action bar) 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. 


Trial achievements to reroll:
Aggro
Complete all:
Kill 20 players.
Disable 50 shields.
Gain the achievements caves and cliffs .
 Quickdropper
Complete all:
Gain surge protector 
Travel 2 thousand blocks while sprinting.
Kill 5 players with haste 2
 Annoying
Complete all:
Kill 20 players with bows.
Throw 64 Wind Charges at a player
Gain the achievement uneasy alliance
 Strategic
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
Complete all:
Block 100 attacks with a shield.
Eat 100 food items.
Die 20 times
Coward
Complete all:
Gain the achievement sniper duel
Fall 100 times without dying
Gain 5 music discs from skeletons killing creepers
 Drain
Complete all:
Place 100 cobwebs.
Place 100 water buckets in the nether
Get to 200 levels total earned
Eat 100 Golden Apples.
 Passive
Complete all:
Mine 1 thousand of the same block
Harvest 64 hay bales whether 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. (while having the dragon egg in your inv)
Collect 64 Dragon's Breath.
Spend 1 hour in the End.

Playstyle abilites/passives:
abilities:
aggro:
passives, 
drain 20 more dura from an enemies shield, 
make ur enemies shield cooldown longer (10 seconds), 
permanent 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, jumping and hitting a player with auto crit does NOT do more damage, it just 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 untrusted  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 


quickdropper, 
passives: 
permanent speed 1, permant haste 2 
you can't lose hunger from a spear, 
when hitting a player, have a 20% chance of electrocuting them (gain ominous spanwer particles for 5 seconds) it gives the user speed 4 and the victim slowness 2, the lightning strike deals 2 hearts of set damage. 
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 (particles please)
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 untrusted players 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, the user 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, 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 you've 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. It lasts 15 seconds, and the cooldown is 250s
	


Tank Style
Passives: 
resistance 1, 
eating any food gives double saturation, 
all tools have twice their durability. 
Knockback is reduced by 10%, s
hields 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:
Passives:
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 heart 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 circle, lose their water (it extinguishes), and deals 2 armor durability points 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, it auto cobwebs all players and the cooldown is 230 seconds


Passive playstyle:
Passives:
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, lower all villager trades to 1, and gain triple exp, the stuns lasts 5 seconds, and the 1 emerald and triple exp gain lasts 20 seconds  the cooldown is 220


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, 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 (not if they clutch). Ability lasts 20 seconds but the cooldown is 300 seconds



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 is a playstyle echo shard) (custom event items i will make later)
		/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) (if java)
		/playstlye smpstart
expands the world border to a 2.5k to 2.5k border: irerolls every player who is online, 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.


	Non permission commands:
		/playstyleright 
 /playstyleleft
/info (opens a chest gui menu with 2 rows, (plays a sound effect when u open the gui and after u close it) (unicodes for the texture will be added later in config) (literally the guide from ssn2  of hangout) or this

/playstyle remove (name of the playstlye) (removed ur active ability from ur menu) (remove 1 or 2)
/trust add (player name) 
/trust remove (player name)
/trust list
/stats (shows how far you are into youre trial to reroll)
/playstyle menu
	open a 1 chest row menu

You are able to have 2 playstyles in ur menu/actionbar active, 
To activate them, you have to hotkey the specific core to the 2nd slot of the gui, and the second playstyle has to be hotswapped to the 2nd to last slot of the gui for it to activate

/playstyle inspect 
	Player

Playstyle
Trusts
Kills




Credit: Mysed_/Airies

Kodari AI
KodariAug 31 at 3:37 am 2
PlaystyleSMP
A Minecraft Skript plugin implementing a playstyle-based SMP system. Players are randomly assigned one of eight distinct playstyles (Aggro, Quickdropper, Drain, Passive, Tank, Coward, Annoying, Strategic) plus the Mythic Dragon Warrior. Each playstyle grants unique passive abilities, a powerful main ability with cooldowns, and specific trial achievements required to reroll. Players can equip up to two playstyles via a hotbar menu system using custom echo shard cores. Features a trust system, death mechanics that drop equipped playstyles, a Dragon Egg mythic item, particle trails, stats tracking, and extensive commands including /playstyle menu, /trust, /stats, and /playstyle smpstart which expands the world border and initiates a grace period.
Kodari can make mistakes. Review important code before using.
Files
playstyle_smp.sk
Code
1 960
playstyle_smp.sk
# Playstyle SMP
# Place in plugins/Skript/scripts/ and run: /sk reload playstyle_smp

options:
    menu-title: &8Playstyle Menu
    info-title: &8Playstyle Guide
    prefix: &5Playstyle &8»&r
    grace-minutes: 30

function ps_core(style: text) :: item:
    set {_item} to echo shard named "&b%{_style}% Core"
    if {_style} is "aggro":
        set custom model data of {_item} to 11001
    else if {_style} is "quickdropper":
        set custom model data of {_item} to 11002
    else if {_style} is "drain":
        set custom model data of {_item} to 11003
    else if {_style} is "passive":
        set custom model data of {_item} to 11004
    else if {_style} is "strategic":
        set custom model data of {_item} to 11005
    else if {_style} is "tank":
        set custom model data of {_item} to 11006
    else if {_style} is "coward":
        set custom model data of {_item} to 11007
    else if {_style} is "annoying":
        set custom model data of {_item} to 11008
    else if {_style} is "dragon warrior":
        set custom model data of {_item} to 11009
    return {_item}

function ps_trial_key(style: text) :: item:
    set {_item} to tripwire hook named "&d%{_style}% Trial Key"
    if {_style} is "aggro":
        set custom model data of {_item} to 12001
    else if {_style} is "quickdropper":
        set custom model data of {_item} to 12002
    else if {_style} is "drain":
        set custom model data of {_item} to 12003
    else if {_style} is "passive":
        set custom model data of {_item} to 12004
    else if {_style} is "strategic":
        set custom model data of {_item} to 12005
    else if {_style} is "tank":
        set custom model data of {_item} to 12006
    else if {_style} is "coward":
        set custom model data of {_item} to 12007
    else if {_style} is "annoying":
        set custom model data of {_item} to 12008
    else if {_style} is "dragon warrior":
        set custom model data of {_item} to 12009
    return {_item}

function ps_style_from_core(i: item) :: text:
    set {_model} to custom model data of {_i}
    if {_model} is 11001:
        return "aggro"
    if {_model} is 11002:
        return "quickdropper"
    if {_model} is 11003:
        return "drain"
    if {_model} is 11004:
        return "passive"
    if {_model} is 11005:
        return "strategic"
    if {_model} is 11006:
        return "tank"
    if {_model} is 11007:
        return "coward"
    if {_model} is 11008:
        return "annoying"
    if {_model} is 11009:
        return "dragon warrior"
    return ""

function ps_style_from_key(i: item) :: text:
    set {_model} to custom model data of {_i}
    if {_model} is 12001:
        return "aggro"
    if {_model} is 12002:
        return "quickdropper"
    if {_model} is 12003:
        return "drain"
    if {_model} is 12004:
        return "passive"
    if {_model} is 12005:
        return "strategic"
    if {_model} is 12006:
        return "tank"
    if {_model} is 12007:
        return "coward"
    if {_model} is 12008:
        return "annoying"
    if {_model} is 12009:
        return "dragon warrior"
    return ""

function ps_valid_style(style: text) :: boolean:
    if {_style} is "aggro":
        return true
    if {_style} is "quickdropper":
        return true
    if {_style} is "drain":
        return true
    if {_style} is "passive":
        return true
    if {_style} is "strategic":
        return true
    if {_style} is "tank":
        return true
    if {_style} is "coward":
        return true
    if {_style} is "annoying":
        return true
    if {_style} is "dragon warrior":
        return true
    return false

function ps_style_name(style: text) :: text:
    if {_style} is "dragon warrior":
        return "Dragon Warrior"
    set {_name} to {_style}
    replace all "quickdropper" in {_name} with "Quickdropper"
    replace all "aggro" in {_name} with "Aggro"
    replace all "drain" in {_name} with "Drain"
    replace all "passive" in {_name} with "Passive"
    replace all "strategic" in {_name} with "Strategic"
    replace all "tank" in {_name} with "Tank"
    replace all "coward" in {_name} with "Coward"
    replace all "annoying" in {_name} with "Annoying"
    return {_name}

function ps_trusted(p: player, target: player) :: boolean:
    if {_p} is {_target}:
        return true
    if {ps::trust::%uuid of {_p}%::%uuid of {_target}%} is set:
        return true
    return false

function ps_has(p: player, style: text) :: boolean:
    if {ps::style::%uuid of {_p}%::1} is {_style}:
        return true
    if {ps::style::%uuid of {_p}%::2} is {_style}:
        return true
    return false

function ps_add_style(p: player, style: text) :: boolean:
    if ps_has({_p}, {_style}) is true:
        return false
    if {ps::style::%uuid of {_p}%::1} is not set:
        set {ps::style::%uuid of {_p}%::1} to {_style}
        return true
    if {ps::style::%uuid of {_p}%::2} is not set:
        set {ps::style::%uuid of {_p}%::2} to {_style}
        return true
    return false

function ps_remove_style(p: player, style: text) :: boolean:
    if {ps::style::%uuid of {_p}%::1} is {_style}:
        delete {ps::style::%uuid of {_p}%::1}
        set {ps::style::%uuid of {_p}%::1} to {ps::style::%uuid of {_p}%::2}
        delete {ps::style::%uuid of {_p}%::2}
        return true
    if {ps::style::%uuid of {_p}%::2} is {_style}:
        delete {ps::style::%uuid of {_p}%::2}
        return true
    return false

function ps_random_style() :: text:
    set {_styles::*} to "aggro", "quickdropper", "drain", "passive", "strategic", "tank", "coward", "annoying", "dragon warrior"
    return random element out of {_styles::*}

function ps_reroll(p: player):
    delete {ps::style::%uuid of {_p}%::*}
    set {_style} to ps_random_style()
    set {ps::style::%uuid of {_p}%::1} to {_style}
    give ps_core({_style}) to {_p}
    send title "&5Playstyle Rerolled" with subtitle "&d%ps_style_name({_style})%" to {_p}
    play sound "ui.toast.challenge_complete" to {_p}
    play sound "entity.player.levelup" to {_p}
    send "{@prefix}&dYou received the &f%ps_style_name({_style})% &dplaystyle." to {_p}

function ps_assign_random(p: player):
    ps_reroll({_p})
    set {_p}'s food level to 20
    give 10 cooked beef to {_p}
    send title "&5Playstyle SMP has started!" with subtitle "&dYour playstyle has been selected." to {_p}

function ps_open_menu(p: player):
    set {_inv} to chest inventory with 1 row named "{@menu-title}"
    set {_empty} to gray stained glass pane named "&7Empty Slot"
    loop 9 times:
        set slot (loop-number - 1) of {_inv} to {_empty}
    if {ps::style::%uuid of {_p}%::1} is set:
        set slot 1 of {_inv} to ps_core({ps::style::%uuid of {_p}%::1})
    else:
        set slot 1 of {_inv} to lime stained glass pane named "&aHotkey first core here"
    if {ps::style::%uuid of {_p}%::2} is set:
        set slot 7 of {_inv} to ps_core({ps::style::%uuid of {_p}%::2})
    else: