so I created a skript for a button that would "clean" a brick. But here is the problem, if you are holding multiple bricks, it will only give back 1 iron ingot, is there a way to make it give back the same amount of iron ingots as the amount of bricks you were holding? can you please send me an edited version of this skript that will do that
[doublepost=1671831803,1671737558][/doublepost]can someone reply?
Code:
on rightclick on a stone button with brick:
if name of tool of player is "&cRusty Scrap Metal":
send "&aCleaning The Rust" to player
send "&bWait 5 Seconds Before It Is Clean!" to player
remove player's held item from player's inventory
wait 5 seconds
give player 1 iron ingot named "&7Scrap Metal"