eval this.modTick=function(){
var px=Player.getX();
var py=Player.getY();
var pz=Player.getZ();
if(Level.getTile(px,py-2,pz)==159){
switch(Level.getData(px,py-2,pz)){
case 13:
Entity.addEffect(getPlayerEnt(),MobEffect.movementSpeed,1*20,2,false,true);
break;
case 1:
Entity.addEffect(getPlayerEnt(),MobEffect.jump,1*20,3,false,true);
break;
case 15:
Entity.addEffect(getPlayerEnt(),MobEffect.blindness,5*20,3,false,true);
break;
case 8:
Entity.addEffect(getPlayerEnt(),MobEffect.movementSlowdown,1*20,4,false,true);
break;
case 11:
Entity.addEffect(getPlayerEnt(),MobEffect.confusion,5*20,1,false,true);
break;
case 14:
Entity.addEffect(getPlayerEnt(),MobEffect.regeneration,1*20,0,false,true);
break;
case 4:
Entity.addEffect(getPlayerEnt(),MobEffect.poison,4*20,2,false,true);
break;
case 9:
Entity.addEffect(getPlayerEnt(),MobEffect.waterBreathing,60*20,1,false,true);
break;
}
}
}