1

Minecraft mod help

froghog's Avatar froghog5/20/13 12:26 am
5/29/2013 9:11 pm
froghog's Avatar froghog
the other day, i decided to try to make a mod. i am using netbeans ide 7.3 and MCP 751. i have been able to access the code to edit it. what i really want to do is add a new block. i want it to just be a basic block that has no specific attributes. i also want to make it have a new texture, but just the new block. please don't be mean, i am very new at this kind of thing. i also don't want to download anything new like modloader. no basemod poo either because that is all too confusing.
Posted by froghog's Avatar
froghog
Level 63 : High Grandmaster Modder
126

Create an account or sign in to comment.

13

1
05/29/2013 9:11 pm
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
nevermind
1
05/29/2013 1:53 pm
Level 19 : Journeyman Taco
Master__Chief777
Master__Chief777's Avatar
using modloader will honestly be easier because youll wont have to change the block.java file
1
05/29/2013 1:47 pm
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
ok i have run into a new problem. when i tried to decompile again it said: !!Missing server jar file.Aborting!! please help
1
05/20/2013 10:17 pm
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
the darN my hat tutorials are not very useful. he uses base mod which, no matter where i look, no one can tell me what it is.
1
05/21/2013 3:25 am
Level 43 : Master Modder
HyJaffa
HyJaffa's Avatar
They are helpful, If you actually watch the videos, Watch it from ep 1 where i tell you how to set up eclipse. And thorughout 5 of my videos i explain what basemod is. It's modlaoder. Watch ep 1 and you will know how to do it. Focus before you criticise, No wander you can't find helpful tutorials. You jump straight into modding without even thinking of what you need, And completley skip setup tutorials.

Good luck with your modding, I don't see you going very far though. YT is best place to learn and you don't even bother trying.
1
05/21/2013 7:07 pm
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
you are right. i downloaded the modloader pack and watched the other videos that he has on there. i have basemod all set up and watching his tutorials. (did you make them?) they are helping. sorry i was stubborn... :/
1
05/20/2013 10:13 pm
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
Click to reveal
---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 5/19/13 9:40 PM
Description: Rendering screen

java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:117)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:339)
at net.minecraft.src.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:441)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:389)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:113)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:990)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:863)
at net.minecraft.client.Minecraft.run(Minecraft.java:753)
at java.lang.Thread.run(Thread.java:722)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:117)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:339)
at net.minecraft.src.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:441)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:389)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:113)

-- Screen render details --
Details:
Screen name: net.minecraft.src.GuiCrafting
Mouse location: Scaled: (284, 209). Absolute: (568, 543)
Screen size: Scaled: (640, 481). Absolute: (1280, 962). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player721'/68, l='MpServer', x=2158.97, y=5.62, z=527.02]]
Chunk stats: MultiplayerChunkCache: 441
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (2151,4,526), Chunk: (at 7,0,14 in 134,32; contains blocks 2144,0,512 to 2159,255,527), Region: (4,1; contains chunks 128,32 to 159,63, blocks 2048,0,512 to 2559,255,1023)
Level time: 23548 game time, 11885 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 24 total; [EntitySlime['Slime'/34, l='MpServer', x=2220.38, y=3.00, z=550.46], EntitySheep['Sheep'/35, l='MpServer', x=2224.06, y=4.00, z=536.03], EntitySlime['Slime'/2, l='MpServer', x=2082.75, y=3.69, z=462.72], EntitySlime['Slime'/32, l='MpServer', x=2229.47, y=5.04, z=524.24], EntitySheep['Sheep'/33, l='MpServer', x=2224.72, y=4.00, z=554.34], EntitySheep['Sheep'/5, l='MpServer', x=2093.88, y=4.00, z=505.88], EntityPig['Pig'/7, l='MpServer', x=2102.88, y=4.00, z=564.53], EntitySlime['Slime'/8, l='MpServer', x=2094.19, y=4.00, z=574.40], EntityCow['Cow'/9, l='MpServer', x=2106.75, y=4.00, z=597.78], EntityClientPlayerMP['Player721'/68, l='MpServer', x=2158.97, y=5.62, z=527.02], EntityPig['Pig'/12, l='MpServer', x=2114.84, y=4.00, z=581.66], EntityPig['Pig'/13, l='MpServer', x=2142.09, y=4.00, z=498.06], EntityPig['Pig'/14, l='MpServer', x=2128.59, y=4.00, z=520.81], EntitySlime['Slime'/15, l='MpServer', x=2125.51, y=4.47, z=582.49], EntityPig['Pig'/17, l='MpServer', x=2150.69, y=4.00, z=498.34], EntityPig['Pig'/16, l='MpServer', x=2159.94, y=4.00, z=486.22], EntityPig['Pig'/19, l='MpServer', x=2156.13, y=4.00, z=501.69], EntityPig['Pig'/18, l='MpServer', x=2146.24, y=4.00, z=517.17], EntityPig['Pig'/25, l='MpServer', x=2138.17, y=4.00, z=523.84], EntityPig['Pig'/27, l='MpServer', x=2151.03, y=4.00, z=559.94], EntityPig['Pig'/26, l='MpServer', x=2158.13, y=4.00, z=531.06], EntityPig['Pig'/29, l='MpServer', x=2170.88, y=4.00, z=558.81], EntityPig['Pig'/28, l='MpServer', x=2163.66, y=4.00, z=513.38], EntityPig['Pig'/31, l='MpServer', x=2187.28, y=4.00, z=500.19]]
Retry entities: 0 total; []
Stacktrace:
at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:405)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2446)
at net.minecraft.client.Minecraft.run(Minecraft.java:769)
at java.lang.Thread.run(Thread.java:722)

