Custom entity with object in hand

Started by Jose4T5Y on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom entity with object in hand
How can I make a custom entity hold an object?
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
with code or making the…
Fri, 10/22/2021 - 23:08

with code or making the entity a biped model

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I already put the code but…
Wed, 11/10/2021 - 17:42
I already put the code but it gives me an error

 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
of course it will give you…
Wed, 11/10/2021 - 18:02

of course it will give you an error, no one does mixed code perfectly the first time. you will have to customize it for your mob, but for that learn java

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Renderer:  public…
Mon, 11/15/2021 - 14:12

Entity Renderer: 

public class SkySkeletonRenderer {
	public static class ModelRegisterHandler {
		@SubscribeEvent
		@OnlyIn(Dist.CLIENT)
		public void registerModels(ModelRegistryEvent event) {
			RenderingRegistry.registerEntityRenderingHandler(SkySkeletonEntity.entity, renderManager -> {
				return new MobRenderer(renderManager, new Modelcustom_model(), 0.5f) {
					@Override
					public ResourceLocation getEntityTexture(Entity entity) {
						return new ResourceLocation("additional_adventure:textures/esqueletodelcielo.png");
					}

					public SkySkeletonRenderer(EntityRendererManager renderManagerIn) {
						super(renderManagerIn, new Modelcustom_model<>(), 0.6F);
						this.addLayer(new HeldItemLayer(this));

					}

The console says that this part of the code is wrong

public SkySkeletonRenderer(EntityRendererManager renderManagerIn) {

How could this be solved, or do I have to add something else?