Everything posted by GotoLink
-
Custom Rendered Block Error [SOLVED]
net.minecraft.block.BlockDirt cannot be cast to java.lang.Character In your recipe at creepian.creepian.load(creepian.java:114), you forgot to put a character before your block.
-
[Coremod] Doubts about coremod and normal mod?
The coremod will be loaded before "normal" mods, so you don't have to worry about that. In Eclipse, you can do manually the base class edits you want for the "normal" mod to work.
-
Item into a recipe...
See setContainerItem(args) in Item or implement a ICraftingHandler.
-
'Java' is not recognized
Java is not installed correctly.
-
[SOLVED] Custom Music in Custom Dimension WONT WORK !!!
You are still no checking for non null player. if(mc.thePlayer!=null) //do things
-
Need Help With Making Content Packs For My Mod :( Please Help ???
Submods idea is simple: The @Mod annotation can already handle basic mod dependency, so make submods use it with [required-after:"basemodid"] Then you code your own ItemRegistry, or OreRegistry, or whatever in your basemod. All submod should then use that to register things. Making interfaces and release it as an API could be useful too.
-
Crop Newbie!
You might want to override protected boolean canThisPlantGrowOnThisBlockID(int par1) Bonemeal calls public void fertilize(World par1World, int par2, int par3, int par4) You should look at it in case that doesn't do what you want.
-
[1.6.2] Controllable Entity
Boat, Minecart, Horse, there are plenty of examples.
-
[SOLVED] Custom Music in Custom Dimension WONT WORK !!!
Where do you set soundPoolMusic ? Use a IPlayerTracker to get onPlayerChangedDimension call.
-
How do you add to a block class without breaking existing worlds?
I was thinking about List, Map, Arrays or other data structure rather than a simple int.
-
Hook for getIconIndex(ItemStack par1ItemStack)
@Override public boolean requiresMultipleRenderPasses()//kinda strange , but don't worry... { return true; } @Override public int getRenderPasses(int metadata)//we can save the other passes, actually { return 1; } @Override public Icon getIcon(ItemStack stack, int pass){//icons from NBT here... }
-
[SOLVED] 152 -> 162 IItemRender changes (only uses item texture sheet)
if(type==ItemRenderType.FIRST_PERSON_MAP) { return; } What about ItemRenderType.INVENTORY ? You don't check for that one ?
-
[SOLVED] 152 -> 162 IItemRender changes (only uses item texture sheet)
int blockNum = item.getItemDamage()/16; Block blk = null; switch(blockNum) { case 0: blk = BlockLoader.civicBlock1; break; So what are those blocks in BlockLoader class ? Do they have a texture returned by block.getIcon(int,int) ?
-
How do you add to a block class without breaking existing worlds?
Well, it is likely that you tried to use or load data that didn't exist the first time you placed the block and saved it. You would need to catch those cases and save some default value.
-
[1.6.2] Forge Item Model Help
No, his texture registering is fine as long as the texture is in: assets/mac_dubstepgun/textures/models/dg3d.png I'd recommend registering the ItemRenderer on client side only.
-
Event when Jukebox starts/stops
PlayStreamingEvent.
-
[SOLVED] Custom Music in Custom Dimension WONT WORK !!!
Let's take examples, shall we ? This is not good: public void onSoundLoadEvent(SoundLoadEvent event, URL URL) { This is not good either: @ForgeSubscribe public void onBackgroundMusic(PlayBackgroundMusicEvent event, Random rand) This is good: @ForgeSubscribe public void onSound(SoundLoadEvent event)
-
Right click to Enchant
Which doesn't apply to the null object, obviously. if(data != null... This is in your code, if you didn't know.
-
Entity BoundingBox not working
Give us the lines where you set boundingbox...
-
[SOLVED] Config Problems
The ids from the config must be loaded before the items and blocks are initialized.
-
[RESOLVED!][HELP] Custom TileEntity Render not working!
public class CommonProxy { // Client stuff public void registerRenderers() { ClientRegistry.bindTileEntitySpecialRenderer(com.jmanpenilla.carbonmod.tileentity.TileGrill.class, new RenderGrill()); } } Doesn't make sense.
-
Right click to Enchant
You should check hasTagCompound() beforehand.
-
[solved]Chest gui not working correctly
short short1 = 222; int i = short1 - 108; this.inventoryRows = par2IInventory.getSizeInventory() / 9; this.ySize = i + this.inventoryRows * 18; Hah useless magic numbers...always fun to have those What did you put in getSizeInventory() for TileEntityUnderworldChest ?
-
Configuration file not initializing properly?
@Instance public static mod_SecurityCraft instance = new mod_SecurityCraft(); ... public static Block LaserBlock = new BlockLaserBlock(configHandler.LaserBlockID, Material.iron).setHardness(5F).setResistance(1000).setStepSound(Block.soundMetalFootstep).setCreativeTab(mod_SecurityCraft.tabSecurityCraft).setUnlocalizedName("Laser Tripwire Block"); public static Block Laser = new BlockLaser(configHandler.LaserID).setBlockUnbreakable().setResistance(1000F).setUnlocalizedName("Laser"); public static Block Keypad = new BlockKeypad(configHandler.KeypadID, Material.circuits).setHardness(10F).setResistance(1000).setStepSound(Block.soundStoneFootstep).setCreativeTab(mod_SecurityCraft.tabSecurityCraft).setUnlocalizedName("Keypad"); At least follow the basic tutorials in the wiki please. :'(
-
[SOLVED]My mod can't load in zip format
Package in lower case please.
IPS spam blocked by CleanTalk.