Jimbo685

[23:55:57 INFO]: [Skript] Reloading redteam.sk... [23:55:57 INFO]: Line 9: (redteam.sk) [23:55:57 INFO]: a slot can't be set to 'leather helmet named "&cRed Helmet" with color red' because the latter is neither an item type nor an item stack [23:55:57 INFO]:

Line: set player's helmet to leather helmet named "&cRed Helmet" with color red [23:55:57 INFO]: [23:55:57 INFO]: Line 10: (redteam.sk) [23:55:57 INFO]: a slot can't be set to 'leather chestplate named "&cRed Chestplate" with color red' because the latter is neither an item type nor an item stack [23:55:57 INFO]:

Line: set player's chestplate to leather chestplate named "&cRed Chestplate" with color red [23:55:57 INFO]: [23:55:57 INFO]: Line 11: (redteam.sk) [23:55:57 INFO]: a slot can't be set to 'leather leggings named "&cRed Leggings" with color red' because the latter is neither an item type nor an item stack [23:55:57 INFO]:

Line: set player's leggings to leather leggings named "&cRed Leggings" with color red [23:55:57 INFO]: [23:55:57 INFO]: Line 12: (redteam.sk) [23:55:57 INFO]: a slot can't be set to 'leather boots named "&cRed Boots" with color red' because the latter is neither an item type nor an item stack [23:55:57 INFO]:

Line: set player's boots to leather boots named "&cRed Boots" with color red [23:55:57 INFO]: [23:55:57 INFO]:

Encountered 4 errors while reloading redteam.sk! (27ms)

📎 1 file 1,031 chars
📄
pasted-code-1782604701817.txt
txt 21 lines
▶
# Team Pressure Plates for Tug of War

