Started by
dracklendred@g…
on
Topic category: Help with Minecraft modding (Java Edition)
So Im trying to add another Illager variant but my code isnt working right, what do i need to change?
import net.minecraft.util.ResourceLocation; import net.minecraft.entity.Entity; import net.minecraft.client.renderer.entity.model.IllagerModel; import net.minecraft.client.renderer.entity.MobRenderer; import net.mcreator.revampage.entity.KillagerEntity; @OnlyIn(Dist.CLIENT) public class KillagerRenderer { public static class ModelRegisterHandler { @SubscribeEvent @OnlyIn(Dist.CLIENT) public void registerModels(ModelRegistryEvent event) { RenderingRegistry.registerEntityRenderingHandler(KillagerEntity.entity, renderManager -> new MobRenderer(renderManager,IllagerModel(0), 0.5f) {
Edited by dracklendred@gmail.com on Wed, 12/29/2021 - 03:50
Why is your email your username?
When you say "it isn't working right", what is wrong with it? Are you getting any errors in the console or is it not working properly in game...?
it crashes every time i load the mod