Player becomes invisible in tall grass when crouching
OriginalNovember 10, 2024Less than 1 minute
Player becomes invisible in tall grass when crouching
PlayerEvents.tick((event) => {
const { player } = event;
if (player.shiftKeyDown && player.block.id === "minecraft:tall_grass") {
if (!player.hasEffect("invisibility")) {
player.potionEffects.add("invisibility", -1, 0, false, false);
}
} else {
player.removeEffect("invisibility");
}
});