on step on stone pressure plate:
    # RED TEAM PLATES
    if floor(player's x-coordinate) is -93:
        if player's y-coordinate is 21:
            set {team::%player's uuid%} to "red"
            send "&cYou joined the &lRED&r&c team!" to player
            set player's helmet to leather helmet named "&cRed Helmet" with color red
            set player's chestplate to leather chestplate named "&cRed Chestplate" with color red
            set player's leggings to leather leggings named "&cRed Leggings" with color red
            set player's boots to leather boots named "&cRed Boots" with color red

on damage:
    if attacker is a player:
        if victim is a player:
            if {team::%attacker's uuid%} is set:
                if {team::%victim's uuid%} is set:
                    if {team::%attacker's uuid%} is {team::%victim's uuid%}:
                        cancel event
                        send "&cYou can't hit your own teammate!" to attacker
Kodari AI
KodariJun 28 at 12:01 am 1

The errors are because Skript can’t parse leather helmet named "..." with color red as a direct slot value. The fix is to build colored items in a variable first, then apply them.

TeamPressurePlates
A team assignment system for Tug of War using pressure plates. Players step on color-coded plates to join Red or Blue teams, receive colored leather armor, and enable friendly fire protection. Coordinates check which plate was stepped on for team assignment.

What changed:

  • Built each armor piece in a variable (set {_h} to leather helmet named "..."), then set its color separately (set color of {_h} to red), then applied it — Skript can’t do with color inline in a slot assignment.

  • Added Blue team plates (x=-89 as an example — adjust coordinates to match your arena).

  • Cleaned up team data on quit.

  • Added a configurable prefix option.

Install:

  1. Save as redteam.sk in plugins/Skript/scripts/

  2. Run /sk reload redteam

  3. Adjust the x-coordinates and y-coordinates to match your actual pressure plate positions

Jimbo685
📎 1 file 1,192 chars
📄
pasted-code-1782604931038.txt
txt 25 lines
▶
# Team Pressure Plates for Tug of War

on step on stone pressure plate:
    # RED TEAM PLATES
    if floor(player's x-coordinate) is -93:
        if player's y-coordinate is 21:
            set {team::%player's uuid%} to "red"
            send "&cYou joined the &lRED&r&c team!" to player
            set {_helmet} to leather helmet named "&cRed Helmet" with color red
            set {_chest} to leather chestplate named "&cRed Chestplate" with color red
            set {_legs} to leather leggings named "&cRed Leggings" with color red
            set {_boots} to leather boots named "&cRed Boots" with color red
            set player's helmet to {_helmet}
            set player's chestplate to {_chestplate}
            set player's leggings to {_leggings}
            set player's boots to {_boots}

on damage:
    if attacker is a player:
        if victim is a player:
            if {team::%attacker's uuid%} is set:
                if {team::%victim's uuid%} is set:
                    if {team::%attacker's uuid%} is {team::%victim's uuid%}:
                        cancel event
                        send "&cYou can't hit your own teammate!" to attacker
Kodari AI
KodariJun 28 at 12:04 am 1

Two problems:

  1. with color red doesn’t parse inline like that — need to set color of {_item} to red as a separate effect.

  2. Variable name mismatch: you set {_chest} and {_legs} but referenced {_chestplate} and {_leggings}.

Fixed version — replace your file content with:

Delete the old pasted file and save this as redteam.sk, then /sk reload redteam.

Jimbo685

the armor is not red and also i have to stand on the pressure plate i just want u to step on it and it gives u it

Kodari AI
KodariJun 28 at 12:10 am 1

Looking at your file, the item creation still has with color red inline (which doesn’t work), plus variable name typos. Here’s the clean fix:

Changes:

  • Removed with color red — Skript can’t do that inline. Now creates the item first, then set color of {_item} to red separately.

  • Fixed variable names: {_h}, {_c}, {_l}, {_b} — no more typos between {_chest} and {_chestplate}.

  • on step on stone pressure plate already fires on step — no need to “stand” on it. Step once and you get the armor.

  • Added on quit: cleanup so team data doesn’t leak.

  • Added a prefix option for cleaner messages.

Reload with /sk reload redteam.

Jimbo685

stone and the cords for the red team is -92.659 21 -247.485 and -92.463 21 -246.363 and -92.485 21 -245.296 and -92.470 21 -244.439 here are all the pressure plate cords for the red team

Kodari AI
KodariJun 28 at 12:15 am 1

Got it. The floor of those coordinates gives blocks at z = -248, -247, -246, -245 (all x = -93, y = 21). I’ll update the condition to check z-range.

That patch has bad syntax. Let me fix it properly

That put the condition in the wrong place. Let me fix the whole trigger properly:

Reload with /sk reload redteam. Now step on any of those 4 pressure plates and you’ll get red armor instantly.

Jimbo685

[00:16:27 INFO]: [Skript] Reloading redteam.sk... [00:16:28 INFO]: Line 10: (redteam.sk) [00:16:28 INFO]:

The expression '(244 and the player)' returns the following types that do not have the Z property: integer and player [00:16:28 INFO]:

Line: if player's z-coordinate < -244 and player's z-coordinate > -248: [00:16:28 INFO]: [00:16:28 INFO]:

Encountered 1 error while reloading redteam.sk! (218ms)

Kodari AI
KodariJun 28 at 12:18 am 1

The parser is grouping the negative signs with and. Simpler fix — use between:

Let me read the file first to get exact content.

Now patch:

Reload with /sk reload redteam. The z-coordinates -248 to -245 cover all 4 of your pressure plates. Step once and you’ll get full red leather armor instantly.

Jimbo685

its still not working? when i step on the stone pressuure plate

Kodari AI
KodariJun 28 at 12:22 am 1
Kodari can make mistakes. Review important code before using.
Files
redteam.sk
Code
1 36
redteam.sk
# Team Pressure Plates for Tug of War

options:
    prefix: &6[ToW]&r

on step on stone pressure plate:
    # RED TEAM PLATES (blocks at x=-93, z=-248 to -245, y=21)
    if floor(player's x-coordinate) is -93:
        if player's y-coordinate is 21:
            if floor(player's z-coordinate) is between -248 and -245:
            set {team::%player's uuid%} to "red"
            send "{@prefix} &cYou joined the &lRED&r&c team!" to player
            set {_h} to leather helmet named "&cRed Helmet"
            set color of {_h} to red
            set {_c} to leather chestplate named "&cRed Chestplate"
            set color of {_c} to red
            set {_l} to leather leggings named "&cRed Leggings"
            set color of {_l} to red
            set {_b} to leather boots named "&cRed Boots"
            set color of {_b} to red
            set player's helmet to {_h}
            set player's chestplate to {_c}
            set player's leggings to {_l}
            set player's boots to {_b}

on damage:
    if attacker is a player:
        if victim is a player:
            if {team::%attacker's uuid%} is set:
                if {team::%victim's uuid%} is set:
                    if {team::%attacker's uuid%} is {team::%victim's uuid%}:
                        cancel event
                        send "{@prefix} &cYou can't hit your own teammate!" to attacker

on quit:
    delete {team::%player's uuid%}