Topic category: Help with modding (Java Edition)
Hello, I have a GUI connected to a block and when you click the "Buy" button this code is executed. I would like that one armor cost 100 Idamanten and that this will then be removed. Now I have the problem that if you only have 60 diamonds they are pulled off and you still get the armor. Now the code should recognize how many diamonds I have and only remove the diamonds and give out the armor if there are 100 diamonds. Can somebody help me?