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

    Check GUI name

    Is there a condition to check the name of the GUI a player has open or which item is in a certain slot of the GUI a player has open.
  2. C

    Weird issue with list variables

    I made the following skript: command /whitelistblock [<text>]: aliases: wlb permission: blockedup.whitelistblock permission message: &cInsufficient permissions. trigger: if arg-1 isn't set: send "&f/wlb add" send "&f/wlb remove" send "&f/wlb list" else if arg-1...
  3. C

    Drop items from a chest or furnace

    So I want a Skript where if the event block is a furnace, chest, trapped chest, hopper, barrel, dispenser or dropper it will be set to air and all the items in the storage block will drop at the location of the block excluding the broken block itself. Thanks
  4. C

    Solved If block at {_x} {_y} {_z} is {_block}

    loop all players: set {_x} to x-coord of loop-player set {_y} to y-coord of loop-player set {_z} to z-coord of loop-player set {_totalUp} to 0 if block at {_x} {_y} {_z} is "jungle wood bark block": loop 25 times: if block at {_x} {_y} {_z} is jungle wood bark...
  5. C

    Making a cuboid with 2 variables.

    This is the code I am using: every second: loop blocks between block at {Wood.1} and block at {Wood.2}: set loop-block to jungle wood bark block Here is what happens: https://gyazo.com/4ad849d30acae72353079b6ff8ab61c8 Here is what I want to happen...
  6. C

    Looping all blocks between 2 locations

    Using "loop all blocks between {_x1} {_y1} {_z1} and {_x2} {_y2} {_z2}" I cant use variables within this loop so is there any alternative?
  7. C

    Help with claiming Skript.

    I've made nearly all of my script for claiming in factions, but I've run into a problem which I don't know how to solve. So I each faction has 4 variables for claims: {factionClaim1x.%{faction}%} {factionClaim2x.%{faction}%} {factionClaim1z.%{faction}%} {factionClaim2z.%{faction}%} And when...
  8. C

    Check if a coordinate is between 2 other coordinates

    How do I check if {_x} {_y} {_z} is between {_x1} {_y1} {_z1} and {_x2} {_y2} {_z2}? I don't need to worry about the y coordinate but each of the x and z cords need to be as a different variables.
  9. C

    Solved Opposite of function abs()

    the abs() function works like so: set {_x} to -5 set {_x} to abs({_x}) send "&c%{_x}%" # sends 5 I want to do the opposite of abs() and make 5 into -5
  10. C

    Make player see block

    How would I use this effect and do something like this: on rightclick: if clicked block is set: if player's tool is stone sword: set {_x} to clicked block's x-coord set {_y} to clicked block's y-coord set {_z} to clicked block's z-coord add 1 to {_y} make...
  11. C

    Clickable commands.

    I want to use this text: "&3Type '&e/f join %{factionOfPlayer.%player%}%&3' or &bclick here <reset> &3to join." I'd like the "&bclick here" to execute the command "/f join %{factionOfPlayer.%player%}%" and when "&bclick here" is hovered over the message "&b/f join %{factionOfPlayer.%player%}%"...
  12. C

    Logout Villager

    Ok, so I would like a skript that if there are people in a 200 block radius or combat timer is true and the person logout a villager will spawn named "&c%player%& &7(Logout Villager)". When this villager is killed, the player's inventory is dropped and when the player logs back on they are TPed...
  13. C

    Anvil GUI Command

    I would like to request help on my Skript: command: /anvil opens an anvil gui named "&aAdd a friend" the item is a player head with default text as "Username". When clicking on slot 2 the anvil closes and the input gets sent in chat to player.
  14. C

    Variables won't save after restart

    After I restart my server my variables won't save, you can see the skript below and I do not think there is anything wrong with it right now. When I do /testsellcell1 it sets {cell1status} to 2 and it lets me buy the cell and it works fine, everyone can see that I now own the cell, this also...
  15. C

    Inputting with an anvil GUI

    I need help with using an anvil gui: command /cell add: Opens an anvil gui and saves the data as a variable and then executes the command: "/areashop addfriend <anvilinput>" delete variable I'm really bad at learning things from reading and people showing me helps me the best so I'd...
  16. C

    Send message Skript.

    Can someone show me how to make a link clickable to open the website (use example website as discord.gg) and execute commands clicking text in chat (use example command /spawn) I have most needed skript addons and if anyone has a link to any resources that can help me learn this stuff that would...
  17. C

    How do I make events occur based on food and its name?

    How can I make an event occur based on a type of food and its name. For example if I eat a golden apple how can I clear the effects of that and give speed 2 instead. And if eat normal apples named &cHealth Apple (only with this specific name the event occurs) it will give the player healthboost 1.
  18. C

    Clear inventory on entry of a region and when leaving.

    Can somebody please make me a Skript where when a player enters or leaves the region 'buildzone' their inventory is instantly cleared (if you could, when they enter give them 64 steak). If anyone could do this for me it would be amazing. Thanks!
  19. C

    Simple Skript To Be Edited

    Hi, can someone please change the following Skript so that it does not work (the same way the permission makes it stop) if the region the player is in contains the words "event" "spawn" or "cell". If you cannot do this then I can always list the regions, but please show me how I can do this...