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 comminuty!

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

  1. 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...
  2. I

    Help with inventory click

    Hello, I have this skript with gui for kits, but I can't get 'on inventory click' event to work... I don't get any errors when reloading the skript at all... It just doesn't do anything when I click an item... I kept on trying and i'm getting really pissed off now... command /kits: trigger...
  3. 5jgk

    "name" is not a location?

    So in my skript it is like buggin or smth cos it my skript is on break of stone: if player's inventory contains 1 cobblestone of mending called "&7Ston&8e Autocom&0pressors": if player's inventory contains 32 cobblestone: remove 32 cobblestone from player's inventory give player...
  4. Death

    Inventory locking

    So, I am pretty sure this has been an ongoing issue for many skripters. So, I'm going to get straight to the point. How do you lock the inventory slot? No, I am not talking about clicking the slot with your mouse. I mean. The dreaded SHIFT RIGHT CLICK. How do you stop people from shift right...
  5. cps77

    How to calculate total experience and show it on scoreboard

    I want to know how to show player's total experience on scoreboard like this: every 1 second: @loop all players: @@wipe loop-player's sidebar @@set name of sidebar of loop-player to "server" @@set score "total experience : (total xp of player)/(max xp in player's level)" in sidebar of...
  6. cps77

    How should I put player's total experience in the scoreboard?

    I want to know how to put player's total experience and level in the scoreboard like this: every 1 second: @loop all players: @@set score "your experience point : %{total.loop-player}%/%{max.loop-player}%" in sidebar of loop-player to 1 (%{max.loop-player}% means max amount of experience point...
  7. cps77

    I want to know Skript and skRayfall version that works properly in java 8

    After having some issues with java 21, my friend doesn't use it and only use java 8. And I found some version of skRayFall doesn't work in java 8. So I need newest Skript and skRayfall and other addons(skellet, skutilities, skQuery and any other addons I need for skripting.) that works well in...
  8. Death

    NBT DATA

    Hey guys! I'm trying to use NBT data to create custom texture packs since I've seen someone do it before but I have no dieea how to even start! Can one of you help me and give me an example? Thanks! - Death
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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?
  15. 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...
  16. 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...
  17. 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
  18. 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...
  19. 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. #...
  20. D

    How can i send message to player joined a world

    Please do someone know?