Everything posted by KeeperofMee
-
StoneWall
This is pretty simple, as it's pretty basic java, and I sincerely hope you won't just copy and paste this code: package keeperofmee.drugmod.blocks; import java.util.List; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockWall; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; public class BlockCustomWall extends BlockWall { /** * This variable is what we use to get the texture from the local variable specified in the constructor * **/ private Block textureBlock; /** * The Blocks constructor * **/ public BlockCustomWall(Block block, String name, CreativeTabs tab) { super(block); /** * Tells minecraft that the variable "textureBlock" is the same as the local variable "block" * **/ textureBlock = block; /** * Automatically registers our block with the name in the String name * **/ GameRegistry.registerBlock(this, name); /** * Sets the Blockname to the "name" variable * **/ this.setBlockName(name); /** * Sets the creative tab to the creative tab we specify when we define the block * **/ this.setCreativeTab(tab); } /** * This takes the texture from the block specified in the variable "textureBlock" * **/ @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int meta) { return textureBlock.getBlockTextureFromSide(side); } /** * This simply overrides the code with that in vanilla * **/ @SideOnly(Side.CLIENT) public void getSubBlocks(Item p_149666_1_, CreativeTabs p_149666_2_, List p_149666_3_) { p_149666_3_.add(new ItemStack(p_149666_1_, 1, 0)); } } and then to make a new block simply do: m.sandStoneWall = new BlockCustomWall(Blocks.sandstone, "sandStoneWall", m.drugTab); m.furnaceWall = new BlockCustomWall(Blocks.furnace, "furnaceWall", m.drugTab); m.dirtWall = new BlockCustomWall(Blocks.dirt, "dirtWall", m.drugTab); That's 3 wall blocks, in 3 lines with the correct properties, simple isn't it!
-
[1.7.2] How To Create A Fluid
https://github.com/KeeperofMee/DrugMod I got a fully functional fluid there with a custom potion effect, working texture(animated/still and flowing), particles in the water, working bucket etc... It's not extremly organized as my other repositories, but it works. And please for gods sake look and learn don't copy & paste. Best regards KeeperofMee(I love signing posts).
-
Multi-sided block textures not working
I tested your code and It works fine, as TheGreyGhost said, maybe you simply just made all your textures the same. By the way I would recommend you to shorten your file a bit by replacing: public void setHarvestLevel(String toolClass, int level) { for (int m = 0; m < 16; m++) { setHarvestLevel("pickaxe", 2); } } with one line in the constructor: this.setHarvestLevel("pickaxe", 2);
-
New creative tab for custom spawn eggs?
Well I kinda havent been actively modding over 2 years, I've been kinda on and off in periods like mod for a while then quit then mod again for a while, I just havent been making mobs and releasing mods more kinda been making stuff for myself so I can have a better experience(someone make a movie 'Mean modders') anyway thanks a lot
-
New creative tab for custom spawn eggs?
Could people please that have made mobs try and give me some advice and not just "make a new creative tab"... THAT'S NOT HOW SIMPLE IT IS... I make tutorials for f... sake, I make models, code, textures and much advanced stuff it's not as simple as creating a new creative tab because guess what I'm not a retard, I've been modding for over 2 years for christ sake just not with mobs. as it uses a entity list to spawn stuff so I'm trying to find a easy way to select only my mobs to add to a new creativetab., sorry if I was a bit mean ;/
-
New creative tab for custom spawn eggs?
Is it possible and how? no need to give a ton of code, as it's enough to say, you need to blahblah.
-
How to override a vanilla harvest level OR set speed to EXTREMLY slow [SOLVED]
I use both to achieve what I want.
-
How to override a vanilla harvest level OR set speed to EXTREMLY slow [SOLVED]
Thanks a lot Zer0HD2!! I did like this Reflection.initialize(ForgeHooks.class); Reflection.initialize(Material.class); Material.wood.setRequiresTool(); Blocks.log.setHarvestLevel("axe", 0);
-
How to override a vanilla harvest level OR set speed to EXTREMLY slow [SOLVED]
when destroying wood without any tools.
-
Updating from 1.6.4 to 1.7.2
I watched Scratch for fun's then I updated it, and the progress bar was bugged, then I followed microjunks http://www.minecraftforum.net/topic/1924178-forge-164-micros-furnace-tutorials-will-update-all-parts-to-164/ but used the 1.7.2 source instead, and it worked perfectly
-
Stairs?
Here's my code(which works perfectly): Main file: public static BlockStairs CbBlackStair; CbBlackStair = new CbColorStair(CbBlack, 0, "Black", 2); BlockStair: package colorblocks.blocks; import colorblocks.ColorBlocks; import net.minecraft.block.Block; import net.minecraft.block.BlockStairs; public class CbColorStair extends BlockStairs{ private Block block; public CbColorStair(Block block, int extender,String string, int tab) { super(block, 1); this.block = block; this.setBlockName("Cb" + string + "Stair"); setResistance(50F); setHardness(0.1F); setStepSound(Block.soundTypeStone); setLightLevel(1F); this.damageDropped(0); if(tab == 0) this.setCreativeTab(ColorBlocks.BlueTab); if(tab == 1) this.setCreativeTab(ColorBlocks.BrownTab); if(tab == 2) this.setCreativeTab(ColorBlocks.GrayTab); if(tab == 3) this.setCreativeTab(ColorBlocks.GreenTab); if(tab == 4) this.setCreativeTab(ColorBlocks.PinkTab); if(tab == 5) this.setCreativeTab(ColorBlocks.YellowTab); if(tab == 6) this.setCreativeTab(ColorBlocks.RedTab); } }
-
[1.7.2] How would I go about organizing my creative items?
i.e. I want my armor sets to be organized like: GoldHelm-GoldChest-GoldLegs-GoldBoots Not in random order like: SilverHelm-GoldChest-BronzeLegs-CopperBoots This is just an example.
-
Help Me Plz!
This isn't the correct forum but I'm going to help you anyway. You need to remove Metallurgy or change id's or whatever. see here: Metallurgy3Core{3.2.3} [Metallurgy 3 Core] (Metallurgy-1.6.4-3.3.1.jar) Unloaded->Constructed->Pre-initialized Metallurgy3Base{3.2.3} [Metallurgy 3 Base] (Metallurgy-1.6.4-3.3.1.jar) Unloaded->Constructed->Errored Metallurgy3Machines{3.2.3} [Metallurgy 3 Machines] (Metallurgy-1.6.4-3.3.1.jar) Unloaded->Constructed->Errored Metallurgy3Vanilla{3.2.3} [Metallurgy 3 Vanilla] (Metallurgy-1.6.4-3.3.1.jar) Unloaded->Constructed->Pre-initialized
-
[1.7.2] Using Missing Texture unable to load minecraft:textures/blocks.....
First off if you're trying to use a regular minecraft texture you do: setBlockTextureName("texturename"); and if you're trying to use your own you do setBlockTextureName(MainModFile.modid + ":" + "texturename") and you put your textures in a folder called assets.YOURMODID.textures.blocks you do not use minecraft.textures.blocks Also blocks don't use setUnlocalizedName(""); it's only items.
-
Spawning a monster(entity) during full moon.
I'd like to make my mob spawn during full moon only, but I can't find any code in forge or anything about doing this. Is it possible? at all?
-
[1.7.2] Can you make a config change things like light value?
if so, how?
-
Problem with "icons"
So I'm trying to make a tileentity so I can have 1 block with multiple "states" instead of using 41 block ids. Atm it crashes as soon as I try to : Craft one of the blocks or go to my creative tab. Here is the crashreport: It's probably something stupid I've overlooked.. MyItemBlock: MyBlock:
-
[1.7.2]Setting Block "Color" with Color Codes?
How do I set color because atm I've just used seperate textures for every color but it takes a lot of time making them so I wanted to limit texture making by having one texture which I use code to color. atm the code is just kinda this where I set textures. CbColorBlock = new CbColorBlock().setBlockName("CbColorBlock").setCreativeTab(colorblockTab).setBlockTextureName(modid + ":" + "White"); GameRegistry.registerBlock(CbColorBlock, "CbColorBlock"); and my CbColorBlock(which I use for all my Color blocks): package keeperofmee.minecraft.colorblocks.colors; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class CbColorBlock extends Block { public CbColorBlock() { super(Material.wood); setResistance(50F); setHardness(0.1F); setStepSound(Block.soundTypeStone); setLightLevel(1F); } } Some notes: I will probably make it so I use 1 block for all (like planks, wool) soon. Thanks Best Regards KeeperofMee
-
Car Mod !
2012-08-25 11:10:00 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.71.289 for Minecraft client:1.3.2, server:1.3.2 loading 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] All core mods are successfully located 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Discovering coremods 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Running coremod plugins 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Validating minecraft 2012-08-25 11:10:00 [FINEST] [ForgeModLoader] Minecraft validated, launching... 2012-08-25 11:10:02 [iNFO] [sTDOUT] 27 achievements 2012-08-25 11:10:02 [iNFO] [sTDOUT] 195 recipes 2012-08-25 11:10:02 [iNFO] [sTDOUT] Setting user: kimeriderf, 62b2446bd7f50604dc2b045b9f503b6abaa595d8 2012-08-25 11:10:02 [iNFO] [sTDOUT] LWJGL Version: 2.4.2 2012-08-25 11:10:03 [iNFO] [sTDOUT] OptiFine_1.3.2_HD_U_B3 2012-08-25 11:10:03 [iNFO] [sTDOUT] Sat Aug 25 11:10:03 CEST 2012 2012-08-25 11:10:03 [iNFO] [sTDOUT] OS: Windows 7 (x86) version 6.1 2012-08-25 11:10:03 [iNFO] [sTDOUT] Java: 1.7.0_05, Oracle Corporation 2012-08-25 11:10:03 [iNFO] [sTDOUT] VM: Java HotSpot Client VM (mixed mode), Oracle Corporation 2012-08-25 11:10:03 [iNFO] [sTDOUT] LWJGL: 2.4.2 2012-08-25 11:10:03 [iNFO] [sTDOUT] OpenGL: ATI Radeon HD 4600 Series version 3.3.11631 Compatibility Profile Context, ATI Technologies Inc. 2012-08-25 11:10:03 [iNFO] [sTDOUT] OpenGL Version: 3.3 2012-08-25 11:10:03 [iNFO] [sTDOUT] OpenGL Fancy fog: Not available (GL_NV_fog_distance) 2012-08-25 11:10:03 [iNFO] [sTDOUT] Checking for new version 2012-08-25 11:10:03 [iNFO] [sTDOUT] setupTexture: "/title/mojang.png", id: 1 2012-08-25 11:10:03 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization 2012-08-25 11:10:03 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization 2012-08-25 11:10:03 [iNFO] [ForgeModLoader] Forge Mod Loader has detected optifine OptiFine_1.3.2_HD_U_B3, enabling compatibility features 2012-08-25 11:10:03 [iNFO] [sTDOUT] Version found: B3 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer] 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Skipping known library file C:\Users\Kimeriderf\AppData\Roaming\.minecraft\bin\lwjgl.jar 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Skipping known library file C:\Users\Kimeriderf\AppData\Roaming\.minecraft\bin\jinput.jar 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Skipping known library file C:\Users\Kimeriderf\AppData\Roaming\.minecraft\bin\lwjgl_util.jar 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Kimeriderf\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Skipping known library file C:\Users\Kimeriderf\AppData\Roaming\.minecraft\lib\argo-2.25.jar 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Skipping known library file C:\Users\Kimeriderf\AppData\Roaming\.minecraft\lib\guava-12.0.1.jar 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Skipping known library file C:\Users\Kimeriderf\AppData\Roaming\.minecraft\lib\asm-all-4.0.jar 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully 2012-08-25 11:10:03 [iNFO] [ForgeModLoader] Searching C:\Users\Kimeriderf\AppData\Roaming\.minecraft\mods for mods 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Found a candidate mod directory DJoslin 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Found a candidate mod directory mocreatures 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Identified a BaseMod type mod mod_cars 2012-08-25 11:10:03 [WARNING] [ForgeModLoader] Zip file minecraft.jar failed to read properly, it will be ignored 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Examining directory DJoslin for potential mods 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Examining directory mocreatures for potential mods 2012-08-25 11:10:03 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 3 mods to load 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Received a system property request '' 2012-08-25 11:10:03 [FINE] [ForgeModLoader] System property request managing the state of 0 mods 2012-08-25 11:10:03 [FINE] [ForgeModLoader] After merging, found state information for 0 mods 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Verifying mod requirements are satisfied 2012-08-25 11:10:03 [FINE] [ForgeModLoader] All mod requirements are satisfied 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Sorting mods into an ordered list 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Mod sorting completed successfully 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Mod sorting data: 2012-08-25 11:10:03 [FINE] [ForgeModLoader] mod_cars(mod_cars): minecraft.jar () 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Activating mod FML 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Activating mod Forge 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Enabling mod mod_cars 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Activating mod mod_cars 2012-08-25 11:10:03 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@585191 to mod FML 2012-08-25 11:10:03 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@585191 delivered to mod FML 2012-08-25 11:10:03 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@585191 to mod Forge 2012-08-25 11:10:03 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@585191 delivered to mod Forge 2012-08-25 11:10:03 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@585191 to mod mod_cars 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Overriding /gui/items.png @ 102 with car.png. 70 slots remaining 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Overriding /gui/items.png @ 118 with wheel.png. 69 slots remaining 2012-08-25 11:10:03 [FINE] [ForgeModLoader] Overriding /gui/items.png @ 119 with engine.png. 68 slots remaining 2012-08-25 11:10:03 [FINE] [ForgeModLoader] No MLProp configuration for mod_cars found or required. No file written 2012-08-25 11:10:03 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@585191 delivered to mod mod_cars 2012-08-25 11:10:03 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue 2012-08-25 11:10:03 [sEVERE] [ForgeModLoader] Forge Mod Loader (coremods) Unloaded->Constructed Minecraft Forge (coremods) Unloaded->Constructed mod_cars (minecraft.jar) Unloaded->Errored 2012-08-25 11:10:03 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2012-08-25 11:10:03 [sEVERE] [ForgeModLoader] Caught exception from mod_cars 2012-08-25 11:10:13 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.IllegalAccessException: Class cpw.mods.fml.common.modloader.ModLoaderModContainer can not access a member of class mod_cars with modifiers "public" 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:106) 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:421) 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:192) 2012-08-25 11:10:13 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.a(Minecraft.java:402) 2012-08-25 11:10:13 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:734) 2012-08-25 11:10:13 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] Caused by: java.lang.IllegalAccessException: Class cpw.mods.fml.common.modloader.ModLoaderModContainer can not access a member of class mod_cars with modifiers "public" 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at java.lang.Class.newInstance0(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at java.lang.Class.newInstance(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:504) 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:127) 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2012-08-25 11:10:13 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:85) 2012-08-25 11:10:13 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:420) 2012-08-25 11:10:13 [iNFO] [sTDERR] ... 4 more
IPS spam blocked by CleanTalk.