Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/01/21 in Posts

  1. Your code still using spawnInfo.getEntityTypes() which for enderman is only going to match 2 biomes. It looks like your mob extends an AnimalEntity, which wants to spawn on grass blocks (probably none are in the end), since you use stuff from MonsterEntity, then you could copy their code (adjust as necessary) into your mob: @Override public float getWalkTargetValue(BlockPos pos, IWorldReader world) { return 0.5F - world.getBrightness(pos); }
    1 point
  2. Set<EntityType<?>> entityTypes = spawns.getEntityTypes(); is returning entities with spawn costs, which only 2 nether biomes have them for enderman. Try something like this: List<Spawners> list = spawns.getSpawner(EntityType.ENDERMAN.getCategory()); for (Spawners entry : list) { if (entry.type == EntityType.ENDERMAN) { int weight = 10; if (event.getCategory() == Biome.Category.NETHER) { weight = 1; } spawns.addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(ModEntities.MY_MOB, weight, 1, 4)); break; } }
    1 point
  3. Finally cracked it. In case useful to anyone else, in the client you have to manually clear the headless state: MyClassConstructor() { // .... DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> { initRobot(); }); } void initRobot() { System.setProperty("java.awt.headless", "false"); try { this.robot = new Robot(); } catch (AWTException e){ e.printStackTrace(); } PointerInfo pointerInfo = MouseInfo.getPointerInfo(); // you can now use all the usual Robot class methods }
    1 point
  4. Forge isn't a mod. Don't put it in your mods folder. siodemkacavebiomes isn't a Forge mod. You can't use it with Forge. I don't know what's wrong with Biomes O'Plenty, but removing it should fix whatever problem it's having.
    0 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.