1

I just made a command for an invisibility potion that lasts 25 seconds. (3 min is way to long for the mini-game I am making.) Here is the code:

/give @p minecraft:potion{CustomPotionEffects:[{Id:14,Duration:500,ShowParticles:0b}],CustomPotionColor:16576248,display:{Name:"\"Potion of Invisibility\""}}

I just don't know how to turn it into put it into this villager trade command:

{buy:{id:emerald,Count:2},sell:{id:potion,Count:1,tag:{Potion:"minecraft:invisibility"}}}]}}\

It would be in place of the sell portion.

2

The tag tag contains all the NBT tags of the item, so you simply put CustomPotionEffects, CustomPotionColor and display into there.

  • okay ill try it! – tanner Oct 4 at 0:52
  • I tried this but it didn't work any tips @Fabian? {buy:{id:emerald,Count:2},sell:{id:potion,Count:1,tag:{minecraft:{CustomPotionEffects:[{Id:14,Duration:500,ShowParticles:0b}],CustomPotionColor:16576248,display:{Name:"\"Potion of Invisibility\""}}}} – tanner Oct 4 at 1:24
  • @tanner The minecraft: part does not belong. – pppery Oct 4 at 2:01
  • Thanks! it worked!!! @pppery – tanner Oct 4 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.