#how to remove modded item from player's inventory?

1 messages · Page 1 of 1 (latest)

spark rover
#

if I use this code:
set {_item} to player's tool
remove 1 {_item} from player's tool
error: 1 {_item}' can't be removed from a slot because the former is neither an item type nor an item stack (item.sk, line 117: remove 1 {_item} from player's tool

fierce tendon
#

You can't remove items from their tool

#

You can remove items from their inventory

fierce tendon
#

@hidden notch if I'm incorrect you're free to send the code to do so

tiny lichen
#

you need of when using a variable as part of an item and amount

#

or even better is to just do remove 1 from item amount of player's tool

fierce tendon
#

I said that first but then I realised that it's from their held slot and I didn't know that you can remove items from their selected slot ...

#

Guess I learnt something today