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

    Solved Strange stuff with TuSKe Gui?

    There's your problem. Each time it loops, it opens a new virtual chest. Putting the chest effect before the loop should fix this. open virtual chest inventory with size 3 named "Loot Chest" to the player loop 27 times: wait 1 tick # code
  2. PatoFrango

    Push player back

    push player backwards at speed 4
  3. PatoFrango

    Solved Nearest entity to location

    Hi, I'm sorry if I'm overposting, but how can I detect the nearest entity to a location/entity? Is there like a "nearest" expression? I've done some research and I saw a few people using that, but it didn't work for me. If there isn't, what would be the best way of doing so? I've tried coding...
  4. PatoFrango

    Solved Sentry

    It's supposed to be a sentry. Sentries shoot at targets, but here I decided to use the "damage" effect and not the "shoot an arrow" one. Either way, this was indeed a Skript bug. I solved it. I had to separate 3/4 of the code and put it on a function for it to work. It's the exact same thing...
  5. PatoFrango

    Solved Why this code gives the player a log or a leave not just a log?

    He said the problem was with the if and the else.
  6. PatoFrango

    Solved Why this code gives the player a log or a leave not just a log?

    if {fatorony} is not the player:
  7. PatoFrango

    Solved Sentry

    Hi, So I’m trying to code some kind of sentry that shoots one pig at a time in a radius of 5. The thing is, I have multiple sentries set up and each one of them should work individually. The problem here is when one of them detects a pig, the other ones start shooting at it too, even if it’s not...
  8. PatoFrango

    Solved Make armor stand face entity

    Oh my God, thank you so much, I was already getting in some arc tangent shit...
  9. PatoFrango

    Solved Make armor stand face entity

    Hi, How can I make an armor stand face a nearby zombie?
  10. PatoFrango

    Solved If loop-entity is set

    I had already tried something like that, and it worked. Yes, the issue was what Donut said. Thank you both. loop all armor stands in radius 2 of {_block}: if loop-entity is set: send "{@prefix} &cTest" set {_found} to true if {_found} is not set: # code
  11. PatoFrango

    Solved hey! plz help

    Ah, the issue here is, when you pasted my code, you had to replace all the spaces that look like tabs by actual tabs. Here in the forums, when you paste code, all tabs are replaced with spaces, so if you do that you should be good to go.
  12. PatoFrango

    Solved hey! plz help

    I see, try to cancel the event so no water gets poured. The "cancel event" effect is one of the most useful things you can have out there. What it basically does is, as the name says, it cancels whatever event it belongs to. Cancelling a rightclick event will make as if the player had never...
  13. PatoFrango

    Solved hey! plz help

    Hey, it's easier than you think :emoji_slight_smile: on rightclick on grass: player's tool is water bucket grow a regular tree above the clicked block You obviously change the "regual tree" part to the type of tree you wish to grow. The list of existing tree types can be found here.
  14. PatoFrango

    Solved Damage animation on mobs

    I don't think there's such thing as a "damage animation". What you can do though is damage the entity by 0 hearts, which "simulates" the hurting of the entity, even though its health didn't change.
  15. PatoFrango

    Solved If loop-entity is set

    Hi, I'm coding a thing that loops all armor stands in radius of a block. What I want to do is, if it finds indeed an armor stand, it sends a message saying "Test". If not, it sends "lol". The thing is, when it's supposed to say "lol", in other words, when no armor stand is found, simply...
  16. PatoFrango

    My play sound effect don't work and don't show log errors

    That's odd, I've always used dots (because they're used in the actual sound id's, if you use the /playsound command you'll need to write them with dots) and it works. Maybe it's an alias of some sort then.
  17. PatoFrango

    My play sound effect don't work and don't show log errors

    Except it's "entity.generic.eat", dots instead of underscores.
  18. PatoFrango

    Solved Prevent drop of item

    on drop: line 1 of lore of event-item is “lorehere” cancel event on inventory click: line 1 of lore of clicked slot is “lorehere” cancel event
  19. PatoFrango

    cancel on move or while in combat.

    Yes, SkQuery has a “on any movement” event, called whenever a player moves his body, even his head. on any movement: cancel event That would prevent the player from moving at all. Now, it’s more complicated to do a “is in combat” check, as I believe there is no such condition. You’d have to...