polyprix
๐Ÿ“Ž 1 file 6,083 chars
๐Ÿ“„
pasted-code-1781561564369.txt
txt 177 lines
โ–ถ
############################################################
# TWISTLABS CHAOS TWIST SYSTEM (Skript 1.21.11 + SkBee)
############################################################

options:
    twist-interval: 900 seconds
    bounty-duration: 180 seconds

############################################################
# GLOBAL VARIABLES
############################################################

# {twist.current} = active twist name
# {bounty.active}, {bounty.target}, {bounty.time}

############################################################
# STARTUP
############################################################

on load:
    set {twists::*} to "lifesteal", "flash_hulk", "one_heart", "robin_hood", "hunters_runners", "juggernaut"
    set {twist.current} to "none"
    broadcast "&b[TwistLabs] &fSystem loaded."

############################################################
# TWIST ROTATION LOOP
############################################################

every {@twist-interval}:
    execute console command "/twist.next"

command /twist.next:
    permission: op
    trigger:
        # clear previous effects
        loop all players:
            remove all potion effects from loop-player

        set {_t} to random element out of {twists::*}
        set {twist.current} to {_t}

        if {_t} is "lifesteal":
            broadcast "&c[Twist] Lifesteal Mode activated!"
            stop

        if {_t} is "flash_hulk":
            broadcast "&c[Twist] Flash vs Hulk!"
            set {_players::*} to all players
            loop {_players::*}:
                if random integer between 1 and 2 is 1:
                    apply speed 2 to loop-value for 9999 seconds
                else:
                    apply strength 2 to loop-value for 9999 seconds
            stop

        if {_t} is "one_heart":
            broadcast "&c[Twist] One Heart Mode!"
            loop all players:
                set health of loop-player to 2
            stop

        if {_t} is "robin_hood":
            broadcast "&c[Twist] Robin Hood!"
            set {_players::*} to all players
            set {_half} to size of {_players::*} / 2

            loop {_players::*}:
                if loop-index <= {_half}:
                    give bow to loop-value
                    apply speed 1 to loop-value for 9999 seconds
                else:
                    give iron sword to loop-value
                    apply resistance 1 to loop-value for 9999 seconds
            stop

        if {_t} is "hunters_runners":
            broadcast "&c[Twist] Hunters vs Runners!"
            set {_players::*} to all players

            loop {_players::*}:
                remove all potion effects from loop-value

            set {_count} to size of {_players::*}
            set {_hunters} to round({_count} * 0.25)

            loop {_hunters} times:
                set {_p} to random element out of {_players::*}
                give compass to {_p}
                apply strength 1 to {_p} for 9999 seconds
                remove {_p} from {_players::*}

            loop {_players::*}:
                apply speed 1 to loop-value for 9999 seconds
            stop

        if {_t} is "juggernaut":
            broadcast "&c[Twist] Juggernaut!"
            set {_p} to random player out of all players
            if {_p} is set:
                apply strength 3 to {_p} for 9999 seconds
                apply resistance 3 to {_p} for 9999 seconds
                apply glowing to {_p} for 9999 seconds
                set {juggernaut} to {_p}
            stop

############################################################
# LIFESTEAL SYSTEM
############################################################

on death of player:
    if {twist.current} is "lifesteal":
        attacker is a player
        if attacker is set:
            add 2 to health of attacker

    set gamemode of victim to spectator

############################################################
# BOUNTY SYSTEM (SKBEE BOSSBAR)
############################################################

command /bounty:
    permission: op
    trigger:
        if {bounty.active} is true:
            send "&cBounty already running!" to player
            stop

        set {bounty.target} to random player out of all players
        if {bounty.target} is not set:
            send "&cNo players online." to player
            stop

        set {bounty.active} to true
        set {bounty.time} to {@bounty-duration}

        # Create bossbar (SkBee)
        create bossbar "bountybar" with title "&cBOUNTY: %{bounty.target}%" and color red and style solid
        show bossbar "bountybar" to all players

        broadcast "&c[BOUNTY] &fTarget: &e%{bounty.target}%"

        while {bounty.active} is true:
            wait 1 second
            remove 1 from {bounty.time}

            set {_progress} to {bounty.time} / {@bounty-duration}
            set bossbar progress of "bountybar" to {_progress}

            if {bounty.time} <= 0:
                delete bossbar "bountybar"
                broadcast "&a[BOUNTY] Target survived!"
                delete {bounty.*}
                stop

############################################################
# BOUNTY DEATH CHECK
############################################################

