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

    Skript-Reflect x PlotSquaredAPI

    Use {_Plot}.getConnectedPlots().toArray() to convert your Set to an Array. Do this and log your list to check if it's set. Inform me about how your code looks like and what errors you get. I will tell the next step after you finish that.
  2. The0Felon

    Skript-Reflect x PlotSquaredAPI

    You cannot do it like that. getConnectedPlots() method returns a Set<Plot>. I will research it.
  3. The0Felon

    Skript-Reflect x PlotSquaredAPI

    But first, log it by sending. To make sure what you get.
  4. The0Felon

    Skript-Reflect x PlotSquaredAPI

    Don't look at java. Skript doesn't care about variable types too much. You can do the way i showed.
  5. The0Felon

    Skript-Reflect x PlotSquaredAPI

    Wasn't your plot list an arraylist?
  6. The0Felon

    Skript-Reflect x PlotSquaredAPI

    Let's say your ArrayList is {_list} set {_i} to 0 while {_i} < {_list}.size(): you can do whatever you want here. Like: add {_list}.get({_i}) to {_skriptList::*} add 1 to {_i}
  7. The0Felon

    Skript-Reflect x PlotSquaredAPI

    You don't have to parse. Just use Click and get the size of your arraylist. Once you get the size of it, you can create a while loop. In while loop, you should use Click to get current value. When you do that, you will already get a loop like a foreach.
  8. The0Felon

    Skript-Reflect x PlotSquaredAPI

    Use a while loop and use while loop depending on the size of the Plot list. You can get the value by index using the while loop variable and add the value to your skript list.
  9. The0Felon

    Skript-Reflect x PlotSquaredAPI

    But i would log every variable/condition to make sure what's happening in code.
  10. The0Felon

    Skript-Reflect x PlotSquaredAPI

    I haven't done anything with PlotSquared Sry
  11. The0Felon

    Skript-Reflect x PlotSquaredAPI

    Share the full code.
  12. The0Felon

    How can I teleport a boat that is occupied by a player?

    command /temp: trigger: if "%vehicle of player%" contains "boat": set {_loc} to location of vehicle of player add 5 to y-coord of {_loc} while distance between {_loc} and location of vehicle of player > 1: set {_v}...
  13. The0Felon

    How can I teleport a boat that is occupied by a player?

    Do you want a boat climbing script or you want to teleport it?
  14. The0Felon

    How can I teleport a boat that is occupied by a player?

    Alternative: command /test: trigger: if vehicle of player is a boat: set {_i} to 10 while {_i} > 0: set velocity of vehicle of player to vector(0,1.5,0) # change 1.5 to change it's speed. remove 1 from {_i}...
  15. The0Felon

    How can I teleport a boat that is occupied by a player?

    command /test: trigger: if vehicle of player is a boat: set {_loc} to location of vehicle of player add 5 to y-coord of {_loc} teleport vehicle of player to {_loc} Not tested.
  16. The0Felon

    NEEDS HELP FIXING CODE - LEADERBOARD

    set {_sorted::*} to sorted {_leaderboard::*}
  17. The0Felon

    How to set minecraft vehicle speed

    I can't show you an example because i don't have that much time. Just listen on spawn event and create a while loop for it. In this loop, you will do: set velocity of event-entity to velocity of event-entity * 2 # 2 is changeable. But don't forget to save it's normal velocity so you don't see...
  18. The0Felon

    NEEDS HELP FIXING CODE - LEADERBOARD

    https://skripthub.net/docs/?id=11794
  19. The0Felon

    NEEDS HELP FIXING CODE - LEADERBOARD

    error 1: use set {_leaderboards::*} to {_time::*} error 2: You can't do this like that. error 3: it's {_1st} not _1st All other errors are same with error3.
  20. The0Felon

    Solved [Skript] Severe Error

    np