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

    Solved Shoot projectile towards an entity

    Just an issue with the syntax then. Probably need to remove the "in" before the direction
  2. Mr_Simba

    Solved Shoot projectile towards an entity

    This is exactly what the Skript code will be doing internally on some level, I doubt it's much more efficient to do it yourself.
  3. Mr_Simba

    Skript Lists

    What do you mean it's updating "both instances"? You can't store the same index in a list twice. If you doing something like "set {shop::%item%:: price} to 50", then do it again, you're not creating two instances, you're just creating it once then overwriting it. You need to think about why you...
  4. Mr_Simba

    Solved Shoot projectile towards an entity

    You can do "direction from %location% to %location%" to get a direction pointing from one spot to another, so it should be something like this: set {_loc} to location(919977, 128, 978119, world("water")) shoot a snowball from {_loc} at speed 1 in direction from {_loc} to loop-player
  5. Mr_Simba

    Solved %player% variables question

    I'm sure it's a bug on some level but things get really messy when you nest things so deep. You have an expression inside of a string inside of a function call being parsed as a value within a string. Why not just split it onto two lines instead of making something so confusing for the parser...
  6. Mr_Simba

    Help with armor equip and unequip bugs

    You could just loop the slot numbers instead, should be more reliable. That may actually be how I did it on my server as well, can't remember. You'd do that by replacing the loop with this: loop integers from 36 to 39: if lore of slot loop-value of {_p} contains {_lore}: add 1 to...
  7. Mr_Simba

    Solved Variable changing its value without input?

    You could've just set the variable to 1 of player's helmet instead of doing all those shenanigans.
  8. Mr_Simba

    Help with armor equip and unequip bugs

    Yeah, you just need the lore you're checking for to be in quotes still as @TPGamesNL said.
  9. Mr_Simba

    Solved How to use nbt tags on items

    Actually for dropped items the NBT is stored at a deeper level, so if you want to add NBT to the items within a dropped item entity with just SkStuff you'd have to do this: drop 1 stone hoe at {SpawnOFPistolV2} add "{Item:{tag:{CustomName:""&2Pistolet&cV2"",CustomNameVisible:1,NoGravity:1b}}}"...
  10. Mr_Simba

    Solved How to use nbt tags on items

    The syntax is: add "{stuff}" to NBT of last spawned entity. The error message is misleading but you got the syntax wrong (unless that's an alternate syntax that I'm not aware of!)
  11. Mr_Simba

    Solved How do you remove cursor AMOUNT item?

    That's not it being "backwards in Skript", that's just how it works in vanilla as well. You can also use "damage of <item>". Note that in 1.13 data values will no longer exist and all damage values have been migrated to an NBT tag.
  12. Mr_Simba

    Help with armor equip and unequip bugs

    Hi, I do similar stuff like this on my own small server, we have a lot of custom features that are reliant on RPG-style features like this (set bonuses, in this case). The function I use for this type of stuff that I've found very useful is this: function hasSetBonus(lore: text, p: player...
  13. Mr_Simba

    visual effect while wearing armor

    Does armor equip fire on login? Because if not you'd probably need a login check to start the loop too in case they log in while already wearing the armor. That's why for things like this I tend to outsource the loop into a function and call my start<Whatever>Loop function wherever it should be...
  14. Mr_Simba

    Get Enchants on Enchanted Books

    Yeah, due to recent change in Skript with how slots are handled internally some add-ons are having issues, including SkStuff. Pika talked about working on a new NBT add-on but I'm not sure if he intends to finish it and he also said future support wouldn't be guaranteed. Either that or SkStuff...
  15. Mr_Simba

    Get Enchants on Enchanted Books

    I'm actually personally unable to use item NBT in SkStuff (Tuke's fork) on dev36.
  16. Mr_Simba

    How to use a "tab" in text / string / chat?

    Everyone saying "just use four spaces" doesn't understand how tabs work in most text editors. The point of tabs is that they force things to align because tabbing brings you to the next divider. It generally doesn't just add four spaces. Y'all could do without the smartass replies when you're...
  17. Mr_Simba

    Unstable Build Help

    Send your errors. Those versions work on 1.8 for many people so this is an issue on your end. We need to know specifically what's going wrong to have any hope of helping you.
  18. Mr_Simba

    Solved Custom Farming Not Giving Item When Harvested

    Definitely want to note for @ItsMCB that the code @ShaneBee gave is way better (assuming it works, but if not it could be fixed). There's no reason to need the 'every 20 ticks' loop for this code.
  19. Mr_Simba

    Solved Variables inside Variables

    Just to make it clear why this is the case (so you better know when & where to use options in the future), options are parsed before ANYTHING else in the script. They just give very simple text replacement functionality, with the text in the option being dropped in wherever you use it before the...
  20. Mr_Simba

    Adding an effect to a damaged player

    Listen for player damage events and check if the projectile is a snowball, and if so then you can do whatever you want (like applying slowness).