Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello

my error-log now shows this:

Reveal hidden contents

 

It leads me to this:

@SubscribeEvent
		public static void registerEntities(final RegistryEvent.Register<EntityType<?>> event)
		{
			event.getRegistry().register(EntityType.Builder.create(EntityRed.class, EntityRed::new).tracker(32, 1, true).build(Reference.MOD_ID + ".red"));
			event.getRegistry().register(EntityType.Builder.create(EntityChuck.class, EntityChuck::new).tracker(32, 1, true).build(Reference.MOD_ID + ".chuck"));
			event.getRegistry().register(EntityType.Builder.create(EntityBlues.class, EntityBlues::new).tracker(32, 1, true).build(Reference.MOD_ID + ".blues"));
			event.getRegistry().register(EntityType.Builder.create(EntityBomb.class, EntityBomb::new).tracker(32, 1, true).build(Reference.MOD_ID + ".bomb"));
			event.getRegistry().register(EntityType.Builder.create(EntityMathilda.class, EntityMathilda::new).tracker(32, 1, true).build(Reference.MOD_ID + ".mathilda"));
			RenderHandler.regigisterEntityRenders();
			LOGGER.info("Entities registered.");
		}

 

what does it mean, what exactly i have to fix?

Edited by Drachenbauer

  • Replies 62
  • Views 28.3k
  • Created
  • Last Reply

Top Posters In This Topic

  On 2/21/2019 at 8:09 PM, Drachenbauer said:

Can't use a null-name for the registry

You never set the registry names of any of your entity types. The builder has a method to set the registry name

Edited by Cadiboo

About Me

Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author

i thaught, the

Reference.MOD_ID + ".red"

part at the end of the lines makes the registtry names.

 

And i find no "setRegistryName" in the strg-space-dropdown-menu in the entity-classes...

Edited by Drachenbauer

You’re passing in a translation key to that method. And I think that it did used to set the registry name in 1.12.2. It appears that now you need to call setRegistryName on the built entity entry. You can see vanilla/Forge doing something similar at the top of the EntityEntry class in the the register method.

About Me

Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author

can you tell me how that should look exactly?

 

In some other threads i already told, that i cannot open the minecraft included java-docks, because my eclipse cannot find them through the imports in my files.

  • Author

Now i get no more errors in log, and i can enter my test world.

 

But if i open the creative-inventory, i see black-purple-checkered boxes instead of my spawn-eggs.

And if i try to use them, just a common chicken appears instead of my custom birds...

 

My Main-class:

Reveal hidden contents

 

The three classes of my red bird:

 

The EntityRed-class:

Reveal hidden contents

 

The ModelRed-class:

Reveal hidden contents

 

The RenderRed-class:

Reveal hidden contents

What do i need to change, to make my entitys work right?

Edited by Drachenbauer

  • Author

http://www.minecraftforge.net/forum/topic/68854-how-to-register-a-spawn-egg-as-item/

In this thread V0idWa1k3r posted this:

 

  Quote

public static EntityType<EntityItem> storedItemType;
    
@SubscribeEvent
public static void onItemRegistry(RegistryEvent.Register<Item> event)
{
    // Here for example I am creating a type for the EntityItem, you would need your own entity here with your own parameters.
    storedItemType = EntityType.Builder.create(EntityItem.class, EntityItem::new).tracker(32, 1, true).build("v0idstestmod.test_entity");
    event.getRegistry().register(new ItemSpawnEgg(storedItemType, 0xffffff, 0x00ff00, new Item.Properties().group(ItemGroup.MISC)));
    // Your other registration code
    ...
}

 

If this is wrong, can you show me a working sample for the right way to connect entitys to spawn eggs right?

Edited by Drachenbauer

  • Author

I sucessfully wrote little games with scratch and Scripts for objects in Seccoud Life.

I thaught, i got enouch java-knowledge by doung theese things.

Edited by Drachenbauer

  • Author

I still have purple black blocks instead of eggs and get chickens by using them...

so there still must be something with my entity specific files...

 

