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

    Setting item in GUI faster than every 20 ticks

    Hi all, I am trying to create a simple slot machine with GUIs. For this I need to change the item in a specific slot in the GUI faster than only 1 per second. But how would I do this? I tried it with: loop {_wheel1::*}: wait 10 ticks if {slotmachine::%{_p}%} is true...
  2. pepper82

    Freeze/Lag? Is it skript's fault?

    Hey all, anybody can help me finding out what caused the 2 massive lag spikes here: https://timings.aikar.co/?id=ba54e7b49319408f834ed166ab1a20db ??? Thanks for your advice!
  3. pepper82

    on respawn not triggering

    I have this script and it just does nothing: on respawn: broadcast "respawn" Why? Is the "on respawn" event broken in 1.11.2 ?
  4. pepper82

    How to set the respawn location for a player?

    Hi all, I am making a minigame where players should respawn at a specific location once they died. I found that the teleport effect sometimes is not working (because of server lag? because of some other weird issue?) in the "on respawn" event. So what way would you recommend of setting a...
  5. pepper82

    How to make an entity jump in direction of another?

    Hi all, I have spawned a zombie which I want to make jump towards the player. Is this possible? And if so, how would you do it?
  6. pepper82

    Solved Can you make a player ride a zombie?

    Hi all, is it possible somehow to make a player ride a zombie or a creeper or anything like that? If so, how?
  7. pepper82

    Only hostile mobs?

    Is there any way of checking the type of a mob for if it is a "hostile mob"? Or do I have to check every single mob? e.g. if targeted entity is any hostile mob OR if targeted entity is blaze, cave spider, zombie, creeper, elder guardian, enderman, endermite, evoker, ghast, guardian, husk...
  8. pepper82

    Working pathfinding effects / stuff

    I wish somebody could create or enhance an existing addon with working pathfinding effects / stuff like: - Make the targeted entity follow player - Stop the targeted entity from following player etc.
  9. pepper82

    how to reference a mob?

    I want to set a targeted entities walk speed to zero and set it back to default a few seconds later but it does not work: command /test: trigger: set {_t} to targeted entity set walking speed of {_t} to 0 wait 3 seconds set walking speed of {_t} to 1 Does not work. The...
  10. pepper82

    Solved Spawning a mob near a player

    Hey all, I am looking for a performance-friendly way of spawning a zombie within a specific range of a player via command. Basically I want to check for a location where a zombie can spawn (e.g. to spawn a zombie there must be 2 air blocks etc.). How would you do this?
  11. pepper82

    Why are some scripts loading fast while others loading slow?

    I have some very big scripts (with "big" I mean like 1000 lines). Some of them can be reloaded within milliseconds while others taking like 4 seconds to reload. Can anybody give me a hint how to optimize this? What is causing this? Is it because of many "if-else" statements? Or because of...
  12. pepper82

    Skript bug with functions?

    Hi all, I have this issue with numbers and functions: #my function function testy(i: number, a: number, b: number): broadcast "%{_i}% - %{_a}% - %{_b}%" #calling the function in my skript: testy(5.5,5.6,5.7) Error:
  13. pepper82

    Unable to set name of villager

    I am trying to set the name of a villager or villager baby after I spawned it: spawn 1 villager at player's location set name of last spawned entity to "123" It does not work! Also tried set display name of last spawned entity to "123" Why?
  14. pepper82

    Clear drops not working?

    on death: if victim is a wither skeleton: if "%colored name of victim%" is "&cKlingendämon": clear drops Does not work! Items still dropping!
  15. pepper82

    Help with pathfinding goals...

    Hi there, is there any working way for creating and deleting pathfinding goals? Currently I am trying it with skStuff but only getting console errors (see this). So I am wondering if there is another solution or addon that works? What I am trying to achieve: Make a wither skeleton attack any...
  16. pepper82

    How to delete entries from multidimensional list var?

    Assuming I have a list variable like this: {kits::%{_kitname}%::items::*} it contains items and I have a variable like this: {kits::%{_kitname}%::items::%loop-index%::unique} How would I delete the {kits::%{_kitname}%::items::%loop-index%::unique} variable? I tried: loop...
  17. pepper82

    Strange bug with size of list variable

    My script: command /below: trigger: set {_id} to a random integer between 1 and 1000 add {_id} to {_test::*} set {_test::%{_id}%::date} to now message "added" set {_id} to a random integer between 1 and 1000 add {_id} to {_test::*} set...
  18. pepper82

    List variables losing their indexes when used in functions, why?

    Why do list variables lose their indexes when used in functions? Is it a known bug, is there any workaround? function sortList(list: objects): set {_sortedList::*} to {_list::*} loop {_list::*}: add 1 to {_count} set {_indexes::%loop-value%} to loop-index if...
  19. pepper82

    Help with toplist

    Hey all, anybody can tell me how to make a simple toplist? I want to store player's name and his score in a list variable like this: set {player:albert} to 100 set {player:boris} to 40 set {player:candy} to 50 later I wanna loop the list and expect this output: TOP 10 Players: albert has...
  20. pepper82

    Create a timer that only is active for specified time?!

    Hi all, I know there is the "Periodical" event in Skript, but I am looking for a performance friendly way to check some variables every second. In Skript I would do it like this: every 1 second: do something But the event is always running, even when I am doing nothing or it is not needed...