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

    How to parse teleport flags?

    I am sending a teleport packet to the player but there is a parameter that I am having trouble with. command /test: trigger: #/tp Player ~ ~ ~ 10 10 //the command that i type to recieve these packets #0, 0, 0, 10, 10, [X, Y, Z], 38, false //these are the values that are...
  2. H

    Change player's game state in 1.18

    How do I change a player's game state in 1.18? I know this is possible using the packet Change Game State and but I am unsure how to send NMS packets in 1.18. I tried using skript reflect, but i'm not sure how to import NMS on 1.18.
  3. H

    Most efficient way to draw on blocks?

    I want to be able to paint in minecraft but I can't figure out a efficient way to draw without gaps in between. Here is my skript: on rightclick with shield: wait 10 ticks while player is blocking: test(player) wait 1 tick function test(p:player): set block at...
  4. H

    on mob rename

    Is there an event that is triggered when a mob is renamed? ex: on creature rename: cancel event broadcast "you cannot rename mobs" if not is there a different way to do this?
  5. H

    set player's prefix in world "world"

    Okay, so I am have a skript that does set's the player's prefix when they type a command. I also want the prefix to be set in the nether. Right now if you do set player's prefix to "test". Their prefix only works in the world that they were in when the prefix was assigned. How do I give...
  6. H

    Detect if particle reaches targeted block

    Wondering if there is a way to detect when a particle created from DrawLine (sk dragon) reaches targeted-block: command /test: trigger: make the player shoot an arrow at speed 1000 loop 100 times: wait 1 tick #if particle hasn't reached targeted...
  7. H

    Solved sk dragon stop effect random integer

    Okay so I am using drawLine from sk dragon and I want to know how to delete the integers i set. ex: loop 100 times: drawLine particle smoke, XYZ 0, 0, 0, center player, target location of target block, id "%player%-%random integer between 0 and 100000%", rainbowMode false, solid...
  8. H

    Solved SOLVED

    SOLVED
  9. H

    Disguise as block skript

    Is there any way to make a player disguise as a block or go invisible and have a block follow them? If not is there a way to disguise a player as a mob? Anyone?
  10. H

    Solved sk mirror not working?

    I am trying to use: on "org.bukkit.event.player.PlayerFishEvent": but it isn't working. The error I am getting is: Can't understand this event: 'on "org.bukkit.event.player.PlayerFishEvent"' I am currently using the latest version of sk mirror (1.0.0) Any suggestions?
  11. H

    Solved How to use name of clicked item in a function?

    I am trying to do somethine like: function EXAMPLE(p: player, c: name of clicked item): send "test" to {_p} if {_c} is "TEST": send "it worked" to {_p} on inventory click: function EXAMPLE(player, name of clicked item) But I can't and I get the error "Cannot recognize the type...
  12. H

    Skript skeleton bug?

    Hello, I am having trouble with a skript of mine. When I give a skeleton an iron sword it crashes the server when the skeleton tries to attack someone. Code I am using: command /test: trigger: spawn a skeleton at player's location set the weapon of the last spawned skeleton...
  13. H

    Solved :

    Okay THX
  14. H

    Solved loop-player's target entity

    I am trying to get a loop-player's target entity. How would I do this? Example: every tick: loop all players: send "hi" to target living entity
  15. H

    Add nbt without skstuff

    Hello, I am wondering if there is a way to add an nbt to an armorstand without using skstuff. (I am not looking for the console to send a command I am just wondering if it is possible without skstuff. If not then I will mark the thread as solved) Example: add "{Invulnerable:1b}" to nbt of last...
  16. H

    Solved (Sorry I don't know how to explain this)

    Hello, I have been having trouble with this for a very long time. It is kind of hard to explain what I am doing but you will understand if you look at the code: on right click on player: add 1 to {example.%player%} command /example <playername>: trigger: give 2 snowballs to...
  17. H

    Solved Last shot arrow

    Is there a way to get the last shot arrow? Something like this: command /hi: trigger: make player shoot arrow at speed 1 # set last shot arrow to {test}
  18. H

    Solved Retrieving arrow speed

    Is there a way to get arrow speed using on shoot instead of on entity shoot? on entity shoot: if projectile is arrow: set {test} to arrow speed #this works on shoot: if projectile is arrow: set {test} to arrow speed #this is what I am trying to get to...
  19. H

    Solved Setting a player's health

    Is there a way to set a player's current health (not their max health just setting what their current health is)? Something like: command /test: trigger: set the health of player to 5
  20. H

    Solved Bow pullback

    Hello, I am trying to make a skript that only works when a bow is pulled back all the way. on shoot: if projectile is arrow: # if bow is pulled back all the way: send "It works" to player How would I check if the bow is pulled back all the way?