Jump to content

Recommended Posts

Posted (edited)

I created an enitity in the version 1.18.2 but when i try to summon it , the game instantly crash. That's the crash report

  Reveal hidden contents

That's the last log

  Reveal hidden contents

 

Edited by zSkell
Posted (edited)

I registered like this :  EntityRenderers.register(ModEntityTypes.ASH_GOLEM.get(), AshGolemRender::new);

In infernum wich is my modid name

do i have to register it in another way?

Edited by zSkell
Posted (edited)

I'm sorry but i'm stupid , so if you can actually tell me what to do , i will really apreciate it

 

Edited by zSkell
Posted (edited)

I know, in fact I'm learning something, only this thing about events is not very clear to me, obviously I still have a lot to learn but I'll try.

Edited by zSkell
Posted (edited)

oh i think i fixed it i added eventBus.addListener(this::clientSetup);

The game didn't crash ,the entity it's spawned with summon and the animations works , but  the mod walk in reverse and he don't spawn randomly lol

 

Edited by zSkell
Posted (edited)

Thank you so much , it works . But now i just want to know because he walk in reverse and how to make it attack the players , i added this:

this.targetSelector.addGoal(7, new NearestAttackableTargetGoal<>(this, Player.class, true));

but it doesn't work 

and i don't know also how to add another animation when he attack

 

Edited by zSkell
  • 1 year later...
Posted

Yeah, ur mod is walking in reverse because you put it the other way in blockbench. You see that "n" on the floor in blockbench? That represents the north. Your entity must face the north in order to walk correctly.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.