Skript Version: Skript 2.3.6
Skript Author: Bensku
Minecraft Version: 1.13.2
I've got the Problem that Skript removes to many items from a list variable. In this script {shop::*} contains 128 tnt blocks and the customer wants to buy 1 tnt block ({customerwish}). Now the problem: If someone buys 1 block, the script removes 64 blocks from the list. Does someone have an idea how to fix this?
Skript Author: Bensku
Minecraft Version: 1.13.2
I've got the Problem that Skript removes to many items from a list variable. In this script {shop::*} contains 128 tnt blocks and the customer wants to buy 1 tnt block ({customerwish}). Now the problem: If someone buys 1 block, the script removes 64 blocks from the list. Does someone have an idea how to fix this?
Code:
command /buy:
trigger:
if {shop::*} contains {customerwish}:
remove {customerwish} from {shop::*}
give {customerwish} to player