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

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

  1. skUnity Discord

    Discord Thread Blast Enchant going wrong

    on mine: if lore of player's tool contains "&7Telepathy": if lore of player's tool contains "&7Blast 1": set {_BlastLvl} to 0 if player's pitch is between -50 and 50: if player's facing is north or south: set {_1} to event-block's...
  2. skUnity Discord

    Discord Thread Tower Defense Targets

    Hello, I am trying to make a tower defense game with targets for the towers. I have NEAREST working already but I don't know how to get the FIRST, LAST, STRONGEST, WEAKEST to work. If someone has an idea please help me. set {_t} to nearest sheep in radius 8 around {_e} This is what I use...
  3. skUnity Discord

    Discord Thread How do i make this text one line?

    I'm trying to make abounty plugin but it looks super rough when it's not all in one line. How do i fix it? Posted by: tw_sted from the skUnity Discord. View the thread on skUnity Discord here
  4. skUnity Discord

    Discord Thread Help with rename

    How can I make, that an item cannot be renamed into " ﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽﷽" ? One solution is command /rename [<text>]: permission message: No perms permission: rename.use trigger: if arg-1 is set...
  5. skUnity Discord

    Discord Thread How to check if player has enough space in inventory

    I need the player to have enough space in the inventory for 4 different things so I have done if player has enough space for 4 shulker boxes: But it gives me this error: Posted by: kittscloud from the skUnity Discord. View the thread on skUnity Discord here
  6. skUnity Discord

    Discord Thread How to check if player has enough space in inventory

    I need the player to have enough space in the inventory for 4 different things so I have done if player has enough space for 4 shulker boxes: But it gives me this error Posted by: kittscloud from the skUnity Discord. View the thread on skUnity Discord here
  7. skUnity Discord

    Discord Thread On command event need help

    Hello! I want to make a check with an event on command "/setjob". I did loop all players but can’t figure out how to make a check that this command specified loop-player? Like, he tried to do something like this but it didn’t work out :(. Here’s my code: ` on command "/setjob": loop all...
  8. skUnity Discord

    Discord Thread How do I change someone's nametag, there display name, the name that hangs over their head

    I've tried many things but everything gives me an error expect for set the player's display name to "" but that doesn't work Posted by: kittscloud from the skUnity Discord. View the thread on skUnity Discord here
  9. skUnity Discord

    Discord Thread event-block

    vb on break: if player is in region "testarea": #WOODWORKING XP set {_block} to event-block if event-block is oak log or oak wood: woodworkingXP(player, {@xpOak}) wait 1 second set event-block to {_block} why does this not set the...
  10. skUnity Discord

    Discord Thread Add comma between every 3 digits

    How can I add commas between every 3 digits? Example: 21,738,308 Posted by: as3pt1c from the skUnity Discord. View the thread on skUnity Discord here
  11. skUnity Discord

    Discord Thread Is it possible to somehow prevent these particles from shooting in every direction of the world?

    set {_p} to player set {_loc} to location of player loop 50 times: set {_loc} to location 0.5 meters in front of {_loc} add {_loc} to {_locations::*} loop 50 times: add 1 to {_num} drawSphere 1, particle "flame", speed 1...
  12. skUnity Discord

    Discord Thread Can someone help me setup a pricing system? Its really laggy with my current code

    With my current code my server runs 15 tps but without it runs 20, it takes 18000 miliseconds to reload and if someone can help me reduce lag and set up a pricing system itd be much appreciated. Posted by: harfull from the skUnity Discord. View the thread on skUnity Discord here
  13. skUnity Discord

    Discord Thread テレポート招待プラグインってどうやったら作れますか?

    tp招待:/tpinvite(/tpi) tp承諾:/tpaccept(/tpa) tp拒否:/tpdenied(/tpd) Posted by: kirea_413 from the skUnity Discord. View the thread on skUnity Discord here
  14. skUnity Discord

    Discord Thread Trench Coat Item

    I'm trying to make an chestplate that when you crouch and rightclick with it on, it opens a GUI that acts like an enderchest with 1 row, where you can conceal and hide items. I don't know how to make the enderchest gui part though... all I have is: On right click: if player is wearing leather...
  15. skUnity Discord

    Discord Thread help sos sos sos

    that skript, with that errors [04:01:49 ERROR]: Can't understand this expression: '{blocked} + "&e%{loop-player}%&7, "' (block.sk, line 44: set {blocked} to {_blocked} + "&e%{loop-player}%&7, "') [04:01:49 ERROR]: Can't understand this condition/effect: send player "You cannot send messages to...
  16. skUnity Discord

    Discord Thread How can I set my own trade pool for wandering merchants?

    The idea is to spawn a wandering merchant with my own trade pool. Thing is - I have no clue how to do that. Any ideas? Posted by: stazekwantsmorecoffee from the skUnity Discord. View the thread on skUnity Discord here
  17. skUnity Discord

    Discord Thread Offhand

    How do I make it so you can use this item when its in your off hand? on right click: player is holding white dye if name of player's held item is "&f&lWind Fan": set {_waited} to difference between {windfan.%player%.lastused} and now if {_waited} is less than 3 seconds...
  18. skUnity Discord

    Discord Thread custom tag being removed from block

    when i retract my block with the custom tag theres a chance for the custom tag to be removed and it will go back to functioning like a normal block Posted by: nathan.5718 from the skUnity Discord. View the thread on skUnity Discord here
  19. skUnity Discord

    Discord Thread Money

    How to make sure that when using the command /pay [nick] [amount], this specified amount is given to the player Posted by: deatherazo from the skUnity Discord. View the thread on skUnity Discord here
  20. skUnity Discord

    Discord Thread Level System

    on first join: set {level::%player's uuid%} to 0 on break of wheat[age=7]: add 1 to {xp::%player's uuid%} send action bar "&a+1 &6exp" to player if {lvreq::%player's uuid%} is not set: if {xp::%player's uuid%} > 100: set {lvreq1::%player's uuid%} to 1...