coolguy76 Posted June 11, 2022 Share Posted June 11, 2022 (edited) I am trying to convert ancient debris into netherite ingots. so every time you do the command /convertancientdebris it will check your inventory and if you have lets say you have 128 ancient debris. then it will give you 128 netherite ingots. Heres the script I already have. command /convertancientdebris: trigger: set {_netheriteingot} to amount of ancient_debris in player's inventory this isn't working can somebody help? Edit: I figure it out the code is 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 Edited June 12, 2022 by coolguy76 i figured out the code want people to be able to see my code Link to comment Share on other sites More sharing options...
FadedBlue_ Posted June 11, 2022 Share Posted June 11, 2022 no one answering wow i actualy came here for this too Link to comment Share on other sites More sharing options...
coolguy76 Posted June 12, 2022 Author Share Posted June 12, 2022 figured out the code its 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now