larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
Minecraft 1.6 Eclipse Library import help [solved]
larsgerrits replied to invizzble's topic in Modder Support
What was the missing library? And where did you find it? -
Making a new tilled dirt block register with seeds
larsgerrits replied to poppro's topic in Modder Support
Just copy that method to your block class, add the green stuff to that method and put the @Override annotation above it. -
I'll make my own thread than...
-
So if anyone knows a solution to that, I (we) would appriciate that. It's kinda weird, that isn't the bugged line. I changed this line of code: int meta = te.getBlockMetadata(); int rotation = 0; if(meta == 2){rotation = 180;}//SOUTH if(meta == 3){rotation = 0;}//NORTH if(meta == 4){rotation = -90;}//EAST if(meta == 5){rotation = 90;}//WEST to: int meta = 0; if(te.worldObj != null) { meta = te.worldObj.getBlockMetadata((int)x,(int)y,(int)z); } int rotation = 0; if(meta == 2){rotation = 180;}//SOUTH if(meta == 3){rotation = 0;}//NORTH if(meta == 4){rotation = -90;}//EAST if(meta == 5){rotation = 90;}//WEST Now it doesn't crash anymore, but when I add: System.out.println(meta); and it seems like meta is always 0... If anyone knows why that is
-
So if anyone knows a solution to that, I (we) would appriciate that.
-
It still gives me an error: On the line 11 before the end it says: at mod.larsg310.bd.render.ItemTrafficLightRenderer.renderItem(ItemTrafficLightRenderer.java:30) And that is this line: TileEntityRenderer.instance.renderTileEntityAt(new TileEntityTrafficLight(), 0.0D, 0.0D, 0.0D, 0.0F); And thats in in the method: @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntityTrafficLight(), 0.0D, 0.0D, 0.0D, 0.0F); } If anyone knows a solution, I would very appriciate that!
-
That code is giving me a crash. Crash report: Error log: Eclipse log: ItemTrafficLightRenderer.java: TileEntityTrafficLightRenderer.java:
-
You don't have to just give people code, they need to search/research. Like he can look at the potion class and search there.
-
For that you need and crafting handler. That basicly a class that implements ICraftingHandler. Add the unimplemented methods and you'll need some for loops to check if the item in the crafting grid. If it is, you need to add a new itemstack with the same item to your inventory, but with a lower durabillity. Than in your main class you'll need to register your crafting handler
-
Have you searched for some tutorials yourself? That is the first thing that you have to do?
-
It would be helpfull if you give us ALL the code so we can solve it faster.
-
[Solved] Textures not loading in compiled mod [1.5.2]
larsgerrits replied to larsgerrits's topic in Modder Support
Nvm, never knew that the package is case sensitive. -
[Solved] Textures not loading in compiled mod [1.5.2]
larsgerrits replied to larsgerrits's topic in Modder Support
No, it works in eclipse! But if I recompile my mod and i put it in minecraft, the textures don't load. My package structure is as follows: zip file - META-INF - MANIFEST.MF - mod - larsg310 - bd - [all files] - mods - bd - textures - blocks - [all textures -
Now I've compiled my mod and it don't crashes, but the textures are not loading in-game. Screenshot: [/img]
-
[Help]Making portal travel to a custom dimension
larsgerrits replied to ExcuseMyLuck's topic in Modder Support
Code? -
To show your model in your inventory, you need a item renderer. Thats this class: And put this in your ClientProxy class:
-
[Solved] Negating mirrored crafting recipes [1.5.2]
larsgerrits replied to larsgerrits's topic in Modder Support
And what would i put as my arguments? If I hover over this line: GameRegistry.addRecipe(new BDShapedRecipes()); it sais: Add arguments to match 'BDShapedRecipes(int, int, ItemStack[], ItemStack)'. -
[Solved] Negating mirrored crafting recipes [1.5.2]
larsgerrits replied to larsgerrits's topic in Modder Support
So i made a new recipes class and a new CraftingManager class, but do you know where it is called? -
And this is not the place to put modding tutorials up!
-
[SOLVED] addInformation method on blocks?
larsgerrits replied to bl4ckscor3's topic in Modder Support
What List class did you import? -
[Solved] Negating mirrored crafting recipes [1.5.2]
larsgerrits replied to larsgerrits's topic in Modder Support
Negating it. So that it gives me 2 different blocks instead of the same one. -
[Solved] Negating mirrored crafting recipes [1.5.2]
larsgerrits replied to larsgerrits's topic in Modder Support
No, its a bit hard to understand. So, if i wanna craft a block with this recipe: "YXX","YXX","YXX" I get the proper block. But if I craft ablock with this recipe: "XXY","XXY","XXY" i get the same block as the first one. That's because the two recipes are mirrored. -
Multiple Mods in one mcmod.info File.[SOLVED]
larsgerrits replied to Sol64's topic in Modder Support
You could make an API, and let your 3 mods use that API, so that they need that API installed to make that mod to work.