Après une trèèèèèèèèèèèèèèèèèèèèèèèèèèèèèèès longue pause, j’ai finalement trouvé la solution :
world.setBlock(x + 4, y + 1, z + 4, Blocks.mob_spawner, 0, 2); TileEntityMobSpawner tileentitymobspawner = (TileEntityMobSpawner)world.getTileEntity(x + 4, y + 1, z + 4); if (tileentitymobspawner != null) { tileentitymobspawner.func_145881_a().setEntityName(this.pickMobSpawner(rand)); } else { System.err.println("Failed to fetch mob spawner entity at (" + (x + 4) + ", " + (y + 1) + ", " + (z + 4) + ")"); }Sujet résolu.