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. Z

    How do I make an if variable is skript?

    I'm new to skript and trying to make a basic plugin to learn, I'm trying to make it so that it detects if a variable is a certain value. I've done it like this: command selectbuff: if "{%player's uuid%.gotbuff}" is set to "Selected": stop else: my code blah blah blah But...
  2. PixelCraft_I_D_K

    Block's UUID in a variable

    Hi there! I was just wondering how you'd put a block's UUID inside a variable. I'm trying to give the block data (a variable) when right clicked on by a certain item. I have to use %block's uuid%, but that's not working. If I used %player's uuid% that wouldn't work either, since only admins are...
  3. 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...
  4. L

    Right click on a block while holding food

    I need help with a script, i am making a prison server and a part of it includes working in a kitchen. There i want a player to wash a poisonous potato in a sink. So he needs to right click with that potato on a tripwire and it will give him a normal potato. I have tried things like: on eat...
  5. Acidic

    Cooldown

    Hey there, I am looking for some help with my skript for cooldowns. on right click: if player is holding gold ingot: set {_c} to difference between {cd::%player's uuid%} and now {_c} < 10 seconds: send "&cWait %{_c}% seconds before using again" to player...
  6. Fusezion

    Addon SkHttp 1.5

    SkHttp You need Skript 2.7.0 and up to use. This addon is just a random addon I made to support/add http/web related things. Either message me on skUnity or join my Discord (I am more active on discord) For any support or suggestions, join my Discord here! If you are instead looking for...
  7. D

    block break skript

    Catergory Skript Help Spigot/Skript Version: Paper 1.20.4, Latest version of Skript What I want: I need a script that makes blocks in a specified region (named "blockbreak") instantly break and set to air as soon as a player starts mining them, without dropping any items. When I'd like it by: As...
  8. D

    Slice attack

    Hello, i tryed to make a Skript, when on attack it will shoot (Look at the Picture) and it will damage the Player of 2.5 HP (Armor or Protection will not help to get less damage) and if it hit an entity, it will damage it, but it will stil go trought them with Range of 10 blocks and no Cooldown...
  9. Logy

    Minecraft Team System

    Hey there! I am making an event and I need help setting up a simple command called /teamassign where you can assign players to a team, the command should look something like this: "/team assign <team> <player>" and then it broadcasts something like "(Player) has joined team (team name)". The...
  10. forfr

    need an auction house skript

    money var: {money::%player's uuid%} would love if it came with a sorting system :)
  11. ponduck

    How do i fix this?

    I'm new to skript and i want to make a freeze skript, this is what ive come up with: command /freeze <player>: permission: op permission message: You &4&ldon't &rhave the permissions to use this! trigger: if arg-1 is not set: set player's walk speed to 0...
  12. A

    Disabling tablist

    I have been trying to create a server where you can't tell when players are online. But I can't seem to work out how to remove all player's from the tab list. It is supposed to be based off of the Minecraft series called "Naked And Afraid" or "No Armor Hardcore" I am using 1.20.6 Skript. Thanks.
  13. K

    Hello! There was a problem with SmithItemEvent :(

    I need to make sure that the player's time is checked and if it is less than N hours, then it is executed like this (this wrong)
  14. PixelCraft_I_D_K

    Citizens only target prefix

    Hi there! I am making an SCP server and want a guard to attack only the "Class-D" prefix. ("&6Class-D &f" in Luck perms) Every code I try, it's not working. If anyone could help me, I'd appreciate it a lot! Thank you! :emoji_grin: Code: on entity target: if entity is a citizen...
  15. PixelCraft_I_D_K

    SK - Phones

    Hi there! I don't know how to continue this skript farther. Here is my idea: I'm trying to make a phone skript for an RP thing, and I want it so when the player accepts the call with an accept command, which I also need help with, they will be able to chat with the player. I'm thinking of using...
  16. SuperRcraft

    Variable Problems

    command /lootbox [<string>] [<string>] [<string>] [<string>] [<string>] [<string>] [<string>] [<string>]: permission: skript.lootbox.admin trigger: if arg-1 = "create": if {lootbox::list::*} does not contain arg-2: add arg-2 to {lootbox::list::*}...
  17. M

    spawn minecart when block is clicked

    I have the line "spawn minecart at clicked block". It works properly with other minecart types, like when I replace it with "spawn minecart with chest at clicked block". When I use the spawn minecart at clicked block line, it prevents further lines from executing after, and does not spawn a...
  18. Z

    Can't understand this structure

    I'm trying to use "if size of a variable", but it isn't working Addons: Skellet, SkQuery, skRayFall, Skbee, skript-gui Code: if size of {compactors::%player's uuid%::*} is 7: send "work" to player
  19. Z

    Solved Can't understand this section: (skript-gui)

    I am having an issue where if I try run a command on click of a gui slot, it throws this error (attached below) Skript Addons: skript-gui, skRayFall, SkBee, Skellet Code: command /gui: trigger: create a gui with virtual chest named "&c&lCOMPACTOR" with 1 rows: make gui...
  20. D

    Cage Skript

    Hello, iam wondering how to make a Skript to Beacon named "Cage" It will do: On place it will create bedrock sphere around the beacon for 30 seconds, and if someone mine the beacon in less than 30 seconds, it will remove, and the beacon will not drop, and the bedrock sphere will be removed back...