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.

Kolan

Members
  • Joined

  • Last visited

  1. I created it in Blockbench with Geckolib plugin. It looks like this:
  2. JSON file with attack and walk animation
  3. Hi. I've made an entity, but I don't know how to animate it. I have JSON file with animation, but how to implement it to my code?
  4. Kolan replied to Kolan's topic in Modder Support
    Thanks to all of you, I wouldn't fix it without you guys!
  5. Kolan replied to Kolan's topic in Modder Support
    ModEntities: package com.kolan.thoriummod.Entity; import com.kolan.common.entity.impostor; import com.kolan.thoriummod.Thorium; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.MobCategory; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModEntities { private ModEntities() {} public static final DeferredRegister<EntityType<?>> ENTITIES = DeferredRegister.create(ForgeRegistries.ENTITIES, Thorium.MOD_ID); public static final RegistryObject<EntityType<impostor>> IMPOSTOR = ENTITIES.register("impostor", () -> EntityType.Builder.of(impostor::new, MobCategory.MONSTER).sized(0.8f,0.8f) .build(new ResourceLocation(Thorium.MOD_ID, "impostor").toString())); public static void register(IEventBus eventBus) { } }
  6. Kolan replied to Kolan's topic in Modder Support
    package com.kolan.thoriummod.Event; import com.kolan.common.entity.impostor; import com.kolan.thoriummod.Entity.EntityInit; import com.kolan.thoriummod.Thorium; import net.minecraftforge.event.entity.EntityAttributeCreationEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(modid = Thorium.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class CommonModEvents { @SubscribeEvent public static void registerAttributes(EntityAttributeCreationEvent event){ event.put(EntityInit.IMPOSTOR.get(), impostor.createAttributes().build()); } }
  7. Kolan replied to Kolan's topic in Modder Support
    Mod main class: package com.kolan.thoriummod; import com.kolan.thoriummod.Entity.ModEntities; import com.kolan.thoriummod.block.ModBlocks; import com.kolan.thoriummod.item.ModItems; import com.mojang.logging.LogUtils; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.slf4j.Logger; @Mod("thorium") public class Thorium { private static final Logger LOGGER = LogUtils.getLogger(); public static final String MOD_ID = "thorium"; public Thorium() { IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus(); ModEntities.register(eventBus); ModItems.register(eventBus); ModBlocks.register(eventBus); eventBus.addListener(this::setup); MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { } private void doClientStuff(final FMLClientSetupEvent event) { } } Entity registry: package com.kolan.thoriummod.Entity; import com.kolan.common.entity.impostor; import com.kolan.thoriummod.Thorium; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.MobCategory; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class EntityInit { private EntityInit(){ } public static final DeferredRegister<EntityType<?>> ENTITIES = DeferredRegister.create(ForgeRegistries.ENTITIES, Thorium.MOD_ID); public static final RegistryObject<EntityType<impostor>> IMPOSTOR = ENTITIES.register("impostor", () -> EntityType.Builder.of(impostor::new, MobCategory.CREATURE).sized(0.5f,0.5f) .build(new ResourceLocation(Thorium.MOD_ID, "impostor").toString())); }
  8. Kolan replied to Kolan's topic in Modder Support
    Ok, I changed it, but I have different error in my logs What has happened here?
  9. Kolan replied to Kolan's topic in Modder Support
    But what does it mean?
  10. Kolan replied to Kolan's topic in Modder Support
    That's all I got
  11. Kolan posted a topic in Modder Support
    Hi. I tried to add custom entity to my mod, but an something has happened. My game crashes after loading a world, and in logs file I can see: Part of the code looks like this: package com.kolan.thoriummod.Event; import com.kolan.common.entity.Impostor; import com.kolan.thoriummod.Entity.EntityInit; import com.kolan.thoriummod.Thorium; import net.minecraftforge.event.entity.EntityAttributeCreationEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(modid = Thorium.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class CommonModEvents { @SubscribeEvent public static void registerAttributes(EntityAttributeCreationEvent event){ event.put(EntityInit.IMPOSTOR.get(), Impostor.createAttributes().build()); } } What can I do? Thanks in advance

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.