-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 127764832 bytes (121 MB) / 321912832 bytes (307 MB) up to 894828544 bytes (853 MB)
JVM Flags: 0 total;
AABB Pool Size: 9261 (518616 bytes; 0 MB) allocated, 422 (23632 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, ILogAgent, MinecraftFakeLauncher, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics GL version 3.3.10750 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: 370 (20720 bytes; 0 MB) allocated, 104 (5824 bytes; 0 MB) used
1
05/20/2013 7:17 pm
Level 57 : Grandmaster Programmer
bmanrules
bmanrules's Avatar
Full report at:
D:\Users\Jacob\Documents\NetBeansProjects\minecraft 1.5.2\.\crash-reports\crash-2013-05-19_21.40.35-client.txt
Please show that file to Mojang, NOT just this screen!

Can you show us that file. Also, While I started out using Minecraft base code you may want to try using Modloader or Forge for compatibility.
1
05/20/2013 6:47 pm
Level 43 : Master Modder
HyJaffa
HyJaffa's Avatar
www.youtube.com/Darnmyhat

Watch the latest block tutorial to work with 1.5.2 in that tutorial change the .getIndirectPowerOutut to .setUnlocalizedName
You'll understand when you watch it.

Hope this helps, PS use eclipse instead, they are basically same thing but more tutorials work with eclipse
1
05/20/2013 6:31 pm
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
anyone?
1
05/20/2013 1:29 am
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
eclipse and netbeans are basically the same thing. (i think )
1
05/20/2013 12:40 am
Level 63 : High Grandmaster Modder
froghog
froghog's Avatar
this is the code for the new block
Click to reveal
package net.minecraft.src;

import java.util.Random;

public class Block_myblock extends Block
{
public Block_myblock(int par1)
{
super(par1, Material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
}
public void load (){

}
public int idDropped(int par1, Random par2Random, int par3)
{
return Block._myblock.blockID;
}
}


this is in the block.java file
Click to reveal
public static final Block _myblock = (new Block_myblock(1000)).setHardness(2.0F).setResistance(8.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("hopper_top");


this is the error page
Click to reveal
Minecraft has crashed!
----------------------

Minecraft has stopped running because it encountered a problem; Rendering screen

A full error report has been saved to D:\Users\Jacob\Documents\NetBeansProjects\minecraft 1.5.2\.\crash-reports\crash-2013-05-19_21.40.35-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash



--- BEGIN ERROR REPORT 11d630e8 --------
Full report at:
D:\Users\Jacob\Documents\NetBeansProjects\minecraft 1.5.2\.\crash-reports\crash-2013-05-19_21.40.35-client.txt
Please show that file to Mojang, NOT just this screen!

Generated 5/19/13 9:40 PM

-- Head --
Stacktrace:
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:117)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:339)
at net.minecraft.src.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:441)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:389)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:113)

