skript-help

  • 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 community!

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

  1. skUnity Discord

    Discord Thread I didn't think I would need to ask here but..

    I know I should know this but how do you apply a potion effect for a {variable} amount of time? Posted by: 8x5. from the skUnity Discord. View the thread on skUnity Discord here
  2. skUnity Discord

    Discord Thread on target block change

    I want to make something where if the player is looking at a block it spawns an armorstand but when the player looks away at another block, it kills the previous armorstand and spawns a new one. I know this isnt a place to ask for skripts, I just want help with the start of it. I have looked all...
  3. skUnity Discord

    Discord Thread SkBee bug?

    Server version: 1.16.5 SkBee version: code: on damage: attacker is a player if hit is critical: send distance between {y1.%loop-player%} and {y2.%loop-player%} on every 2 tick: loop all players: set {y1.%loop-player%} to loop-player's y-coordinate wait 1...
  4. skUnity Discord

    Discord Thread How to execute console command but string Other ""

    sorry for not being literate Posted by: euaek from the skUnity Discord. View the thread on skUnity Discord here
  5. skUnity Discord

    Discord Thread Variable will not reset to 0

    I don't know why it won't work. When I type /survey write -991 it will successfully open question 1, when I answer question 1 it fails to open question 2 and instead tries to open question 21 even though there are only 4 questions. Next time I try question 1 opens and then it tries to open...
  6. skUnity Discord

    Discord Thread Item type of player's tool

    I'm trying to check the item type of an item with added attributes, such as "gold sword" from a sword that has been modified. How do I achieve this? Posted by: kristheghast297 from the skUnity Discord. View the thread on skUnity Discord here
  7. skUnity Discord

    Discord Thread Sell gui Help me

    it doesn't give me any error but it doesn't work can you help me Posted by: itami_x from the skUnity Discord. View the thread on skUnity Discord here
  8. skUnity Discord

    Discord Thread looping a list

    vb every tick: loop all players: loop {item::id::*}: if loop-player's held item is {item::type::%loop-value-2%}: set {damage::%uuid of loop-player-1%} to (5+{item::damage::%loop-value-2%}) send {item::type::%loop-value-2%} to loop-player...
  9. skUnity Discord

    Discord Thread how to make a variable for one player?

    I make a script for anti-bhop (jump with sprint) for which warnings are given, and should for 10 warnings to kick and warp. But no matter how I did not do (with . and :: ) is not done for one player. It counts for the whole server Code: `on jump: player is sprinting set...
  10. skUnity Discord

    Discord Thread how do i check how many diamonds a player has in there inventory?

    I want to make a /sell that opens a gui and when you click on the diamond it sells all you're diamonds but i dont know how to make it know how many diamonds the player has Posted by: veteo. from the skUnity Discord. View the thread on skUnity Discord here
  11. skUnity Discord

    Discord Thread slashing effect

    i wanna know how to make a slashing effect like this Posted by: watchduck from the skUnity Discord. View the thread on skUnity Discord here
  12. skUnity Discord

    Discord Thread Last victim

    So there is "Last attatcker" (last player that hit you) in skript but there isnt "Last victim" (Last player you hit). Anyone knows if it does exsists or how to create it? Posted by: snepzy69 from the skUnity Discord. View the thread on skUnity Discord here
  13. skUnity Discord

    Discord Thread if player's tool is skull of ("MHF_Melon" parsed as offline player): not working

    Im trying to detect if the player's tool is the melon head skull and I get no error but it just doesnt work at all, and I did this: if player's tool is skull of ("MHF_Melon" parsed as offline player): #do code else: send "not working" But it did do the code under it and it sent "not...
  14. skUnity Discord

    Discord Thread When a player changes hotbar slots

    Is there any way to check when a player changes, say, from slot 1 to slot 3? I want to play a sound when a player switches to a specific item. Let me know if this isn't possible Posted by: kristheghast297 from the skUnity Discord. View the thread on skUnity Discord here
  15. skUnity Discord

    Discord Thread Clientside Glowing for 1.20

    I want to make players glow clientside using Skript, but GlowingAPI is not updated, and when I send potion effect packets, it only does particles, not the glowing effect itself. Help anyone? Posted by: honkchamp from the skUnity Discord. View the thread on skUnity Discord here
  16. skUnity Discord

    Discord Thread java

    If i know java can i make a plugin or do i need to learn spigot api and what is spigot api Posted by: viccode from the skUnity Discord. View the thread on skUnity Discord here
  17. skUnity Discord

    Discord Thread right click event not working

    right clicking with this skript doesnt seem to work could anyone help? on right click: if lore of player's tool contains " &f&lVoid Speed &8(Right Click)": send "1" to player execute console command "/mythiclib statmod %player% ATTACK_SPEED 0.20" if...
  18. skUnity Discord

    Discord Thread Fireworks but in one. (Repost/Skript)

    So I have been trying to make this script go into one firework but I just can't seem to figure out how to. ? command /test11: trigger: launch firework flickering ball large coloured yellow and orange fading to red at location 96.500, 81.000, 91.500 with duration 1 launch...
  19. skUnity Discord

    Discord Thread need help with loop item flags

    basically my script replaces netherite swords with exactly same diamond swords but i hava difficulty with looping hidden flags of item and add it to item Posted by: mavik_ from the skUnity Discord. View the thread on skUnity Discord here
  20. skUnity Discord

    Discord Thread Is it possible to detect clicks on displays?

    I tried using the player's target entity, but it didn't work Posted by: demarky from the skUnity Discord. View the thread on skUnity Discord here