How to check for an infinite potion effect
I want spiders to drop a potion if they naturally have a potion effect, but when i put the duration check it makes all spiders drop it no matter what.
{
"bonus_rolls": 0,
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:speed": {
"duration": {
"min": 99999,
"max": 10000000000000000
}
}
}
},
{
"condition": "minecraft:random_chance_with_enchanted_bonus",
"enchanted_chance": {
"type": "minecraft:linear",
"base": 0.900999,
"per_level_above_first": 0.001
},
"enchantment": "minecraft:looting",
"unenchanted_chance": 0.00899
}
],
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_potion",
"id": "minecraft:swiftness"
}
],
"name": "minecraft:potion",
"weight": 6
}
],
"rolls": 1
},
how do i make it only drop if its an ifinite potion effect
Continue to help post