Jump to content

Removing Item from Inventory[Solved]


quadrinka4

Recommended Posts

So, I am trying my butt off to remove items from a player's inventory once the command is run. Although I can't figure out this simple code why it wouldn't work. 

I've tried so far:

 

 

getPlayer():getInventory():DoRemoveItem("Apple");

getPlayer():getInventory():Remove("Base.Apple");

getPlayer():getInventory():Remove(Apple);

getPlayer():getInventory():Remove(Base.Apple);

getPlayer():getInventory():Remove("Base.Apple"itemType(Food));

getPlayer():getInventory():RemoveOneOf("Base.Apple");

 

 

none of them is working... 

Remove("Base.Apple"); runs without error but it doesn't actually remove apple from the inventory.. 

Help please?

 

Thanks in advance~

Edited by quadrinka4
Link to comment
Share on other sites

17 minutes ago, RobertJohnson said:

RemoveOneOf("Apple") or Remove("Apple") should work

 

Im really really.. dumb for not trying that... T-T 

Thank you T--T

 

Now, how would I remove the multiple items?

Edited by quadrinka4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...