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

    TehCore

    I will not remove my review because I truly believe this resource is a one star. Until it is updated or changed, I will not change it. Since I have more space to write, I will give more details. Periodicals in Skript are usually supposed to be avoided as much as possible because they are...
  2. AsuDev

    Solved Skript Has Seriously F-ed Up.

    Why don't you just get the location of the victim? on death: attacker is a player broadcast "%location of victim%" In damage and death events, attacker represents the one who dealt the damage or killed, and victim is the one who received damage or died.
  3. AsuDev

    Solved Skript Has Seriously F-ed Up.

    You should probably specify that the attacker is a player at the beginning of the event. on death: attacker is a player Make debug messages to check what is and is not working. Also your using the same ID for every holo that appears per player. You probably want to make a hologram with a...
  4. AsuDev

    Solved Skript Has Seriously F-ed Up.

    Don't use Skrayfall for holograms. Use skript-holo: https://forums.skunity.com/resources/skript-holo.748/
  5. AsuDev

    Can I use this in a java Plugin

    Pretty sure you can execute Skript functions through java. I've seen someone do it before, but I don't remember how. Check out the `ch.njol.skript.lang.function.Functions` class in the Skript source code. I believe Pikachu was the original maker of this, but here is code of executing functions...
  6. AsuDev

    Looping all blocks between 2 locations

    try changing `between` to `within`
  7. AsuDev

    Looping all blocks between 2 locations

    `Loop all blocks between` requires 2 locations. set {_loc1} to location at {_x1}, {_y1}, and {_z1} in world "world" set {_loc2} to location at {_x2}, {_y2}, and {_z2} in world "world" loop all blocks within {_loc1} and {_loc2}:
  8. AsuDev

    Solved check item lore in inventory how?

    Oops, that was my bad. Remove `item`, it should be: set {_amount} to amount of loop-item in player's inventory
  9. AsuDev

    Solved check item lore in inventory how?

    loop all items in player's inventory: if name of loop-item is "&7Meat": set {_amount} to amount of loop-item in player's inventory if {_amount} is greater than 0: # do stuff stop loop
  10. AsuDev

    Solved check item lore in inventory how?

    set {_amount} to item amount of loop-item in player's inventory
  11. AsuDev

    Solved check item lore in inventory how?

    loop all items in player's inventory: if name of loop-item is "&7Meat": # do stuff stop
  12. AsuDev

    Why do I have so many views no replys PLEASE HELP

    Yes, it is possible. I have made something like this. I personally made my own version using skript-mirror but is also possible in the Kosmos addon (I will not share my world stuff from skript-mirror so do not ask). Kosmos addon: https://forums.skunity.com/resources/kosmos.726/ Copy worlds...
  13. AsuDev

    Solved Enchant skript error

    I tried your example and indeed, it always returns none. What I did to fix it was change this line: set {_level} to enchantment level of {_chkenc} of {_target} I am not sure if this requires an addon or is vanilla Skript but I am pretty sure it is vanilla. I added `enchantment` to the line of...
  14. AsuDev

    Solved Get numbers from NBT

    set {_energy} to {_energy} parsed as number # if that ^ doesn't work, try doing set {_energy} to "%{_energy}%" parsed as number
  15. AsuDev

    Solved How to check if world exists?

    if ("world" parsed as world) is set: send "this world exists" else: send "this world does not exist"
  16. AsuDev

    item2chat skript not working

    Wrong syntax. <tooltip:Your tooltip> On Skript 2.3.6 and lower this will work. On Skript 2.3.7+ you will need to cancel the chat event and send a message to all players using send formatted %string% to %players% One last thing is, for lore of items in a tooltip, you want to format it properly...
  17. AsuDev

    Skript Player Data System

    This is fantastic. Thank you so much for this! Just one question though, how would we go about creating an efficient toplist using skript-yaml? Since things like mirror-util's sorting function use list variables for sorting. What would be the most efficient way of pulling all the data from the...
  18. AsuDev

    Solved Saving virtual chest to variable

    Using skript-json, example for chest gui / player inventory. Im not sure how well this works on newer versions. I think I made this for 1.8.8. I can't remember. function jsonSerializeInventoryContents(inventory: inventory) :: String: set {_size} to {_inventory}'s amount of rows * 9 set...
  19. AsuDev

    Solved Saving virtual chest to variable

    Serialize contents of inventory into a string and save it that way. This can be done with skript-json or skript-mirror.
  20. AsuDev

    Solved How to make a top list?

    That code you sent uses TreeSet. TreeSet is a bad idea because it doesn't allow duplicates. If two players have the same value, only one will be counted. This is pretty bad for a leaderboard.