Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a keybind, which when pressed, will check if the player has an effect, and if it does, it will execute an action. For some reason no matter what I do it will not see I have the effect, even when I have it. I tried checking directly with the [has (event/target entity) active potion (exampleEffect)], the [get effect amplifier of potion (exampleEffect) for (event/target entity)] and [get remaining ticks of potion (exampleEffect) for (event/target entity)], nothing worked. Does anyone know how to fix this?
Note: I'm on 2026.1 with the FabricGenerator plugin
i also found out i cant make custom particles or dimensions when using FabricGenerator which is sad but what can you do
another note: when i do the last 2 (the amplifier and remaining ticks) it just returns as 0