I need it to set the spawn point whenever a player steps on a coal block.So if I stepped on a coal block it would set that coal block as the spawn point and if I were to step on a different coal block it would set the new coal block as the spawn point
var test = 0; chkx = 0; chky = 0; chkz = 0; function modTick() { if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ()) == 16) // coal ore { Level.setSpawn(chkx, chky, chkz) } if(Level.getTile(Player.getX(), Player.getY()-1, Player.getZ()) == 8) //water { setPosition(getPlayerEnt(),chkx,chky+3,chkz) } if(Level.getTile(Player.getX(), Player.getY()-1, Player.getZ()) == 9) //water { setPosition(getPlayerEnt(),chkx,chky+3,chkz) } }Ok thanks