on death of player:
    if {bounty.active} is true:
        if victim is {bounty.target}:
            delete bossbar "bountybar"
            set {bounty.active} to false
            broadcast "&c[BOUNTY] Target eliminated!"
            delete {bounty.*}

            if attacker is a player:
                give diamond block to attacker
                send "&aYou claimed the bounty!" to attacker

############################################################
# SAFETY: KEEP INVENTORY ALWAYS ON
############################################################

on respawn:
    set keep inventory of player to true
Kodari AI
KodariJun 15 at 10:15 pm 19

Iโ€™ll create a Minecraft server twist/chaos mode rotation system with multiple PvP game modes and a bounty system.

ChaosTwistSystem
A dynamic PvP twist system that automatically rotates between chaos game modes every 15 minutes. Features six unique twists: Lifesteal (gain health from kills), Flash vs Hulk (speed vs strength teams), One Heart challenge, Robin Hood (archers vs warriors), Hunters vs Runners, and Juggernaut mode. Includes an integrated bounty system with SkBee bossbar tracking, automatic mode rotation, and spectator mode for eliminated players.

Setup Instructions:

  1. Install Required Plugins:

    • Skript 2.6+ (compatible with MC 1.21.11)

    • SkBee addon (for bossbar support)

  2. Installation:

    • Place chaos-twist-system.sk in plugins/Skript/scripts/

    • Run /sk reload chaos-twist-system

  3. Permissions:

    • twist.admin - Access to admin commands

    • op - Required for /twist.next and /bounty

  4. Commands:

    • /twist.next - Manually trigger next twist rotation

    • /twist.current - Check current twist mode

    • /twist.stop - Clear all active twists

    • /bounty - Start a bounty hunt

    • /bounty.cancel - Cancel active bounty

  5. Configuration:

    • Edit twist-interval option (default: 900 seconds = 15 minutes)

    • Edit bounty-duration option (default: 180 seconds = 3 minutes)

Features:

  • Automatic twist rotation every 15 minutes

  • Six unique chaos modes with different mechanics

  • Bounty system with visual bossbar countdown

  • Keep inventory enabled on death

  • Spectator mode for eliminated players

  • Admin controls for manual mode switching

polyprix
๐Ÿ“Ž 1 file 2,377 chars
๐Ÿ“„
pasted-code-1781561778899.txt
txt 89 lines
โ–ถ
Add the following 5 additional twists to the existing TwistLabs Skript.

GENERAL RULES
- Only one twist active at a time.
- New twists must integrate into the existing twist rotation system.
- Use ONLY Skript + SkBee compatible syntax.
- Clear all effects from previous twists before applying a new one.
- Avoid unsupported Skript features.
- Include comments for each twist.
- Keep code clean and organized.

NEW TWISTS

1. HOT POTATO
Twist name: hot_potato

When activated:
- Select a random online player as the Potato Holder.
- Give them Glowing and Speed I.
- Every 30 seconds:
    - If they are still the holder, deal 12 damage (6 hearts).
    - Choose a new random online player as the holder.
    - Remove effects from the old holder.
    - Apply effects to the new holder.
- If the holder dies, immediately select a new holder.
- Stop all Hot Potato tasks when the twist changes.

2. DOUBLE DAMAGE
Twist name: double_damage

When activated:
- All damage dealt by players is doubled.
- All damage received by players is doubled.
- Use damage event modification.
- Only active while this twist is selected.

3. MARKSMAN
Twist name: marksman

When activated:
- Give every player:
    - Bow
    - 64 Arrows
- Apply Speed I.
- Optional: Give Infinity-enchanted bow if easier.
- No additional mechanics required.

4. MAGNET MODE
Twist name: magnet_mode

When activated:
- Every 15 seconds:
    - Find the nearest player to each player.
    - Pull them toward that player using velocity.
- Should create encounters without launching players excessively.
- Stop all Magnet tasks when the twist changes.

5. KING OF THE SERVER
Twist name: king

When activated:
- Select one random player as King.
- Store them in a variable.

King receives:
- Resistance II
- Speed I
- Glowing

All other players:
- Receive a compass.

Every 5 seconds:
- Update compasses to point toward the King's location.

If King dies:
- Killer becomes the new King.
- Transfer effects immediately.
- Re-distribute compasses if needed.

If no killer exists:
- Random online player becomes King.

ADDITIONAL REQUIREMENTS
- Add all twist names to the twist rotation list.
- Ensure loops and repeating tasks stop when the active twist changes.
- Use safe null checks before selecting random players.
- Maintain compatibility with Minecraft 1.21.11.
- Return only valid Skript code additions and modifications.
Kodari AI
KodariJun 15 at 10:22 pm 46

Iโ€™ll add the 5 new twists to the existing chaos twist system with proper integration.

Now Iโ€™ll add the 5 new twists to the existing system.

