#Change amount of item in player's inventory?

1 messages · Page 1 of 1 (latest)

dense juniper
#

So I'm trying to make it where when a player has a special of bucket that can collect lava. Without using the special bucket. Which I have that part done
But Because you can't normally stack buckets, I was going to try to change the amount a player has

if {Bucket_Item_Remaining} is greater than {Bucket_Item_Get}:
  set {Bucket_Item_Give} to {Bucket_Item_Remaining} - {Bucket_Item_Get}
  if {%{Bucket_name}% Item Override} is set:
    set amount of {Bucket_item} in player's inventory to {Bucket_Item_Remaining}

Bucket_Item_Get, is how many is in the player's inventory
Bucket_Item_Remaining, is how much is left after compression
Bucket_name, is the ID name of the "block" to get the settings correlated to it
Bucket_item, is the item the player gets (lava bucket named "&cLava")

This is the error I get

swift lark
#

set {var} to x

#

try this way

dense juniper
# swift lark set {var} to x

so

set {Bucket_item} to #

? I dont think that will work because its set to an item in skript and not the item in inventory

swift lark
#

no the remaining

#

set remaining to amount...

dense juniper