Attempting to use another vanilla model

Started by dracklendred@g… on

Topic category: Help with modding (Java Edition)

Last seen on 23:25, 8. Apr 2024
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
Last seen on 03:52, 28. Jul 2023
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?

Last seen on 02:51, 19. Feb 2022
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...?

Last seen on 23:25, 8. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it crashes every time i load…
Mon, 03/28/2022 - 20:16

it crashes every time i load the mod