-
Posts
727 -
Joined
-
Last visited
Everything posted by Drachenbauer
-
You can look into my project here: AngryBirdsMod on Github But i´m not sure, what i have to change in my EntityRed class (should be the same for the others too)...
-
it extends RenderLiving<EntityRed> in 1,12,2 that worked.
-
how do i save animations of an entity-model in blockbench
Drachenbauer replied to Drachenbauer's topic in Modder Support
now i found a way to export the animations as a json file. But how do i use them in the java model class of this entity? -
In the Litt, that pops up with that command, and there are the names of my birds. But the result allso looks like a chicken. And it makes a message: something like "chicken spawned" , not the name of my bird (i use german language in the game, so the message is a bit different for me) It seams like there is no connection between the entity registries and the render registries...
-
my registries are in the places, you said. the render registry look like this in Main: private void clientRegistries(final FMLClientSetupEvent event) { RenderHandler.regigisterEntityRenders(); } the called method holds the lines (for each entity) you gave me to make my stuff shorter. What exactly do you mean with "/summon" Oh, you mean spawn it directly in the game world with a command instead of egg?
-
Another question: Do i need to add some kind of connection to my actuall entity registrations in the Main-class? I mean my entities still look like chickens, if i spawn them with eggs... And i think, i have the call of the method, that holds all that stuff in the right place in the Main-class.
-
In my RenderHandler class i have this: RenderingRegistry.registerEntityRenderingHandler(EntityRed.class, new IRenderFactory<EntityRed>() { @Override public Render<? super EntityRed> createRenderFor(RenderManager manager) { return new RenderRed(manager); } }); And i have five of theese there for five entitys (and more of them later). So i think, Maybe i can pack this in a methode inside the class to have just a simple call of this method for each entity. I think, this wil make the coode look cleaner ans shorter. But i´m not sure how tho declare two class-variables in a methode head (one for the Entity class and one for the Render class), wich i can use to replace all "EntityRed" and "RenderRed" in this piece of code, if it´s located in the body of the new method. I´ll giive the actual classes into the method, if i call it How do i do this?
-
In my RenderHandler class i see the names of my Entity classes anf the Render classes of my entities in the methods there. But now i think, do i need to change something there to get connections to the entity registrations in the Main-class?
-
but it does not work in the spot, the vanilla-code-source told me, so i think, i have to place that call any where else, but i i don´t know, how to find out where. I already tested it in all event-methodes, my main-class actually includes. Just tell me, if i have to add another event-methode to my main-class for this, and if yes, wich one.
-
Can anyone tell me exactly, how how to register the renders of my entity-models correctly?
-
Someone told me, that i have to use a block-entity to manage the colors. And i have a problem with it´s constructor: this is the constructor public TileEntityBlockColors(TileEntityType<?> tileEntityTypeIn) { super(tileEntityTypeIn); } But i´m still nut sure, what i have to place in the round braces of the "new TileEntityBlockcolors" - thing for "TileEntityType"...
-
how can i add a custom player-model to my mod?
Drachenbauer replied to Drachenbauer's topic in Modder Support
i´m not sure, in wich file there i find it -
how can i add a custom player-model to my mod?
Drachenbauer replied to Drachenbauer's topic in Modder Support
How do i render the player model? Wich method do i need there? -
how can i add a custom player-model to my mod?
Drachenbauer replied to Drachenbauer's topic in Modder Support
i don´t know, who a subscribe event method with priority has to look like. I never used priorities there bevore. -
how can i add a custom player-model to my mod?
Drachenbauer replied to Drachenbauer's topic in Modder Support
And how should that look like? -
@Override public TileEntity createTileEntity(World world, IBlockState state) { return new TileEntityBlockColors(); } This style (i found in the sample, placed the name of my TileEntity inside) does not work for me, it wants to have something in the round braces and curly braces after that line instead of ";"