#Modifying a datapack. The duration of the effect not go over 30 second despite I setting it to 50

1 messages · Page 1 of 1 (latest)

vestal citrus
#

I set the duration of the effects to 50sec to make the regeneneration effect regenerate 20hp, but after testing it out in game. The duration is 30 second despite I setting it to 50. How do I make it go up to 50?

"minecraft:consumable": {
"consume_seconds": 1,
"animation": "none",
"sound": "minecraft:entity.slime.squish",
"on_consume_effects": [
{
"type": "apply_effects",
"effects": [
{
"id": "minecraft:regeneration",
"amplifier": 0,
"second": 50
}
,{
"id": "minecraft:slowness",
"amplifier": 3,
"second": 50
}
,{
"id": "minecraft:weakness",
"amplifier": 0,
"second": 50
}
]
}
]
}

tepid boneBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1746386323:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

pure spade
#

second is not a valid key here

#

You need to use duration, which will be an integer representing the number of ticks it will last. 20 ticks = 1 second

vestal citrus
pure spade
#

Show your work

vestal citrus
#

"minecraft:consumable": {
"consume_seconds": 1,
"animation": "none",
"sound": "minecraft:entity.slime.squish",
"on_consume_effects": [
{
"type": "apply_effects",
"effects": [
{
"id": "minecraft:regeneration",
"amplifier": 0,
"duration": 1000
}
,{
"id": "minecraft:slowness",
"amplifier": 3,
"duration": 1000
}
,{
"id": "minecraft:weakness",
"amplifier": 0,
"duration": 1000
}
]
}
]
},

pure spade
#

Looks fine, I don't see any reason the duration shouldn't be 50 seconds

#

Make sure you're testing with a new item

vestal citrus
tepid boneBOT