or is it the placement of

  Quote

RenderHandler.regigisterEntityRenders();

in my Main-class?

 

i found this in the console:

  Quote

[23:28:48.759] [Client thread/WARN] [minecraft/EntityType]: No data fixer registered for entity angrybirdsmod.red
[23:28:48.772] [Client thread/WARN] [minecraft/EntityType]: No data fixer registered for entity angrybirdsmod.chuck
[23:28:48.783] [Client thread/WARN] [minecraft/EntityType]: No data fixer registered for entity angrybirdsmod.blues
[23:28:48.796] [Client thread/WARN] [minecraft/EntityType]: No data fixer registered for entity angrybirdsmod.bomb
[23:28:48.809] [Client thread/WARN] [minecraft/EntityType]: No data fixer registered for entity angrybirdsmod.mathilda

 

and this:

  Quote

[23:29:00.134] [Client thread/WARN] [minecraft/ModelBakery]: Unable to load model: 'angrybirdsmod:red#inventory' referenced from: angrybirdsmod:red#inventory: java.io.FileNotFoundException: angrybirdsmod:models/item/red.json
[23:29:00.135] [Client thread/WARN] [minecraft/ModelBakery]: Unable to load model: 'angrybirdsmod:chuck#inventory' referenced from: angrybirdsmod:chuck#inventory: java.io.FileNotFoundException: angrybirdsmod:models/item/chuck.json
[23:29:00.137] [Client thread/WARN] [minecraft/ModelBakery]: Unable to load model: 'angrybirdsmod:blues#inventory' referenced from: angrybirdsmod:blues#inventory: java.io.FileNotFoundException: angrybirdsmod:models/item/blues.json
[23:29:00.138] [Client thread/WARN] [minecraft/ModelBakery]: Unable to load model: 'angrybirdsmod:bomb#inventory' referenced from: angrybirdsmod:bomb#inventory: java.io.FileNotFoundException: angrybirdsmod:models/item/bomb.json
[23:29:00.139] [Client thread/WARN] [minecraft/ModelBakery]: Unable to load model: 'angrybirdsmod:mathilda#inventory' referenced from: angrybirdsmod:mathilda#inventory: java.io.FileNotFoundException: angrybirdsmod:models/item/mathilda.json

 

Why it tries to find item-jsons in my resources?

it should take the files for the common spawn-egg appearence in the common resources ofminecraft.

Edited by Drachenbauer

  • Author

this is my main-class now:

Reveal hidden contents

 

I don´t know how a json for a spawn-egg must look like...

 

Found it in one of the resource-packs on my pc.

Edited by Drachenbauer

  • Author

i copied a json for a spawn-egg, pasted it into the folder, the console told about, and renamed it into what the project tries to find.

But it still cannot find them...

  • Author

The part of the log file:

Reveal hidden contents

 

and the scheenshot:

eclips10.png

 

Why it cannot find them?

i already made a refresh and a cleanup.

Use a git client. GitHub Desktop is a user friendly and underpowered one. Make a repository in the root folder of your project and publish it to GitHub

About Me

Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author

i thaught you just wanted to see all my code to search for error and i thaught jyu can do it yjst be reading it.

 

but so now i look, how i can get the git-client.

Use a git client. GitHub Desktop is a user friendly and underpowered one. Make a repository in the root folder of your project and publish it to GitHub

 

Edit: Sorry, when I opened this page up again it re-posted this. 

Edited by Cadiboo

About Me

Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author

i cannot install the GitHub Desktop .

i get an error and it crashed.

 

Reveal hidden contents

 

how do i setup my repository correctly without the client?

Edited by Drachenbauer

  On 2/25/2019 at 8:44 PM, diesieben07 said:
  • Install Git.
  • Create empty repository on GIthub.
  • Open a command line and navigate to your project root (where your build.gradle is). Type the following commands:
    • git init
    • git remote add origin <url to your github repository>
    • git add -A
    • git commit -m "Initial Commit"
    • git push -u origin master

And please learn Git.

 

About Me

Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.