Enginecrafter
Members-
Posts
100 -
Joined
-
Last visited
Converted
-
Gender
Male
-
Personal Text
I am not good nor bad.
Enginecrafter's Achievements
Creeper Killer (4/8)
4
Reputation
-
I made a class for doing this. Simply create new class in your lib(?) package and copy this into it.
-
I am not sure what is this meant to do, but you can create regular container, but you must create your own slit that overrides default slot. In the class you must define that it cannot accept any item.
-
[1.8.9] Overriding Vanilla Block Properties
Enginecrafter replied to drok0920's topic in Modder Support
The field cannot be assigned because these fields are final but I will try to find anither way to do this. -
[1.8.9] Overriding Vanilla Block Properties
Enginecrafter replied to drok0920's topic in Modder Support
Try something like this Main class Blocks.sand = new BlockCustomizedSand() Customized block class public class BlockCustomizedSand extends BlockSand { @Override Override methods you want } -
[1.8.9] Overriding Vanilla Block Properties
Enginecrafter replied to drok0920's topic in Modder Support
Oh thanks. I am happy too I finally helped someone. -
[1.8.9] Overriding Vanilla Block Properties
Enginecrafter replied to drok0920's topic in Modder Support
Sorry if this is stupid question. But Hand = harvest level -1? -
[1.8.9] Overriding Vanilla Block Properties
Enginecrafter replied to drok0920's topic in Modder Support
I am not sure it will work in 1.8.9 but it works in 1.7.10 If you know, there is list of blocks. Like Blocks.sand If you pick up your block for modifying, then use some basic methods from Block class. Example Block b = Blocks.sand; b.setHardness(6.0F) //Sets a hardness for given block b.setTextureName(.......) //Sets texture for block. b.setHarvestLevel("pickaxe", 3) //Sets harvest level for block. And so on... If I am wrong with this, simply write a reply or PM me. -
BTW @jmylifecolor I highly recommend you to learn english when posting to any english forums. Just a suggesion. Have a nice day.
-
Fixed, the mistake was I referred to variable(GUI_ID) that was stored inside each GUI class. I moved them to GUI Handler. Anyway thank you for help. And special thanks to Choonster for giving me clue to fix it
-
Sorry Draco I didn't have much time to copy all the code. I am so sorry.
-
Ok I will have a look at it tomorrow and wirte a reply. Anyway thanks for helping for now.
-
Hi there. Recently I tried to run my mod on server(using forge pre-built server run config). It worked fine until I tried to access any GUI. For example Gui of my machine compressor. Here is my crash report. http://pastebin.com/hWbGUNSV If you need my code for solving, simply wirte reply and I will post them. I will accept any help.
-
[1.7.10 UNSOLVED]Server(default run config) startup problems
Enginecrafter replied to Enginecrafter's topic in Modder Support
com.ec.lib.CustomGui.InvGui extends ContainerGui I use it only in GuiHandler and block's implemented methd from abstract InventoryBlock that needs gui ID for opening it when right clicking the block. I tried to hardcode the gui number. It helped and gui opened without crash. But when I clicked gui button server again closed. -
[1.7.10 UNSOLVED]Server(default run config) startup problems
Enginecrafter replied to Enginecrafter's topic in Modder Support
Recently I noticed ti has some problems with finding correct Classes. When I run any code it writes into console that NoClasssDefFound exception like this -
[1.7.10 UNSOLVED]Server(default run config) startup problems
Enginecrafter replied to Enginecrafter's topic in Modder Support
I am running it from Eclipse IDE. If you meant that, I have never looked at build.gradle and never built my mod into jar