Successfully added 5 new twists to the Chaos Twist System:

  1. Hot Potato - Random player becomes the holder with glowing + speed. Every 30 seconds they take 6 hearts damage and it transfers to someone new. If holder dies, instantly transfers.

  2. Double Damage - All damage in the game is doubled (dealt and received).

  3. Marksman - Everyone gets a bow, 64 arrows, and Speed I for archer combat.

  4. Magnet Mode - Every 15 seconds, pulls each player toward their nearest neighbor using velocity calculations.

  5. King of the Server - One random player becomes king with Resistance II, Speed I, and Glowing. Others get compasses that update every 5 seconds to point at the king. When king dies, killer becomes new king (or random player if no killer).

What was changed:

  • Added twist names to rotation pool (now 11 total twists)

  • Integrated all 5 twists into the existing /twist.next command

  • Added death event handlers for Hot Potato and King crown transfers

  • Added damage event for Double Damage multiplier

  • Updated cleanup commands to clear new variables

  • All repeating tasks properly stop when twist changes

Usage:

  • Twists rotate automatically every 15 minutes

  • Use /twist.next to manually trigger next random twist

  • All twists clear previous effects before activating

  • Safe null checks prevent crashes when players leave

polyprix
๐Ÿ“Ž 1 file 1,201 chars
๐Ÿ“„
pasted-code-1781562239293.txt
txt 30 lines
โ–ถ
Update the existing Minecraft Skript to fully rebrand the server name from "TwistLabs" to "Twistex".

REQUIREMENTS
- Replace every visible message, broadcast, title, bossbar name, and system message that references the old server name with "Twistex".
- Update any internal comments that mention the old server name.
- Ensure consistency across all scripts and added twist systems.
- Do NOT change gameplay mechanics, logic, or features.
- Do NOT rename variables unless they directly contain the old server name text.
- Keep all Skript + SkBee functionality intact and compatible with Minecraft 1.21.11.

SPECIFIC CHANGES
1. Startup messages:
   - Any "TwistLabs system loaded" โ†’ "Twistex system loaded"

2. Broadcasts:
   - Any messages like "[TwistLabs]" โ†’ "[Twistex]"

3. Bounty system:
   - Bossbar titles should include "Twistex" branding if a server label is present
   - Example: "&cTWISTEX BOUNTY: "

4. Twist announcements:
   - All twist activation broadcasts should prefix with "[Twistex]" instead of "[Twist]"

5. Commands:
   - Any command feedback messages should use Twistex branding where applicable

6. Comments:
   - Replace "TwistLabs chaos system" โ†’ "Twistex chaos system"
Kodari AI
KodariJun 15 at 10:26 pm 21
polyprix

how do i start the system?

Kodari can make mistakes. Review important code before using.
Files
chaos-twist-system.sk
Code
1 394
chaos-twist-system.sk
############################################################
# TWISTLABS CHAOS TWIST SYSTEM (Skript 1.21.11 + SkBee)
############################################################

options:
    twist-interval: 900 seconds
    bounty-duration: 180 seconds

############################################################
# GLOBAL VARIABLES
############################################################

# {twist.current} = active twist name
# {bounty.active}, {bounty.target}, {bounty.time}
# {juggernaut} = current juggernaut player
# {hotpotato.holder} = current hot potato holder
# {king.current} = current king player

############################################################
# STARTUP
############################################################

on load:
    set {twists::*} to "lifesteal", "flash_hulk", "one_heart", "robin_hood", "hunters_runners", "juggernaut", "hot_potato", "double_damage", "marksman", "magnet_mode", "king"
    set {twist.current} to "none"
    execute console command "/gamerule keepInventory true"
    broadcast "&b[TwistLabs] &fChaos Twist System loaded."

############################################################
# TWIST ROTATION LOOP
############################################################

every {@twist-interval}:
    execute console command "/twist.next"

