This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello,
I just need help debugging this script...
var blockId function modTick() { blockId = Level.getTile(Player.getZ(), Player.getY()-1, getPlayerZ()); if(blockId == 3){ Entity.addEffect(getPlayerEnt(), MobEffect.waterBreathing, 180*20, 1, false, true) } }
It's supposed to give the player water breathing when he/her is standing on dirt but it does absolutely nothing, please help!
Hello,
I just need help debugging this script...
var blockId
function modTick() {
blockId = Level.getTile(Player.getZ(), Player.getY()-1, getPlayerZ());
if(blockId == 3){
Entity.addEffect(getPlayerEnt(), MobEffect.waterBreathing, 180*20, 1, false, true)
}
}
It's supposed to give the player water breathing when he/her is standing on dirt but it does absolutely nothing, please help!