Mojira Archive
MC-142061

Saturation effect can't have duration applied to a potion, but can using /effect

So i was trying to make a potion that had saturation 4 for 6000 ticks.  So that i could make items they could buy to keep their hunger full for a set amount of time. But when i tried.

What i did:

/give @p minecraft:potion{CustomPotionEffects:[{Id:23b,Amplifier:4b,Duration:6000}]} 1

What should of happened:

Have gotten a potion when drank, refills your hunger completely for 5 minutes.

What actually happened:

Just filled my hunger for a second.

How to make it work:

/effect give {name} minecraft:saturation 600 4

 

I dont see why the saturation effect shouldnt be allowed to have a duration tag attached to it when its in potion form but can in a base command. Please add it.

Unresolved

Ghostly

2019-01-11, 01:08 AM

2024-09-02, 04:48 AM

12

7

Confirmed

Items

item

Minecraft 1.13.2 - 1.21 Pre-Release 4Minecraft 1.13.2, 1.15.1, 1.16 Release Candidate 1, 1.16, 20w51a, 21w03a, 1.16.5, 21w06a, 21w08b, 21w10a, 21w20a, 1.17, 1.17.1, 1.19.3, 1.19.4 Pre-release 1, 1.19.4, 1.21 Pre-Release 4

-