-- Screen render details --
Details:
Screen name: net.minecraft.src.GuiCrafting
Mouse location: Scaled: (284, 209). Absolute: (568, 543)
Screen size: Scaled: (640, 481). Absolute: (1280, 962). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player721'/68, l='MpServer', x=2158.97, y=5.62, z=527.02]]
Chunk stats: MultiplayerChunkCache: 441
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (2151,4,526), Chunk: (at 7,0,14 in 134,32; contains blocks 2144,0,512 to 2159,255,527), Region: (4,1; contains chunks 128,32 to 159,63, blocks 2048,0,512 to 2559,255,1023)
Level time: 23548 game time, 11885 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 24 total; [EntitySlime['Slime'/34, l='MpServer', x=2220.38, y=3.00, z=550.46], EntitySheep['Sheep'/35, l='MpServer', x=2224.06, y=4.00, z=536.03], EntitySlime['Slime'/2, l='MpServer', x=2082.75, y=3.69, z=462.72], EntitySlime['Slime'/32, l='MpServer', x=2229.47, y=5.04, z=524.24], EntitySheep['Sheep'/33, l='MpServer', x=2224.72, y=4.00, z=554.34], EntitySheep['Sheep'/5, l='MpServer', x=2093.88, y=4.00, z=505.88], EntityPig['Pig'/7, l='MpServer', x=2102.88, y=4.00, z=564.53], EntitySlime['Slime'/8, l='MpServer', x=2094.19, y=4.00, z=574.40], EntityCow['Cow'/9, l='MpServer', x=2106.75, y=4.00, z=597.78], EntityClientPlayerMP['Player721'/68, l='MpServer', x=2158.97, y=5.62, z=527.02], EntityPig['Pig'/12, l='MpServer', x=2114.84, y=4.00, z=581.66], EntityPig['Pig'/13, l='MpServer', x=2142.09, y=4.00, z=498.06], EntityPig['Pig'/14, l='MpServer', x=2128.59, y=4.00, z=520.81], EntitySlime['Slime'/15, l='MpServer', x=2125.51, y=4.47, z=582.49], EntityPig['Pig'/17, l='MpServer', x=2150.69, y=4.00, z=498.34], EntityPig['Pig'/16, l='MpServer', x=2159.94, y=4.00, z=486.22], EntityPig['Pig'/19, l='MpServer', x=2156.13, y=4.00, z=501.69], EntityPig['Pig'/18, l='MpServer', x=2146.24, y=4.00, z=517.17], EntityPig['Pig'/25, l='MpServer', x=2138.17, y=4.00, z=523.84], EntityPig['Pig'/27, l='MpServer', x=2151.03, y=4.00, z=559.94], EntityPig['Pig'/26, l='MpServer', x=2158.13, y=4.00, z=531.06], EntityPig['Pig'/29, l='MpServer', x=2170.88, y=4.00, z=558.81], EntityPig['Pig'/28, l='MpServer', x=2163.66, y=4.00, z=513.38], EntityPig['Pig'/31, l='MpServer', x=2187.28, y=4.00, z=500.19]]
Retry entities: 0 total; []
Stacktrace:
at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:405)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2446)
at net.minecraft.client.Minecraft.run(Minecraft.java:769)
at java.lang.Thread.run(Thread.java:722)

-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 127764832 bytes (121 MB) / 321912832 bytes (307 MB) up to 894828544 bytes (853 MB)
JVM Flags: 0 total;
AABB Pool Size: 9261 (518616 bytes; 0 MB) allocated, 422 (23632 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, ILogAgent, MinecraftFakeLauncher, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics GL version 3.3.10750 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: 370 (20720 bytes; 0 MB) allocated, 104 (5824 bytes; 0 MB) used

java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:117)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:339)
at net.minecraft.src.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:441)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:389)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:113)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:990)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:863)
at net.minecraft.client.Minecraft.run(Minecraft.java:753)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 70664cdc ----------
1
05/20/2013 12:31 am
Level 3 : Apprentice Miner
Taledus
Taledus's Avatar
You are probably going to get a lot of suggestions on the "tons of tutorials" that are scattered around the net, so I wont say anything in that regard.

What I would suggest is switching over, and starting out with Eclipse IDE. More people are using it, and you will likely find more help that way.

Also, it really help to post in spoilers, your code and the errors that you are running into in order to get better clarification on exactly how to help you.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome