Search results

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

    Skript Mirror Open Book Snippet

    I found this snippet and I was trying to use it, but for some reason, it wont work. The snippet: import: org.bukkit.Bukkit io.netty.buffer.Unpooled option nms: get: set {_nms} to Bukkit.getServer().getClass().getPackage().getName().split("\.")[3] return...
  2. aescraft

    Is a season cycle skript viable?

    I searched the docs trying to find something to work with the change in the crop grow rate, to create a seasonal cycle for the crops, but I could not find it. Anyone has anything in mind on how to do it? I never tried, but it's possible to the skript change the spigot.yml or bukkit.yml files to...
  3. aescraft

    Alternative to message all variable values in a single line

    This is my code right now, it's somewhat inefficient : if arg 1 is "membros": loop {grupolwc::*}: if loop-index = player: set {_number} to 0 loop {grupolwc::%player%::*}: add "%loop-value-2%; " to {_text::*} add 1 to...
  4. aescraft

    Is "personal" weather possible?

    Title says it all.
  5. aescraft

    Check audio lenght in seconds

    Im using open audio MC and I need to manually check the track length for my radio skript I'm making. Is there a way for the skript to get this info from the website? Example link: https://dl.dropboxusercontent.com/s/twx0oix1bfo20mc/Eddie Van Halen - Eruption.mp3?dl=0 Expected value: 94...
  6. aescraft

    Solved Variables - What is possible wrong?

    if lore of player's tool is "Speaker": if {numero.de.speaker} is not set: set {numero.de.speaker} to 0 add 1 to {numero.de.speaker} set {speakerXcord::%{numero.de.speaker}%} to "%event-block's x-coordinate%" parsed as integer set...
  7. aescraft

    Solved Totem of undying effect/animation

    I'm recreating the totem of untying as a special item, this is the code right now: on damage: if boot of victim is diamond boots with lore "Undying": if the final damage is bigger than the health of victim: set victim's boots to victim's boots with lore "" cancel event...
  8. aescraft

    Remove lore

    Is there a way to remove the lore from a item? The only way I found is to use this syntax: set %itemstack% to %itemstack% with lore "" So, it's not removing the lore, but setting the lore to nothing. I've tried removing the NBT with the following: "set %itemstack% to %itemstack% without any...
  9. aescraft

    Help with debug

    I can't find the source of this error: [13:14:35] [Server thread/ERROR]: #!#! [13:14:35] [Server thread/ERROR]: #!#! [Skript] Severe Error: [13:14:35] [Server thread/ERROR]: #!#! [13:14:35] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have...
  10. aescraft

    Solved Player cannot hold

    I need to check if the inventory of the player is full. It's for a lottery skript that gives up to 4 stacks of items for players. I want to check if player have 4 free slots. The syntax from the docs on "can hold" is not working for me.
  11. aescraft

    Custom item models / Skript and API's

    Is it possible to use skript to do something like this? https://www.spigotmc.org/wiki/custom-item-models-in-1-9-and-up/
  12. aescraft

    Solved Custom speed for sandstone slab or sandstone

    In my server, we use sandstone and sandstone slab as roads. I want to use the "on step on sandstone" to give bonus walk speed. The problem is, I don't know how to revert it to the normal speed when the player left the sandstone slab road. Anyone know how to do it? on step on sandstone slab...
  13. aescraft

    Compare list values

    I want to make a slot machine with the minecraft colors. This is the slots: | A | B | C | | D | E | F | | G | H | I | So, it's 9 slots, and each slot can have one of the 14 out of the 15 minecraft chat colors. (excluded white) The issue I have is how to compare the result. I was doing...
  14. aescraft

    Solved Help with enchanted paper

    I want to enchant a paper to get the glowing visual effect. This is the part of the code where I did it: if arg 1 = "2": loop all items in player's inventory: loop-item is paper loop-item's name isn't set enchant the loop-item with mending set the name of...
  15. aescraft

    Word detection

    Instead of "message contains", add a "message contains word", to detect only a word. Example of why this is important: on chat: if message contains word "rape": # ban the player This would detect if the message contains THE WORD rape, not if the message contains "rape" on it. Right...
  16. aescraft

    [Solved] On broadcast event

    I use Purple IRC and the plugin does not catches the server broadcasts into the IRC. By using a "on broadcast" event, this would be really easy: on broadcast: execute console command "irc say BOTNAME ##CHANNEL %broadcast%" The current workaround is to duplicate all the broadcasts in every...
  17. aescraft

    Youtube catcher

    When someone posts a link to youtube, the skipt addon get the video name for broadcasts.
  18. aescraft

    How to detect a word?

    I've looked up in the docs but is really hard to find. I'm using if message contains "": To get the content of the message. But, for example, I want to detect "gg", if I use "message contains gg", words like egg, eggplant, exaggerating, etc. How to detect if its ONLY "gg"? Thanks!
  19. aescraft

    Solved Help with hidden NBT and SkStuff

    Hello. I want to create hidden NBT tags to work as a voucher for trades in shopkeepers. The NBT Tag I want to be stored is %playername% and %arg 1%, arg 1 being <text> from a command. Here is the code so far: command /nbt <text>: trigger: set all paper from the inventory of the player to...
  20. aescraft

    Solved Help with skript loop stopping after some time

    I don't know why, but after some time, the code stop working. every 1 minute in world "world": loop all players: if {sono.%loop-player%.bypass} is set: stop if {sono.%loop-player%} is not set: set {sono.%loop-player%} to 80 remove 1 from {sono.%loop-player%}...