#ReferenceError: 'MinecraftEffectTypes' is not defined at onHitEntity
1 messages · Page 1 of 1 (latest)
include MinecraftEffectTypes in your imports
import { world, MinecraftEffectTypes } from "@minecraft/server"
ty
uh
[Scripting][error]-Plugin [Decaying winter BP - 1.0.0] - [main.js] ran with error: [SyntaxError: Could not find export 'MinecraftEffectTypes' in module '@minecraft/server']
it's not there. Where did you even get this property from?
MinecraftEffectTypes? From Microsoft documentation examples
It seems like there is such a thing in the code examples in the documentation, but it is imported from a non-existent module..
Yea, i tried to add "vanilla-data", but it seems like not exist
just use a string
whta?
entity.addEffect("blindness")
How i can make it for only 5 seconds?
or it will apply for 5 seconds
wait, this is exactly same page i used
???
alright
entity.addEffect("blindness", 100)
this?
thanks
i will check this rq