import*as mc from"@minecraft/server";import*as vector from"../utils/vector";import*as effects from"../effects";export function foodFinishUse(e){"minecraft:milk_bucket"===e.itemStack.typeId&&e.source.setDynamicProperty("hf_mzs:poison_resistance",1),"hf_mzs:luminous_jelly"===e.itemStack.typeId&&e.source.addEffect("night_vision",1200,{amplifier:1,showParticles:!0}),"hf_mzs:potion_poison_resistance"===e.itemStack.typeId&&("survival"!==e.source.getGameMode()&&"adventure"!==e.source.getGameMode()||e.source.runCommand("/give @s glass_bottle"),effects.applyPoisonResistance(e.source,60),e.source.removeEffect("poison"))}