How can i make custom hidden drops?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

TheDever

Member
Sep 2, 2023
30
4
8
So i tried to make a dropping item and i used a command to test it. But i can't figure out
how you can hide the attributes. Like example, i want to hide the mending enchantment!

I need someone to help me with this script!

Code:
command /test:
    trigger:
        give player 1 porkchop of mending named "&aEnchanted Pork" with lore "&a&lUNCOMMON" with nbt "{HideFlags:63}" #need to fix all enchantements hidden!

Then after i fix that, i will add it to the script below to make farm animals for my MMORPG!

Code:
on death:
    if attacker is player:
        if victim is a pig:
            clear drops
            drop 1 porkchop named "&fRaw Pork" with lore "&f&lCOMMON"

Thank you to everyone who helped me!
 
So i tried to make a dropping item and i used a command to test it. But i can't figure out
how you can hide the attributes. Like example, i want to hide the mending enchantment!

I need someone to help me with this script!

Code:
command /test:
    trigger:
        give player 1 porkchop of mending named "&aEnchanted Pork" with lore "&a&lUNCOMMON" with nbt "{HideFlags:63}" #need to fix all enchantements hidden!

Then after i fix that, i will add it to the script below to make farm animals for my MMORPG!

Code:
on death:
    if attacker is player:
        if victim is a pig:
            clear drops
            drop 1 porkchop named "&fRaw Pork" with lore "&f&lCOMMON"

Thank you to everyone who helped me!
Using the latest version of Skript, you will need to use item flags (Click to view the expression on the Docs).
Code Example:
give player 1 of diamond of protection 1 with item flag hide enchants