Jump to content

Recommended Posts

Posted (edited)

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
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)
  On 2/21/2019 at 8:09 PM, Drachenbauer said:

Can't use a null-name for the registry

Expand  

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)

Posted (edited)

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
Posted

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)

Posted

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.

Posted (edited)

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
Posted (edited)

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

 

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
Posted (edited)

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();

Expand  

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

Expand  

 

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

Expand  

 

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
Posted (edited)

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
Posted

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.

Posted

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)

Posted (edited)

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)

Posted (edited)

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

Expand  

 

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

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