Attempting to use another vanilla model

Started by dracklendred@g… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Attempting to use another vanilla model
Wed, 12/29/2021 - 03:50 (edited)

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
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why is your email your…
Wed, 12/29/2021 - 05:51

Why is your email your username?

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When you say "it isn't…
Sat, 01/01/2022 - 21:20

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...?