skript

  • 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. I

    Solved How can you give a player a custom splash potion with skript?

    im trying to create a skript that gives you a splash potion of instant healing, but each time i try it doesnt work, heres the skript give splash potion of instant healing with all flags hidden named "&7ʜᴇᴀʟɪɴɢ ᴘᴏᴛɪᴏɴ &6ᴄᴏɴsᴜᴍᴀʙʟᴇ <##F200FF>ᴍᴇᴅɪᴄ" with lore "&9ɪɴsᴛᴀɴᴛ ʜᴇᴀʟɪɴɢ <##7273FF>2" to...
  2. D

    How do I add indefinite scaling?

    So basically, I want to make a variable {extra} a number between 0 and the amount of levels a player/100 has, like this: Level 0-100- between 0 and 1 100-200- between 0 and 2 200-300- between 0 and 3 and so on, with a 5% chance of even activating, or a 5% chance for it to be not 0, and equal...
  3. Rapid

    Clear inv on spawn/join

    I have a PVP server. In my server I wanna do like if any player go to spawn his inv got clear. I am using advanced spawn plugin. Is there anything if any player do /spawn there will be some commands executed. Note : I wanna only create that if a player is in another world and do /spawn he will...
  4. D

    How can i make Tornado attack?

    Just How can i make skript, Where if u right click with stick named “&7Tornado Attack” it will send An Tornado attack - It will create a Particle What will create a tornado and it will move for length 50 in front of The player and with cooldown 2 minutes and it will damage entities in range 10...
  5. E

    How can I make the tab list still show the player name but not in italic while in spectator

    I have code that hides the player, but I wish for it to still show the playername. Also I am not using any addons. Heres what I have: on gamemode change: if player's gamemode is spectator: hide player from players if player's gamemode is not spectator: reveal player from...
  6. ConstiBuild

    I need help with safe inventory

    Hello guys, I have a problem with my script. I want it to load a saved inventory, but it only loads the first slot. Why is that?
  7. 5jgk

    Skript Indentation error

    So im trying to write an inventory full script but it works when i have no sound play when your inventory is full. But it doesnt when i play a sound when your inventory is full. My code is " on break: if player's inventory can't hold 1 diamond sword: send title "&c&lInventory full" with...
  8. V

    Solved issue with disabling a command

    So I want to make a skript where if {lobbyspawn::%player's uuid%} is true you can not execute the command /spawn and it sends an action bar that says "&cYou need to unlock a world first" and if {lobbyspawn::%player's uuid%} is false you can use /spawn, I have tried many ways but it doesn't seem...
  9. Tubl

    Solved Looping blocks above y 60

    I've been trying to make some code and I can't seem to get this to work. loop blocks in radius 4 around player: if y location of loop-block is more than 60: set loop-block to air
  10. SirMario

    Trying to create a script that gives the player a reward every 24 hours

    Hello, I'm having difficulty creating a script for my minecraft server. I want a script that gives players a reward every 24 hours if they log on that day. So basically a daily reward for anyone that logs in that day and it has a 24 hour cooldown after they've received the reward. This is the...
  11. JarBinks

    Solved Mining skript not working

    Hi, I have a skript that when certain pickaxes mine blocks, it puts the blocks in the players inventories. It works for all the pickaxes execpt for the coal pick, iron pick, and the diamond pick. Also, how do I make it so no other blocks will drop, only if it gets mined by the correct picaxe. #...
  12. D

    How can i send message to player joined a world

    Please do someone know?
  13. Spygain

    Refill chest, barel, shulker

    Minecraft version: 1.19.4 Skript version: 2..7.3 Addons used: None Skript type : Skript refill chest Skript description : I recently took over my server and I needed to take a skript in hand, it's a chest refill skript, as the name suggests ^^. However, the things I'd like to see have...
  14. L

    Afk Rewards

    I need help with my skript I am trying to make a skript that gives players a token every 3 minutes if they do /afk but it's giving everyone the tokens and I can't figure out why This Is The Skript: command /afk: trigger: send "&2You Are Now Afk" to player set {afk::%player%}...
  15. BOOO

    Collisions between Minecraft mod server scripts.

    Hello,I'm getting ready to run a modded Minecraft server, but I've run into a sudden issue. While the scripts on the modded server used to recognize mod items without a problem, I'm now encountering an error in Bukkit. I'll attach a picture. The script version is up-to-date, and even when I...
  16. R

    Format Slot

    So I want to make a Format gui with on and off but there is always this error message "end crystal named "&a&lTest" is not an nbt compound" Can somebody fix that? function uGUI(p: player): set {_p}'s metadata tag "uGUI" to chest inventory with 5 rows named "TEST" set slot 30 of {_p}'s...
  17. X

    auto compressor please help. (i made the compressor just need help making it auto)

    command /compress: trigger: if player's inventory contains 48 cobblestone: remove 48 cobblestone from player's inventory give player shiny stone named "&7&lCompressed Cobblestone" execute player...
  18. C

    This error is thrown Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket.

    Here is the code (this is only the part for issuing nbt): set {stellrap} to iron sword add nbt compound from "{AttributeModifiers:[{Amount:-2.1d,AttributeName:""minecraft:generic.attack_speed"",Name:""Attack...
  19. PotatoSlayer56

    Attributes on items

    I was just wondering why this doesn't throw an error but it doesn't work when executed set {_attackBonus} to line 3 of lore of {_forgegem} set line 1 of lore of {_forgesword} to "&cAttack: %{_attackBonus}%" set {_intAttackBonus} to {_attackBonus} parsed as number set {_forgesword}'s attack...
  20. ctrlcheeb

    [SOLVED] Global Variable in skript

    EDIT: Dumb mistake I didnt notice the _ in the variable name Hi, I was just making a simple script for my server where people can cash in tokens earned throughout for items. I had one gui which when interacted with would set the {_cost} variable to the price. Then if they put the correct amount...