Solved converting ancient debris to netherite

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

Status
Not open for further replies.

coolguy76

Member
Jun 11, 2022
2
0
1
35
can somebody help me? i want to have a command where you do /convertancientdebris. when you do this command every 1 ancient debris will give you 1 netherite ingot so lets say you have 128 ancient debris. when you do the command /convertancientdebris it will remove your 128 ancient debris and give 128 netherite ingots. does anybody know how to do this?
 
Try this:

Code:
command /convertancientdebris:
    trigger:
        if player does not have ancient debris in their inventory:
            send "&eYou have nothing to convert." to player
        else:
            set {_a} to amount of ancient debris in player's inventory
            remove {_a} of ancient debris from player's inventory
            give player {_a} of netherite ingot
            send "&eConverted &b&l%{_a}% &eAncient Debris to netherite." to player
 
Status
Not open for further replies.