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

    How to make villager follow a player?

    Is it possible to have a villager follow a player?
  2. pepper82

    What is that bug with list variables?

    Somehow it seems skript is ordering elements in a list variable automatically which is bad for my actual script. Look at this example: command /order: trigger: add "player1" to {_test::*} add "player2" to {_test::*} add "player3" to {_test::*}...
  3. pepper82

    Set a citizen's (npc) health?

    Hey all, I tried this to set a citizens max health: create a citizen named "Red" at location of player as a chicken set {_npc1} to last created citizen id make citizen {_npc1} vulnerable set citizen {_npc1} max health to 50 But it does not seem to have any effect. The chicken is 1 hit with a...
  4. pepper82

    How to make NPC attack another NPC?

    Hey guys, how can I have an NPC attack another NPC? make citizen {_npc1} attack player is not working, because it will attack nearest player instead of NPC. nvm. found it out :) make citizen {_npc1} attack {_target}
  5. pepper82

    How to get all dropped items from on break?

    Is there any way to get the dropped item that really dropped from breaking a specific block in an on break event? Because... drops of %block% [(with|using) %item stack%] only gives me the POSSIBLE drops, not the real dropped items.
  6. pepper82

    How to get the different growth stages (potatoes, carot, etc) ?

    I want to find out the current growth stage of a targeted block (e.g. carot, potato etc.). I only found something to work with wheat, but I need it for the other plants as well.
  7. pepper82

    Solved Possible to set a damage cause?

    I use "damage player by X" in several scripts. The damage cause is always "UNKNOWN" of course. SO I wonder if there is a way to set the damage cause? Example: damage player by 5 set damage cause to "MyCustomDamageCause" on damage: if damage cause is "MyCustomDamageCause" ....
  8. pepper82

    How to push a player toward something?

    Hey all, I want to push a player toward an enemy in a nice way, look at the picture: I do not want the player to be pushed straight. How to do it?
  9. pepper82

    How to loop all living entities in a chunk?

    I tried this: on chunk unload: set {_i} to 0 loop event-chunk's living entities: but it does not work... How to do it?
  10. pepper82

    skRayfall Error

    I get this error: when doing this: play custom sound pack "valentinekiss" to attacker at location of attacker (in an on damage event) How to fix it?
  11. pepper82

    Unable to equip mob's boots

    I am unable to equip a mob's boots. They always appear to be gold boots. My code: on spawn of zombie: equip event-entity with LEATHER_BOOTS What's wrong here? PS. And does anybody know if named mobs will despawn or not? How could I have them naturally despawn as any other mob?
  12. pepper82

    Can anybody post a working list of particles?

    Can anybody post a working list of particle names available in default (Bensku's) Skript (no addons)? I guess I have an old one because most of them do not work. example: play 300 (magical critical hit with speed 0) at victim
  13. pepper82

    How to get the real damage?

    Hi all, I need to respawn a player once he is "dead" but not really dead. He will respawn once he receives enough damage to be dead. I have this: if damage is greater than or equal to health of victim: #do something Example is a spider. It makes 1.5 damage but ignores the armour type that I...
  14. pepper82

    How to loop through yaml file?

    Hey all, I have a yml file with content like this: 75b6363c-1fdb-49e3-9558-ed5f426fda5e: '1485603081' 25b6363c-1fdb-49e3-9558-ed5f426fda5e: '1485603081' basically this is: UUID: 'TIMESTAMP' How can I loop through all of the entries and set their key to '0' ? Or alternatively delete a...
  15. pepper82

    How to get these values?

    command /testlist: trigger: set {_t1} to "test4" set {_t2} to "test4" set {_t3} to "test4" add {_t1} to {_test::*} add {_t2} to {_test::*} add {_t3} to {_test::*} set {_test::%{_t1}%::id} to "id1" set {_test::%{_t2}%::id} to...
  16. pepper82

    random object out of - not always set?!

    I have a script where I have some items in a variable list. Then I use the "random object out of" method to get a random item and give it to the player. But sometimes the item variable is just empty. Why? My list variable is correct, tested it. set {_item} to a random object out of...
  17. pepper82

    Solved How to read config file value?

    I wonder if it is possible to read the value of a config file (yml) without umbaska or skUtilities ?