Jump to content

[1.13.2] converting mod from 1.12.2 How to fix the errors?


Recommended Posts

Posted (edited)

... You create a method in your custom entity class.

Edited by DavidM
I'm bad with rhetorical questions

Some tips:

  Reveal hidden contents

 

Posted

Now the method itself is there, but i need some help with the command-line, that runs the method with the entity-specific vaules:

  Reveal hidden contents

I don´t know, what i have to fill in at "IForgeRegistry<Item> itemRegistry" and "Function<? super World, T> factory"

  • 2 weeks later...
Posted
  Quote

if i replace "Entity" with "EntityType" it still has problems with that

And i thaught, because i need only one of your line, there must be placeholders, that i can replace them with the specific parameters of each of my entitys later in another location.

 

can you just show me a whole registry-event area with block, item and entity - events correctly added

Expand  


You need to do

registerEntityType(RegistryEvent.Register<EntityType<?>> ev)

 

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.