help code

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  1. R

    How to make it so I can activate right click with multiple items?

    The problem I'm having is when I right click with the hearts and revive beacon, if I am holding more than 1 of them it just doesn't give me a heart or send me the revive message. How do I make it so you can redeem hearts even if there are multiple of them and redeem revive beacons even if there...
  2. ArmadilloMike

    My script is not working

    My script is supposed to add a permission to a player but it is having errors here is the code i have: command /permissions <add|remove> <player> <permission>: permission: op permission message: "You must Be an OP to change permissions" aliases: perm usage: No sytex error...
  3. R

    how to cancel inventory drag

    first im korean sorry to my english is bad command /test: trigger: set {_a} to a chest inventory with 1 row named "just mapleeeee" set slot 8 of {_a} to an anvil named "let's mapleeeee" open {_a} to player # when player try to move chest inventory item make it cancel...
  4. M

    Can I have a quick hand with this code please?

    on place of torch: if any block within 5 meters of torch is spawner: wait 10 seconds set torch to stick
  5. VoiderYT

    Variables that don't reset on load

    I am trying to make a skript thingy that stores a variable (in my case, a list) but when I restart the server, it resets the variable. How would I avoid that? Here is an example (not my case but just a general idea): command /sethome: trigger: set {home} to location of player...
  6. Pumpkani

    "on tab complete:" no working

    on tab complete for "/pet": set {_completers::*} to "talk" and "action" loop {_completers::*}: add loop-value to complete This doesn't work, and returns " 'Can't understand this condition/effect: add loop-value to complete' Line: add loop-value to complete"
  7. T

    (Help) Defining Variable as a function

    Hello, im quite new to skript so im not sure of how to do this. This is my current code: variables: {Souls} = 1 {SoulDMGHP} = (2+{Souls}/10) {SoulTimer} = (2+{Souls}/25) However it doesnt understand the functions that i want to use to determine the variables.Is there a way to fix...
  8. V

    Server IP/web address

    Is it possible to somehow find the server's IP/web address with a script? And if so how, because I was trying to do it myself, but didn't got really far. I heard that it is possible, but I don't really know if thats true or not.
  9. R

    My scoreboard doesn't update

    Hi im working on a sell system. im working on Minecraft 1.20 and using SkBee, skript api, skrayfall and skript-guis. But on my scoreboard when you gain money it doesnt update. Code: On join: if {bal::%uuid of player%} is not set: set {bal::%uuid of player%} to 100 every 1...
  10. L

    I want to make a simple eggwars skript (more info below)

    I want to make a simple eggwars skript (no idea stealing) that works like this: When you type the command "/join eggwars" in chat you will be teleported to the world "eggwars" to the position 0 0 0, after the map have at least 2 players it will start a countdown from 30 to 0, after the countdown...
  11. Kowal9833

    Moving item from one list to another.

    I have some trouble with my skript. Items should be saved in "drops" list after death, and when the items despawn, they should be moved from "drops" list to "stuff" list. Items do save in "drops" list, but I have problems moving them to "stuff" list after items despawn. So I'm doing something...
  12. B

    Can i please have help with this code it says it cannot understand "loop all players" this is my code

    loop all players: if player's offhand tool is white stained glass named "&f&lInvisibility &7&lStone" with lore "&f&lHold In Offand To Be Granted The Power Of Invisibility": apply Invisibility 1 to player for 999 days else: remove Invisibility from the player command...
  13. TactonicYt

    cant parse after many tries it shows none as output

    set {_amount} to {_amountStr} * {_multiplier}
  14. S

    Custom Items not defined

    So in the Lifesteal-SMP-Plugin the "lives" (hearts) are red dye but with NBT data, in my /dupe script if I blacklist red dye it can still be duped, but if I add the actual ingame name "heart_item" the skript runs into an error. Same with the beacon "revive_beacon" and carrot on a stick...
  15. W

    custom fortune drops

    im making a boxs server on minehut and i dont know how to make a skript that makes it so the level of fortune gives one more drop so for example no fortune drops 1 gold (from gold ore) fortune 1 gives 2 gold and so on. So can somone please code that.
  16. M

    Solved How do i remove text above players?

    i have a skript that shows player health above players but i dont know how to remove the text with code, how can i do this? the skript: on join: while player is online: loop all players: set score "&c❤" below player to player's health for loop-player wait...
  17. M

    Solved Invalid amount or placement of brackets error in my broadcasts

    I keep getting the error "Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket." on lines 20, 23, 27, 31, 35 it was because i put a % sign in
  18. M

    My skript doesn't work

    Can anyone tell me why this does not work: {1_::%uuid of player%} is already defined " command /loot2 [<offline player>]: permission: admin.sk trigger: if {_1::%uuid of arg-1%} is not set: send "1" to arg-1 if {1_::%uuid of arg-1%} is not set...
  19. C

    Help with killing named entities

    Hi there! This is my first post here so apologies if I don't have the rules quite under my belt yet. I am making a kit in a 1.8.9 kitpvp server that summons named wolves with a bone, and I wanna make it so the wolves are killed (:<) when the player dies or has their inventory cleared (I have it...
  20. Circuit2006

    Death counter 1.18.2

    I am VERY new to this skripting stuff and I am trying to setup a basic Death counter, This is the code could anyone explain to me why it isn't working? variables: {%player%.deaths} = 0 {%player%.total_deaths} = 0 on join: broadcast "Welcome %player% to the server!" set...