Jump to content

AndyLun

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by AndyLun

  1. The piston class is very complicated since it checks for neighbour block updates and redstone updates and all the other things... And, if you don't already know, there is a block that is specially made for piston (the "BLOCK MOVED BY PISTON") block, and I don't quite remember it's id (its around 50 or something)... So, if you were to make a piston-like thing, that wouldn't be easy enough.
  2. Hello guys, I was trying to make my block drops whenever the block below it was broken/moved by piston. *Just the same as redstone But I've been looking into the BlockRedstoneWire class but can't seem to find that out. Please Help me, thanks.
  3. Yeah that works. Researching a bit and looked inside the BlockRedstoneWire class. I just added the isOpaqueBlock() method and it was working. Anyways, thanks for replying !!
  4. Maybe you can look into the Book item class in vanilla minecraft ??
  5. Awww :'( anyone know how to fix this ?
  6. Oh, that doesn't work either. By the way I already had the Proxy's setup before. I have this in my Main Class : @SidedProxy(clientSide = "packagename", serverSide = "packageName...blablabla") public static CommonProxy proxy; And, these are my ClientProxy & CommonProxy classes (btw they are in seperate package) : package xxxxxxx; import xxxxxx; public class CommonProxy implements IGuiHandler { public static void registerRenderThings() { } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } } package xxxxxx; import xxxxxx; public class ClientProxy extends CommonProxy { public static void registerRenderThings() { } } EDIT : I am CURRENTLY preloading textures in my load() method in main class (FMLInitializationEvent, not PreInit / PostInit)
  7. uhmm...how do I do it ? I'm just a noob. Thanks a lot
  8. Please be more specific, what do you mean by "bounding box" ?
  9. Oh no It doesn't work.... Perhaps another way to do it ? EDIT : A clearer screenshot :
  10. Hi guys, I am trying to make a firepit but the texture seems not working properly. This is the picture : Notice that X-Ray effect ? Please Help me, thanks a lot.
  11. hmm....how to I access that method ?? Please be specific (i am a modding noob)... Thank you
  12. Hey there, I've solved the problem. I got into net.minecraft.src.biome.BiomeDecorator, and I commented out the lines regarding to the iron and gold spawning lines and variables. Everything works just fine. Since then I haven't found a Single Piece of Iron or Gold.
  13. Hello guys, I wanted to make a firepit for my mod and I just simply don't know how that works. I just know about how to make a solid block(like new ores). By the way it's box (i mean, the black outline of the block when moused over) should not use up the whole block space and only just a flat block (like redstone, its box is flat) Please Describe it fully, step by step because I'm a newbie. Thanks a lot.
  14. Yeah, that works !! Thanks for your help
  15. Hello guys, I am adding a new type of ore, and they will drop 0-5 items each ore (similar to redstone/lapis). I can get the dropped item in creativeTabs, but I can't get em when I broke the ore. Below are my code (the custom names are changed to protect my mod) Main Class : package com.AndyLun.xxxx; import net.minecraft.block.Block; import net.minecraft.item.Item; import com.AndyLun.xxxx.block.Blockxxxx; import com.AndyLun.xxxx.core.proxy.CommonProxy; import com.AndyLun.xxxx.item.Itemxxxx; import com.AndyLun.xxxx.lib.Data; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; // Main Class for xxxxMod // Author AndyLun @Mod(modid = Data.MOD_ID, name = Data.MOD_NAME, version = Data.VERSION) @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class xxxx { @Instance(Data.MOD_ID) public static xxxx instance; @SidedProxy(clientSide = Data.CLIENT_PROXY_CLASS, serverSide = Data.SERVER_PROXY_CLASS) public static CommonProxy proxy; public static Block BlockAA; public static Item ItemBB; @PreInit public void preInit(FMLPreInitializationEvent event) { } @Init public void Init(FMLInitializationEvent event) { proxy.registerRenderThings(); BlockAA = new BlockAA(700, 0); ItemBB = new ItemBB(3700); GameRegistry.registerBlock(BlockAA, "BlockAA"); GameRegistry.registerItem(ItemBB, "ItemBB"); LanguageRegistry.addName(BlockAA, "AA Ore"); LanguageRegistry.addName(ItemBB, "BB"); } @PostInit public void postInit(FMLPostInitializationEvent event) { } } BlockAA Class : package com.AndyLun.xxxx.block; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class BlockAA extends Block { public BlockAA(int id, int texture) { super(id, texture, Material.rock); this.setBlockName("BlockAA"); this.setHardness(4.0F); this.setResistance(4.0F); this.setLightValue(0F); this.setStepSound(soundStoneFootstep); this.setCreativeTab(CreativeTabs.tabBlock); } public String getTextureFile() { return "/xxxx/Blocks.png"; } public int idDropped(int par1, Random random, int par2) { return 3700; } public int quantityDropped(Random random) { return random.nextInt(5) + 1; // random.nextInt(5) generates an int between 0-4, and I made it +1 so that it becomes 1-5 } } ItemBB Class : package com.AndyLun.xxxx.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class ItemBB extends Item { public ItemBB(int id) { super(id); this.setItemName("ItemBB"); this.setIconIndex(0); this.setCreativeTab(CreativeTabs.tabMaterials); } public String getTextureFile() { return "/xxxx/Items.png"; } }
  16. Oops, seems like I can't just straight away and do that. It crashes and says java:IllegalArgumentException : Slot 15 (its iron ore) is already occupied by net.minecraft.src.block.BlockOre@xxxxx < random numbers/letters Please Help ? Thanks
  17. Just that simple ? Alright, I will test it out. I thought it would be hard...
  18. Hello guys, for some reason, I wanted to remove the vanilla Iron and Gold Ore and replacing them with my own Iron/Gold ores. How can this be possible ? I think that will have to be messing around vanilla files... Anyways, please help. Thanks alot.
  19. Hello guys, I need help on custom blocks and block ids. I am creating a set of coloured blocks (similar to wools) and I think that's not good to use up so much Block IDs. So I am wondering how can I make them to the same id and uses the Data Value. Like the Planks and Wools. And, I am trying to create flat blocks (that uses up only little bit of space, like redstone). (Actually creating a new type of redstone). Please Help me, thanks.
  20. Yeah, I did that exactly. By the way, I fixed the problem. I just need to delete the mcp/eclipse and copy mcp/forge/fml/eclipse to mcp/eclipse and everything works just fine. Hope this reply helps other people that are having the same problem.
  21. By the way, I could not be able to reply for the next 2 days because i'm going on a vacation. About 2 hours later from this post (1:33PM GMT+, I will not be able to reply after on.
  22. sorry, what do you mean by "clean install of forge" ? I used clean minecraft.
  23. Hello, I am experiencing problems when trying to mod with Forge. I am following this video tutorial at youtube : http://www.youtube.com/watch?v=m66Ub1_gKmk And i am Following Exactly what it says. I am using these ZIP files : mcp723.zip minecraftforge-src-1.4.5-6.4.1.436 ----------------------------------------------- There is no the common folder, but the video shows that i was supposed to have it in the eclipse workspace. (under Client project) And I got errors in eclipse (those which are underlined with red lines). They are : Achievement cannot be resolved to a type : in GuiAchievement.java (7 of them) Achievement cannot be resolved to a type : in GuiAchievements.java (11 of them) AchievementList cannot be resolved : in Minecraft.java (1) AchievementList cannot be resolved to a variable : EntityPlayerSP.java (2) AchievementList cannot be resolved to a variable : GuiAchievements.java (7) AchievementList cannot be resolved to a variable : GuiContainerCreative.java (1) AchievementList cannot be resolved to a variable : GuiInventory.java (1) AchievementPage cannot be resolved : GuiAchievements.java (5) activeChunkSet cannot be resolved or is not a field : WorldClient.java (3) AnvilSaveConverter cannot be resolved to a type : Minecraft.java (1) ArgsWrapper cannot be resolved to a type : Minecraft.java (2) ArrayListMultimap cannot be resolved : EffectRenderer.java (1) ArratListMultimap cannot be resolved : TextureFXManager.java (1) ArtifactVersion cannot be resolved to a type : GuiModsMissing.java (1) ArtifactVersion cannot be resolved to a type : GuiModsMissingForServer.java (1) AxisAlignedBB cannot be resolved : in these files : Minecraft.java (2) WorldRenderer.java (2) EntityRenderer.java (1) Frustrum.java (1) ICamera.java (1) Render.java (2) RenderGlobal.java (1) WorldRenderer.java (3) BaseModProxy cannot be resolved to a type : ModLoaderClientHelper.java (6) BiomeGenBase cannot be resolved to a type : ModLoader.java (2) BiomeGenBase cannot be resolved to a variable : GuiFlatPresets.java (6) Block cannot be resolved : in these files : RenderGlobal.java TileEntityRendererPiston.java (2) Block cannot be resolved to a type : in these files : BaseMod.java (2) ChestItemRenderHelper.java EffectRenderer.java (7) EntityDiggingFX.java (7) FMLRenderAccessLibrary.java (2) ForgeHooksClient.java (3) and it says Errors (100 of 6955 items) hope the above information helps. If extra information is required, please post in the comments. Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.