public void setBiome( int biome, Vector3f loc) { // not quite working yet, the client needs to reload to see the change byte[] bytes = new byte[16 * 16]; for (int i = 0; i < bytes.length; i++) { bytes[i] = (byte) biome; } Chunk chk = _world.getChunkFromBlockCoords((int) loc.getX(), (int) loc.getZ()); chk.setBiomeArray(bytes); chk.setChunkModified(); }
@Override public void executeClient(EntityPlayer thePlayer) { if (thePlayer.worldObj.provider.dimensionId == worldId) { chunk = thePlayer.worldObj.getChunkFromChunkCoords(xPos, zPos); if (chunk.isChunkLoaded) { chunk.setBiomeArray(array); AdvancedRocketry.proxy.spawnParticle( "smallLazer", thePlayer.worldObj, pos.x, pos.y, pos.z, 0, 0, 0); } } }