Everything posted by larsgerrits
-
[1.6.4] Mod not loading, not sure why.
Don't extend the BaseMod class, use the @Mod annotation provided by forge. Link: http://www.minecraftforge.net/wiki/Basic_Modding
-
[1.7.2] Changing existing blocks?
If you wan't to do little things, like changing the hardness, you can just do Blocks.dirt.setHardness(1F), but else there's no legit way to replace the vanilla block.
-
[1.7.2]Publish my mod on github
Using GitHub allows you to make your mod open source, you can access the source at any place, and you can use it as a backup system that if you lose your file for some reason, you can get it back from GitHub.
-
[1.7.2] Crash on isItemValidForSlot()
Where do you call "new fuelRegistry()"? If you don't, the fuelRegister array is still null, as you initialize it when you make a new instance of the fuelRegistry class. PS, please use camel-case, it makes the code much more easier to read.
-
[1.7] Accessing maxStackSize?
From which class do you want to get the maxStackSize field?
-
[1.7.2] Unable to Load Resource (.obj)
Your path is like this: assets/financiacraft/models/modelName.obj Make sure the model is in that place.
-
Empty src in eclipse
Please, update toversion .964, asthat uses gradle.
-
GUI Tooltip and Tile Entity Liquid Storage
For the hovering tab, use the drawHoveringText() method in the gui class.
-
Problem with Creative Tabs(SOLVED)
In all your block classes, the tabBlocks variable is still null.
-
[1.6.4] -=[Solved]=- Arrow rendering
You need to bind the texture between the GL11.glPushMatrix(); and GL11.glPopMatrix() method.
-
[Unsolved]Creative Tab NullPointerException when Rendering
Before the "Eancraft" in the CreativeTab initilialization, put CreativeTas.getNextId().
-
Enlarge the render range of a tile entity
You can use the getRenderBoundingBox method for enlarging the bounding box to render the TileEntity at.
-
Syncing Tile Entity Field
You can use the getDescriptionPacket() and the onPacketData() method in the TileEntity class. In the getDescpriptioPacket method you need to return a S35UpdateTileEntityPacket(xCoord,yCoord,zCoord,1,YOUR_NBT_COMPOUND) and in the onPacketData method you readFromNBT the packet's NBTTagCompound.
-
Saved tile entity data makes all tile entitys have the same data
You're making it a static value, which is the same for all TileEntities of that type. You should make it a non-static value and instead of using TileEntityKeyPad.*, use world.getTileEntity(x,y,z) to get the TileEntity at that location, and check if the TileEntity is an instanceof TileEntityKeyPad, then cast it to the appropriate type and then set the value in that.
-
[1.7.2] Minecraft Startup Open GL error - Game Breaking
Your probably using 1.7.2-10.12.1.1061 as that has some major bugs, including that one.
-
[SOLVED] [1.7.2] How I can make an automatic chest filler
That's quite a performance hit, because you need to go through every block in the world, so thats like 30000000x256x30000000 blocks to check, check if they are a chest, get the chest TileEntity and fill the inventory with the items you want.
-
[1.6.4] Draw item textures on a custom gui?
Gui#drawTexturedModalRectFromIcon(x,y,Items.diamond.getIconFromDamage(0),u,v)
-
[SOLVED] [1.7.2] Make mob give off light
You can "cheat" by making a invisible block that emits light, and moving that along with the entity.
-
[1.6.4] crashing on loading mod
backlegleft.mirror = true; backlegleft = new ModelRenderer(this, 32, 0); backlegleft.addBox(0F, 0F, 0F, 4, 12, 4); When setting backlegleft.mirro, backlegleft is still null, so you need to put the backlegleft.irror line underneath the declaration.
-
[1.7.2] Providing power only for some specific metadata values
That's because they blindly copy-paste code. You can see that by this line: private static final String __OBFID = "CL_00000253"; as that's put in most vanilla class by forge when the code deobfuscated. If you don't remove those lines from your class, it will throw errors when building the mod.
-
[SOLVED]Tile data not updating on the client
Or just use the getDescriptionPacket() and the onPacketData() method in the TileEntity class...
-
[1.6.4] Gui Slots Bug!
@Override public ItemStack getStackInSlot(int i) { return null; } @Override public ItemStack decrStackSize(int i, int j) { return null; } You need to properly implement those methods to make it work (use TileEntityFurnace.java as a example).
-
[1.6.4] Gui Slots Bug!
In your container class, you have 7 slots using ids 1-7. You need to use ids 0-6.
-
java.lang.NoSuchFieldError: rock
Run 'gradlew build' in the command windows.
-
[1.7.2] Bucket Events
The second time. where all the coords are 0, that time it's the client version. The server version is the time where the coords are correct. so you may need to check if !world.isRemote.
IPS spam blocked by CleanTalk.