Everything posted by larsgerrits
-
[Answered]Questions about EnumHelper
Better in my opinion: don't use an enum at all. Make your enum class a normal class, and make static references to the different materials. Then in the constructor, add the materials to a List, and iterate over that instead.
-
[1.8] Custom Fluid not rendering
Forge has a built-in fluid renderer. On the MinecraftForge GitHub, there's a test you can use as a reference.
-
[SOLVED] Getting correct RGB values
You do the same as with red, green and blue, with an alpha value of 255, and bitshifted 24 to the left.
-
Render item event
Forge has a build-in Wavefront model loader to convert your Wavefront model to an IBakedModel, so why re-invent the wheel?
-
[1.7.10] Problem with Fullbright Quads
1) Where do you pop your matrix? 2) Maybe using glPushAttrib and glPopAttrib will help.
-
[Solved] [1.8] Could not find or load main class GradlewStart
The class is called GradleStart, not GradlewStart.
-
item/itemstack
Items are singletons, so you don't need to use equals to check if they are the same, == will do just fine. Same for blocks.
-
[1.8]Custom Rendered Block Rotation?
Don't just post copy-paste ready code. It doesn't help anybody and nobody learns anything from it.
-
[1.8] Blockstates and Metadata , Blocks dont taking the variation model
Then post your updated code. Also, next time, please be more specific than 'block doesn't render'.
-
For some reason my mod is not starting
Don't use the gradlew idea command. Here is a tutorial by diesieben07 for setting up IntelliJ IDEA with Forge.
-
A bit of func_180426_a confusion
First of all, have you updated your mappings to the latest? That field may already be called something else. In which class/method is that field? That would make it much easier for us to help you out.
-
[1.7.10] Right clicking fluid with a bucket returns water bucket (Still unsolved
You never use that class outside of it. Therefore it never gets loaded, and never instantiate the INSTANCE field, and never registers your BucketHandler as an event handler. Easiest solution in my opinion: move the registration outside of the class, e.g. in init in your main mod file.
-
[HELP ME] Mod creation - Lack of knowledge
If you can't take a little criticism, you can go away. We are just trying to help you. If Draco18s says centering your post is annoying, you don't have to listen to that. It is just a recommendation so we can understand you better and help you better.
-
Questions on Modpack Failure Debugging
What do you mean with 'finetuning'? Setting the Block and Item IDs? You won't have to do that anymore.
-
Questions on Modpack Failure Debugging
Almost every mod has been updated to 1.7.10 or 1.8. And if they are not, there may be a replacement for it. So I suggest updating to 1.7.10+, so you won't have to worry about Block and Item IDs anymore.
-
Change an ItemStack's maximum damage
After the Minecraft Items are initialized, you can use e.g. Items.diamond_pickaxe.setMaxDamage(maxDamage) to set the max damage of an Item.
-
Unable to move items while in custom furance gui.
We need more contect. What doesn't work? How do you want it to work? Have you tried debugging it yourself? Always post updated code and more context if you want us to help.
-
[1.8] Checking for blocks (noob question :/ really sorry) [[Solved]]
No, use world.getBlockState(BlockPos).getBlock() == Blocks.grass to check the block type.
-
Furnace smelting not working
There's no way you can have no line 78 in your IDE. Post it.
-
[1.7.10]Could not open guis
We need more code: - IGuiHandler - The method in which you open your gui - Your gui code Preferably on gist.github.com, pastebin.com or a GitHub account.
-
saving custom classes in nbt?
You probably want to make all variables statis, make setters for them and in the setters call markDirty().
-
[1.7.10]I want to use World.setBlock in actionPerformed.
A single line of code is ofcourse free. A part of a merthod too. But nobody's gonna write a whole algorithm or system in Minecraft for free.
-
Forge reobfuscation randomly fails on rock/stone
Some people just export it from Eclipse and expect it to work. I don't know what could cause the issue. We (I) need to have more info: 1. The Forge version you are using Caused by: java.lang.NoSuchFieldError: rock at two.graves.blocks.BlockGrave.<init>(BlockGrave.java:40) 2. Show us line 40 from BlockGrave. Or do you have a GitHub workspace we can use?
-
[1.7.10]I want to use World.setBlock in actionPerformed.
"Write my code for me! I can't code!" Nobody's gonna write code for you for free. There's a tutorial on the SimpleNetworkWrapper by diesieben07 in the Tutorials section of Modder Support.
-
My mod wont let me load up mc in development and also it wont let me see..
If you can't work with the Windows file explorer, you are as stupid as someone can be. The build.gradle is in your mod folder.
IPS spam blocked by CleanTalk.