I have a frustrating issue, I've searched high and low for an answer and can't figure it out, but I know it's something extremely simple.
I place a Cauldron, and it should add the Cauldron to a list. This works, but ONLY if I have a single Cauldron in my hand when I place it down. If I am holding more than one (ie a stack of 64; even just 2) it doesn't recognize I've placed it and add it to the list. I can click all I want (in survival or creative) and it just places Cauldrons until I get to the last Cauldron (because that means I'm only holding 1). I can use "an amount of" instead of "is 1 of", but then it only works if the player is holding multiple of the item. I need it to test for 1 or more without duplicating my code (there's a lot of code).
Snippet from my code:
I have also tried - remove 1 of player's tool from player's tool - but this isn't really helpful.
I've found a similar thread on MineHut but no viable solution:
I place a Cauldron, and it should add the Cauldron to a list. This works, but ONLY if I have a single Cauldron in my hand when I place it down. If I am holding more than one (ie a stack of 64; even just 2) it doesn't recognize I've placed it and add it to the list. I can click all I want (in survival or creative) and it just places Cauldrons until I get to the last Cauldron (because that means I'm only holding 1). I can use "an amount of" instead of "is 1 of", but then it only works if the player is holding multiple of the item. I need it to test for 1 or more without duplicating my code (there's a lot of code).
Snippet from my code:
Code:
on place of cauldron:
if player's tool is 1 of cauldron named "&cBroken Cauldron":
if player's tool an amount of cauldron named "&cBroken Cauldron": #ALTERNATIVELY, I have tried this...
set {_loc} to location of event-block
add {_loc} to {cauldrons::*}
send "Cauldron placed!" to player
I have also tried - remove 1 of player's tool from player's tool - but this isn't really helpful.
I've found a similar thread on MineHut but no viable solution:
Loading…
forums.minehut.com
Last edited: