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

    Most Damage Player wins?

    https://forums.skunity.com/resources/skript-reflect.1146/ skript-reflect is a reflection addon that allow you to call methods from skript
  2. T

    Most Damage Player wins?

    You can use skript-reflect to get the damage from the event with the following method. https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/EntityDamageEvent.html#getDamage() #On damage event event.getDamage() # Gets the raw amount of damage caused by the event
  3. T

    Problem with inventory click

    The "on inventory click" event only have the following event-values: event-clicktype, event-itemtype, event-slot, event-world, event-inventory, event-player, event-inventoryaction, event-string But you can use one of the following methods to get a ItemStack from the event. You can use this...
  4. T

    Solved region/location condition

    You can use the region at %location% and check for the region in the list returned. https://skripthub.net/docs/?id=918
  5. T

    Gen skript not working

    what isn't working? do you get a error? And please use a code block for your code.
  6. T

    How to make an armor piece that gives health?

    try: set health of loop-player to health of loop-player +1
  7. T

    Problem with a variable

    where do you send the varible, because you would have to send it from the same command since its a local varible.
  8. T

    HELP MEEEEE

    It isn't an error it is a warning. It gives you that warning because arg-2 is of type string and dosen't have to be put in "%%"
  9. T

    Need help with skript-reflect packet

    Do you have protocollib on your server to help with the packet stuff? If not you need to use NMS for packets.
  10. T

    GUI with homes

    You could use skript-reflect to hook into essentials and do something like this: import: org.bukkit.Bukkit command /test: trigger: set {_essentials} to Bukkit.getServer().getPluginManager().getPlugin("Essentials") if {_essentials} is set: set {_user} to...
  11. T

    Disable firework damage?

    I haven't tested this but it should work. command /test: trigger: launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1 set metadata value "cancelDamage" of last spawned firework to true on damage: if...
  12. T

    Disable firework damage?

    You could give the firework a nbt tag and check for it in on damage event.
  13. T

    Need help with skript-reflect packet

    Do you use ThatPacketAddon or MundoSK or do you want to do it with only skript-reflect?
  14. T

    Need help with skript periodic events

    You're varible {timer.loop-player} should be {timer.%loop-player%}. When you do {timer.loop-player} the varible name is "timer.loop-player". When you do {timer.%loop-player%} the varible name is "timer.playername"
  15. T

    region enter script

    You can use the replace effect to replace "in world world". set {_rg} to "%region%" set {_region} to replace "in world world" in {_rg} in with ""
  16. T

    How can i make an animated Crate?

    You need to change all the "format gui slot". here is a guide on how to use set slot: https://forums.skunity.com/threads/vanilla-guis.8939/
  17. T

    because the latter is not an object error?

    The sort expression requires a list/array of objects, not a single object. {hits_deal::%attacker's uuid%} is a single object not a list.
  18. T

    How can i make an animated Crate?

    I have this old casino script, here is the rolling part: loop 30 times: set {_random} to a random integer between 0 and 1000 #broadcast "%{_random}%" if {_random} is between 0 and 450: add 1 of iron block named...
  19. T

    Multishot Bow

    Try using this effect: https://skripthub.net/docs/?id=1124
  20. T

    Need help with skript periodic events

    The %% is used for getting a string value and the effect you are using requires a player not a string, so try removing the %%: send action bar "&4You are in combat, don't log out! &4&l%{timer}% seconds remain" to loop-player NOTE: the "send action bar" effect you are using requires skellet.