• 0

    posted a message on Can't spawn an existing mob

    Hi all, sorry if this question is a little bit stupid, but I was wondering why I couldn't spawn already existing mobs. I had tried spawning the Giant mob in this code here, but I'm not sure what I'm doing wrong:

    @Mod.EventBusSubscriber(modid = mod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
    public class ModEntitySpawns {

    @SubscribeEvent
    public static void spawnEntities (FMLLoadCompleteEvent event, World world) {
    for (Biome biome: ForgeRegistries.BIOMES) {
    if (biome.getCategory() != Biome.Category.OCEAN) {
    biome.getSpawns(EntityClassification.MONSTER).add(
    new Biome.SpawnListEntry(EntityType.GIANT, 100, 3, 16)
    );
    }
    }
    }
    }
    Posted in: Modification Development
  • 0

    posted a message on Change player permission to fly

    Is there a way to do the equivalent of `player.capabilities.allowFlying = true;` in the 1.16 version of Forge?

    Posted in: Modification Development
  • 0

    posted a message on Boots that walk over lava

    How would you go about making boots in which you can walk over lava?

    Posted in: Mods Discussion
  • 0

    posted a message on How would you implement a chestplate that allows you to fly?

    Thanks a ton! Is there similar mod with open-source code to make it so that you can walk on lava?

    Posted in: Modification Development
  • 0

    posted a message on How would you implement a chestplate that allows you to fly?

    How would you go about creating an chestplate that allows you to fly while it's on? I've created a basic set of armor and tools, but I'm not exactly sure how I should go about implementing this. If somebody could walk me through this, it would be much appreciated.


    Sorry for the lack of detail, I'm quite new to the modding scene and all of this is quite overwhelming. Thanks a ton!

    Posted in: Modification Development
  • To post a comment, please .