Everything posted by Drachenbauer
-
How do i put this in a method?
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)...
-
How do i put this in a method?
it extends RenderLiving<EntityRed> in 1,12,2 that worked.
-
how do i save animations of an entity-model in blockbench
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?
-
How do i put this in a method?
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...
-
How do i put this in a method?
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?
-
How do i put this in a method?
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.
-
How do i put this in a method?
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?
-
error at entity registration
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?
-
How do i make a block colorable exactly like the leather-armour?
how do i create my own tile entity type? None of the existing has to do with colors.
-
error at entity registration
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.
-
error at entity registration
Can anyone tell me exactly, how how to register the renders of my entity-models correctly?
-
How do i make a block colorable exactly like the leather-armour?
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 do i make a block colorable exactly like the leather-armour?
do you mean to write "implements IRecipe" behind the class-name, that my BalloonBlock-class extends? But what must i do with the methods, that appear, if i do the quickfix on my class-name than?
-
How do i make a block colorable exactly like the leather-armour?
i thaught, if i place the name of my block in there, i get it colored. Another qoestion: If i want to create a recipe-json for dying my block, what must i put into the result-area (just the registry-name of my block gives just a white one)?
-
How do i make a block colorable exactly like the leather-armour?
why it´s not relevant? it´s also a way to get my blocks colored. and i forgot to save me the command, that was in there...
-
How do i make a block colorable exactly like the leather-armour?
Is this an ingame-chat-comand? I think for my balloon-block, this may work. But i also have one, that has a part, that should be colored and a wooden part. I use a specific texture for the part to color in. How do i manage this?
-
how can i add a custom player-model to my mod?
i´m not sure, in wich file there i find it
-
how can i add a custom player-model to my mod?
How do i render the player model? Wich method do i need there?
-
How do i make a block colorable exactly like the leather-armour?
Now i look, if i can learn something from this video: https://www.youtube.com/watch?v=3u1fu6f8Hto
-
How do i make a block colorable exactly like the leather-armour?
it´s because i thaught, i know enough, because i successfully wrote little ganes with a programming-system, called "scratch" and also wrote scripts for objects in seccond life.
-
how can i add a custom player-model to my mod?
i don´t know, who a subscribe event method with priority has to look like. I never used priorities there bevore.
-
How do i make a block colorable exactly like the leather-armour?
are there any free java tutorials? This one in your link is a book to buy for money
-
how can i add a custom player-model to my mod?
And how should that look like?
-
How do i make a block colorable exactly like the leather-armour?
@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 ";"
-
How do i make a block colorable exactly like the leather-armour?
I opened the file BlockTileEntityData in that Example stuff from Cadiboo, but i cannot figure out, where "TileEntityData" in the createTileEntity-line comes from
IPS spam blocked by CleanTalk.