mojira.dev

Nate Eng

Assigned

No issues.

Reported

Comments

oh yes I see that tilex is wrong and is supposed to be 161 but what command would I use

What would I use then?

Oh haha silly me! Thanks!

Speaking of scoreboards, you gave me an idea. I could create a scoreboard objective and every time a player obtains a splash potion their scoreboard objective will gain a point. Then, if their scoreboard objective is at least 2, then it will clear their inventory of splash potions of water and reset the scoreboard. Thanks for all your help!

Ok, I have:

/testfor @p {Inventory:[{id:"minecraft:splash_potion",Count:2,tag:{Potion:minecraft:water}}]}

But it doesn't work...

Ok, thank you, however if I plugged this into a command block it didn't work:

[09:09:33] Could not clear the inventory of iheartfly, no items to remove

This happened because I had the command block clear the player of water splash potions then give them one. Since I had the command running to clear the player's inventory of water bottles and there weren't any, it messed it up. I have the commands in this order so that the player can only have one potion at a time. How can I fix this?

However I do have one question. If I wanted to have a villager sell a potion, I would originally have had the following: sell: {id: "potion", Damage:16248, Count: 64}, rewardExp: false}.

I tried putting the following but it didn't work:

sell: {id: "splash_potion", Potion:harming, Count: 64}, rewardExp: false}.

What would the command be in the new update?