Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Leaderboard

Popular Content

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

  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); }
  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; } }
  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 }
  4. 0 points
    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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.