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

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

  1. Mr_Simba

    Save player's inventory, and then return it - help!

    Pretty sure you can't set a player's inventory to a list. You'll need to loop through the slot numbers and store the item in that slot indexed by the slot number. Also, you're saving the armor slots using lastinv.slot then loading it with lastinv::slot, so those need to match (i.e. change both...
  2. Mr_Simba

    Solved Command cooldown

    What version of Skript do you have? The newest versions of bensku's Skript have command cooldowns built into the plugin.
  3. Mr_Simba

    Im need help!

    You can reduce the number of variables you save per-player by only storing data for each achievement for a particular player if they have started progress on that achievement. Don't go looping through all of your achievements and setting {achievement::%loop-value%::complete::%player's UUID%} to...
  4. Mr_Simba

    Watchdog

    Can you put your actual Skript version? There's no way you're using 2.1.2 if you're using a version by bensku and the version is important because vanilla Skript had vector support added a while ago, so somebody could help you using vectors if you're on the correct version.
  5. Mr_Simba

    Check if clicked player exists

    Yeah, there isn't exactly a general singular event you can use to do this without some sort of weird code. To properly detect if they hit a player you'll need to use a damage event but to detect any click you'll need a general left click event. A solution like @MusicManSK's second example in the...
  6. Mr_Simba

    help me please, error in console

    Do you have WorldGuard installed?
  7. Mr_Simba

    Solved I don't know what the problem is

    Are you sure you're not just typing it wrong? String comparisons are generally case-sensitive so if you're checking for "Test1" but entering "test1" it probably won't work.
  8. Mr_Simba

    How to determine the number of animals at the specified coordinates

    You don't need to use a variable like {;;s} to insert #, you can just put in two in a row, for example you can do "##1" to show #1. You'll need a somewhat more involved solution for this, I don't think there's a simple effect to count the number of entities in a square box. You'll need to...
  9. Mr_Simba

    skrayfall issue: adding player to a bossbar results in NPE. Any idea?

    Vanilla Skript's play sound effect supports resource packs. Documentation.
  10. Mr_Simba

    If arg 2 is not set: Broken?

    You have both arguments marked as required so the command won't go through to your trigger unless you provide both arguments. If you want an argument (in this case, the <player> argument) to be optional, you must wrap it in square brackets, i.e. [<player>].
  11. Mr_Simba

    Solved TuSke GUI manager issues.

    Yeah, the new version of Skript has some compatibility issues with TuSKe at the moment, presumably due to the changes to how it handles slots.
  12. Mr_Simba

    Interact Writable book

    Skellett has support for this via text components, you can check out the syntax for its text components in the docs.
  13. Mr_Simba

    List Variable to All Files in Specified Directory

    I don't think Skript-YAML has it but skUtilities has this syntax: files in dir[ectory] [including sub dir[ectorie]s] %string% dir[ectory] [including sub dir[ectorie]s] %string%'s files
  14. Mr_Simba

    List enchantments [Not Solved Yet]

    This doesn't really help you now but I just want to note that this expression will be coming to vanilla Skript in the next release, whenever that is. It'll be "enchantments of %item%".
  15. Mr_Simba

    Addon TuSKe - Custom Enchantments, GUI Manager and more!

    @pepper82 You could probably just do set player's top inventory's name to "Example"
  16. Mr_Simba

    Auto Equip Armor

    equip player with diamond chestplate Documentation here.
  17. Mr_Simba

    Inventory Slot Canceling

    You'd need a more advanced solution for this where you handle pickup events yourself since there isn't any way to actually lock slots. The basic logic would be something like: 1. Listen for pickup events and loop through the slots in the user's inventory by number. 2. Store all of the...
  18. Mr_Simba

    Solved Need help with sort of testfor script

    I agree that this code could use more work as a whole, but to answer your specific question, instead of this: if {Fura.Spider.Cave.entrance} is in radius 1 of the player: Do this if distance between player and {Fura.Spider.Cave.entrance} <= 1:
  19. Mr_Simba

    Can force player to sleep and time is day?

    Your 'else stop' means your code will never work unless the very first block checked is a bed.
  20. Mr_Simba

    Solved Punishment ID System

    Why use a random number? Why not just start at 0 and count up? command /punish <player> trigger: add 1 to {globalID} set {punishID::%player-argument%} to {globalID}