command /twist.next:
    permission: op
    trigger:
        # Clear previous effects
        loop all players:
            remove all potion effects from loop-player
        
        delete {juggernaut}
        delete {hotpotato.holder}
        delete {king.current}

        set {_t} to random element out of {twists::*}
        set {twist.current} to {_t}

        if {_t} is "lifesteal":
            broadcast "&c[Twist] &fLifesteal Mode activated! Kill players to gain health."
            stop

        if {_t} is "flash_hulk":
            broadcast "&c[Twist] &fFlash vs Hulk! Speed runners vs strength tanks."
            set {_players::*} to all players
            loop {_players::*}:
                if random integer between 1 and 2 is 1:
                    apply speed 2 to loop-value for 9999 seconds
                    send "&eYou are FLASH (Speed)" to loop-value
                else:
                    apply strength 2 to loop-value for 9999 seconds
                    send "&aYou are HULK (Strength)" to loop-value
            stop

        if {_t} is "one_heart":
            broadcast "&c[Twist] &fOne Heart Mode! Everyone reduced to 1 heart."
            loop all players:
                set health of loop-player to 2
            stop

        if {_t} is "robin_hood":
            broadcast "&c[Twist] &fRobin Hood! Archers vs Warriors."
            set {_players::*} to all players
            set {_half} to size of {_players::*} / 2

            loop {_players::*}:
                if loop-index <= {_half}:
                    give bow to loop-value
                    give 64 arrows to loop-value
                    apply speed 1 to loop-value for 9999 seconds
                    send "&6You are an ARCHER" to loop-value
                else:
                    give iron sword to loop-value
                    apply resistance 1 to loop-value for 9999 seconds
                    send "&7You are a WARRIOR" to loop-value
            stop

        if {_t} is "hunters_runners":
            broadcast "&c[Twist] &fHunters vs Runners! 25%% become hunters."
            set {_players::*} to all players

            loop {_players::*}:
                remove all potion effects from loop-value

            set {_count} to size of {_players::*}
            set {_hunters} to round({_count} * 0.25)
            if {_hunters} < 1:
                set {_hunters} to 1

            loop {_hunters} times:
                set {_p} to random element out of {_players::*}
                give compass to {_p}
                apply strength 1 to {_p} for 9999 seconds
                send "&cYou are a HUNTER" to {_p}
                remove {_p} from {_players::*}

            loop {_players::*}:
                apply speed 1 to loop-value for 9999 seconds
                send "&aYou are a RUNNER" to loop-value
            stop

        if {_t} is "juggernaut":
            broadcast "&c[Twist] &fJuggernaut! One player becomes unstoppable."
            set {_p} to random player out of all players
            if {_p} is set:
                apply strength 3 to {_p} for 9999 seconds
                apply resistance 3 to {_p} for 9999 seconds
                apply glowing to {_p} for 9999 seconds
                set {juggernaut} to {_p}
                broadcast "&c%{_p}% &fis the JUGGERNAUT!"
            stop

        ############################################################
        # HOT POTATO TWIST
        ############################################################
        if {_t} is "hot_potato":
            broadcast "&c[Twist] &fHot Potato! Pass it or take damage!"
            set {_p} to random player out of all players
            if {_p} is set:
                set {hotpotato.holder} to {_p}
                apply glowing to {_p} for 9999 seconds
                apply speed 1 to {_p} for 9999 seconds
                broadcast "&e%{_p}% &fis the Potato Holder!"
            
            # Hot potato timer loop
            while {twist.current} is "hot_potato":
                wait 30 seconds
                if {twist.current} is not "hot_potato":
                    stop
                
                # Damage current holder
                if {hotpotato.holder} is set:
                    if {hotpotato.holder} is online:
                        damage {hotpotato.holder} by 12
                        send "&c&lOUCH! The potato burned you!" to {hotpotato.holder}
                
                # Select new holder
                set {_old} to {hotpotato.holder}
                set {_newHolder} to random player out of all players
                if {_newHolder} is set:
                    set {hotpotato.holder} to {_newHolder}
                    
                    # Clear old effects
                    if {_old} is online:
                        remove glowing from {_old}
                        remove speed from {_old}
                    
                    # Apply new effects
                    apply glowing to {_newHolder} for 9999 seconds
                    apply speed 1 to {_newHolder} for 9999 seconds
                    broadcast "&e%{_newHolder}% &fis now the Potato Holder!"
            stop

        ############################################################
        # DOUBLE DAMAGE TWIST
        ############################################################
        if {_t} is "double_damage":
            broadcast "&c[Twist] &fDouble Damage! All damage is doubled!"
            stop

        ############################################################
        # MARKSMAN TWIST
        ############################################################
        if {_t} is "marksman":
            broadcast "&c[Twist] &fMarksman Mode! Bow combat only."
            loop all players:
                give bow to loop-player
                give 64 arrows to loop-player
                apply speed 1 to loop-player for 9999 seconds
                send "&6You received a bow and arrows!" to loop-player
            stop

        ############################################################
        # MAGNET MODE TWIST
        ############################################################
        if {_t} is "magnet_mode":
            broadcast "&c[Twist] &fMagnet Mode! Players are pulled together!"
            
            # Magnet pull loop
            while {twist.current} is "magnet_mode":
                wait 15 seconds
                if {twist.current} is not "magnet_mode":
                    stop
                
                loop all players:
                    set {_p1} to loop-player
                    set {_nearest} to null
                    set {_minDist} to 999999