Jump to content

Recommended Posts

Posted

Hello,

I have recently tried to get back into modding after the 1.12 update.  I have looked at the documentation and it seems to show a new way to register items.  I have followed it's instructions to the best of my ability but it still doesn't work.  Can anyone tell me what im doing wrong?

  Reveal hidden contents

 

Posted
  On 6/24/2017 at 1:30 PM, drok0920 said:

@SubscribeEvent

public void registerItems(RegistryEvent.Register<Item> event) {

GunMod.log("Registering Items");

event.getRegistry().registerAll( ak47 );

GunMod.log("Registered Items");

}

 

@SubscribeEvent

public void registerBlocks(RegistryEvent.Register<Block> event) {

event.getRegistry().registerAll( );

}

Expand  

These methods need to be static.

  • Like 1

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

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.