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

    How to drop enchanted item ?

    The best way to modify extra data like enchants/NBT data/ETC is to set the item as a seperate variable THEN enchant the variable/modify it as needed and do with it what you wish (You'll also need the expression "with all flags hidden" or a different one if you plan to set all flags hidden via...
  2. Luke_Sky_Walker

    Cant unenchant armor

    You could just do this in like six lines. That would perhaps be a little more convenient. Keep in mind this has not been tested in game, it has no errors but may be impractical/undesirable:
  3. Luke_Sky_Walker

    Command not registering

    Tab completers MUST go in a separate file other than the targeted command. I used a separate file for multiple different commands I wanted to have a command completion. If you plan on doing the same, I suggest you do the same and have tab completer files entirely separate from their target...
  4. Luke_Sky_Walker

    NBT blocking

    Yep, you can with TuSke. On Inventory Move. You could also use Skript mirror to check the action of swapping and cancel that.
  5. Luke_Sky_Walker

    Create Empty List/Array

    Try this: command setuplist: trigger: clear {newlist::*} send "%{newlist::*}%"
  6. Luke_Sky_Walker

    NBT blocking

    Just found this expression on the Docs, it allows you to remove NBT data from item stacks (Requires Skellet). Maybe this is what you're looking for? Remove Item NBT
  7. Luke_Sky_Walker

    Skript inventory check not working

    One of the biggest issues I see is the invalid usage of variables. You do not need the majority of the "{item::{_n}::price}" variable. Below I've rewritten your code, check the notes I made for reasons why I changed it.
  8. Luke_Sky_Walker

    Custom Enchantments

    SkQuery. That would only be to convert numbers to their roman numeral forms though. Used like so: Number to Roman Numeral
  9. Luke_Sky_Walker

    NBT DATA

    No problem. Good luck.
  10. Luke_Sky_Walker

    NBT DATA

    NBT data (or custom model data) for custom texture packs can be kinda tricky to do so I've linked a video here to explain how to make one (I've done it before myself a few times and it's best to watch a video on it): https://www.youtube.com/watch?v=x2QwKFE0aQg. To implement these custom models...
  11. Luke_Sky_Walker

    About anvil click event

    I did a bit of quick research, this can be achieved with TuSke. It allows you the usage of an 'on anvil rename' event which should be what you're looking for.
  12. Luke_Sky_Walker

    undroppable and unremovable item from inventory

    You can use an on drop event, check if the event item is the item, then cancel the event. You can also make it so that on death, it will calculate how many of this item there is then add that amount of the item to their inventory when the player respawns.
  13. Luke_Sky_Walker

    on death skript not working

    Try putting your code through the parser
  14. Luke_Sky_Walker

    Unbreakable Items

    SkBee has an expression you can use to modify NBT components of items. You could use this to your advantage to clear the component that makes armor unbreakable for the item you want (You'll need to bit of research to set/modify the components and the number identifier for the NBT of an...
  15. Luke_Sky_Walker

    Damaging player while accounting for his armor

    Check if the victim (Player being damaged) has an armor piece or pieces equipped then reduce the total damage by a scale depending on the armor. This may not work super effectively but you could maybe check the Docs to see if there's anything on checking a player's armor points then applying...
  16. Luke_Sky_Walker

    Solved Commands without "/"

    To fix this, simply have it check a list for arguments then have it run code. Then, to have your code spit out an argument, set the message as a separate variable then split it by setting it to a list. Here's an example: on load: add "test1", "test2" and "test3" to {args::*} on chat: if...
  17. Luke_Sky_Walker

    Solved wait "%{_variable}% minutes" parsed as timespan doesn't work

    No problem! Lemme know if you have any issues and I'll see if I can help.
  18. Luke_Sky_Walker

    Solved wait "%{_variable}% minutes" parsed as timespan doesn't work

    If I am correct, your issue is having the wait inside the function. A function can be called/run multiple times, but the delay within the function itself doesn't change how often it's run but instead is for if you wanted the function to do one thing, wait, then do another. To fix your issue...
  19. Luke_Sky_Walker

    Dupe Skript (How to not dupe shulkerboxes with blacklisted items)

    My idea as to how to do this would be to check within a given interval if ANY player has a shulker box (This could be every second, use a loop). You then check the NBT of the targeted box to see if it contains a blacklisted item (You can do this using SkBee), if it does you could then have your...
  20. Luke_Sky_Walker

    Checking for number of Players

    You can accomplish this with ease using a list variable. I wrote a simple few lines of code below to show how it's done.