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

    Solved Command cooldown and inventory items

    If a player already has the mission, the command /mission1 will do absolutely nothing. If they are not on cooldown or have the mission, it will give them the mission according to the code I sent you. If you want to reset the mission for the player too, do "set {mission1.%player%} to 0" in the...
  2. AsuDev

    Solved Command cooldown and inventory items

    You can reset a player's cooldown by doing "delete {mission1.%player%.lastused}"
  3. AsuDev

    Solved Command cooldown and inventory items

    I made a slight adjustment: if amount of coal in player's inventory is greater than or equal to 128: This should work out fine. Forgot to add the "equal' part.
  4. AsuDev

    Solved Command cooldown and inventory items

    I would just revert the code back to the way it was and do what I said, then I think it will all work fine for you. EDIT: Now that I think about it, you should actually make a separate command or something to check if the player has the amount of coal they need. Having it all in that one...
  5. AsuDev

    Solved Command cooldown and inventory items

    If you want to set the cooldown when they complete the mission, then use the 'set {mission1.%player%.lastused} to now' in the reward code for completing the mission. As for checking for a certain amount of items, you can use this syntax: https://skripthub.net/docs/?id=965 Example: # [the]...
  6. AsuDev

    Solved Command cooldown and inventory items

    You are doing it wrong. When you set '{mission1.%player%.lastused} to now' it is resetting the cooldown. You want to set the cooldown after the condition to check it or else it will always be on cooldown. Example: set {_cooldown1.%player%} to difference between {mission1.%player%.lastused} and...
  7. AsuDev

    How can I check if a spawner owns a particular NBT tag?

    You can try using Sk-NBeeT addon: https://skripthub.net/docs/?id=3439 https://skripthub.net/docs/?id=3170
  8. AsuDev

    Solved set SECOND element of ...

    {_datum::2} would be the second element in a basic Skript list. Here is the docs for getting an element from a list: https://skripthub.net/docs/?id=942 Example: set {_day} to 3rd element of {_datum::*} set {_month} to 5th element of {_datum::*} #etc
  9. AsuDev

    Solved A trail skript

    Why use "loop 25000 times" it will eventually end. Just use a while statement. while {%player%.Trail} is true: if player is not online: stop loop make console execute command "etc" wait 2 ticks EDIT: Didn't realize you wanted it to run for 30 minutes.
  10. AsuDev

    Faster Particles

    Haven't used skdragon but for that syntax, I did see a speed option. https://skripthub.net/docs/?id=3625 Not really sure what it does though.
  11. AsuDev

    Solved Naming problem

    Pretty sure this is right: on rightclick holding stick: name of player's held item is set #do wand stuff From my experience, if the custom name of an item is not set, %name of %itemstack%" will return <none> which means that it isn't set. That code should prevent players using normal...
  12. AsuDev

    Solved On Damage with arrow?

    Here is metadata in the docs: https://skripthub.net/docs/?id=2622 It basically allows you to set custom data on entities/blocks while they exist so you can do some pretty cool stuff. Since the projectile in your code is an entity, it allows you to set custom data for them and retrieve it for...
  13. AsuDev

    Solved On Damage with arrow?

    Example Code using metadata: on shoot: shooter is a player if name of shooter's held item is "&2&lBasic Wand&r": set metadata value "Damage" of event-projectile to "5" set metadata value "Wand" of event-projectile to "Basic Wand" if name of shooter's held item is...
  14. AsuDev

    Death money.

    on death: attacker is a player victim is a player set {_m} to a random integer between 1 and 20 if victim's balance is greater than or equal to {_m}: remove {_m} from victim's balance add {_m} to attacker's balance else: add victim's balance to...
  15. AsuDev

    Chat Filter Request

    on script load: set {badwords::*} to "love" and "badword" and "blockme" on chat: loop {badwords::*}: if message contains loop-value: cancel event message "&cYou cannot say that." Like this simple?
  16. AsuDev

    Solved On kill with bow?

    You can addattacker is not victim to prevent it from running when they kill themself.
  17. AsuDev

    Solved On kill with bow?

    change to:if "%damage cause%" is "projectile"
  18. AsuDev

    Spawn Zombie with Player Head

    command /testspawn: trigger: spawn a zombie at player set helmet of last spawned zombie to ("zezerrostV2" parsed as an offline player)'s skull
  19. AsuDev

    Solved On kill with bow?

    on death: victim is a player attacker is a player attacker is not victim if "%damage cause%" is "projectile": add 1 to {bowkills.%attacker%} message "&dMissions &8| &7+1 Archer Kill" to attacker else: message "&dMissions &8| &7You didn't use a bow!" to...
  20. AsuDev

    function with options?

    Surround the options in quotes. "{@map1}". Also you did not include the curvy brackets in the function args.