Jump to content

tminor1

Members
  • Posts

    103
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

tminor1's Achievements

Creeper Killer

Creeper Killer (4/8)

1

Reputation

  1. Well I don't care about it not being compatible with other mods this mod is for my use only I have no plans to distribute it and make money I only want it for my use only. You guys always assume that when someone asks for help developing a mod they are planning to become some big modder and make lots of money but there are others like me who don't want money they just want to make a mod for themselves because there is no other mod out there that will do what they want. For me I want to make a mod that disables endermen from picking up blocks. I know that you can change the mobGriffing gamerule to false but I am fine with creepers and things doing what they do but I don't like endermen moving blocks at all and I wish that it was removed from the game so I want to make a mod to do that.
  2. well then can you tell me how to make a mod with mcp and not need minecraft forge?
  3. So this is a non forge question. I want to change up just a little bit of minecraft code to create a simple mod with out having to learn to use forge. The problem is after I create my mod I do the stuff to get the modded files. Then I go to the minecraft jar and put the modded files into the jar file. But then when I run minecraft the jar file just gets re-downloaded. I don't understand it. I renamed the the folder, jar file, jason file, and opened the jason file and changed 1.9.4 to the new name and I also deleted the META-INF folder from the jar file. If I were to create and install a mod into a server.jar every thing would work fine, but if I try to mod the client it just re-downloads the jar file and I can't use my mod. How do I install the mod so it can work?
  4. Hey, look at that. I got it to work by doing this. EntityItem item = new EntityItem(evt.world, evt.pos.getX(), evt.pos.getY(), evt.pos.getZ(), new ItemStack(Item.getItemFromBlock(Blocks.stained_glass),1,((EnumDyeColor) evt.state.getValue(BlockStainedGlass.COLOR)).getMetadata())); First I changed it back to ItemStack(Item.getItemFromBlock(Blocks.stained_glass),1,1)) then added the other part where that last one was. Then, I added an () to the end of getMetadata changed BlockGlass to BlockStaindGlass then if finally took COLOR Then, the .getProperty needed to be changed to .getValue and guess what, it worked. So thanks for semi helping me.
  5. After some playing around I got this. package net.glassDrops.mod; import net.minecraft.block.BlockGlass; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.EnumDyeColor; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.BreakEvent; public class colorDrop0 { @net.minecraftforge.fml.common.eventhandler.SubscribeEvent public void blockBreak(BreakEvent evt){ if (evt.state.getBlock() == Blocks.stained_glass){ EntityItem item = new EntityItem(evt.world, evt.pos.getX(), evt.pos.getY(), evt.pos.getZ(), new ItemStack(((EnumDyeColor) evt.state.getProperty(BlockGlass.COLOR)).getMetadata)); EntityPlayer player = evt.getPlayer(); if(!player.capabilities.isCreativeMode) evt.world.spawnEntityInWorld(item); } But it keeps underlining COLOR and getMetadata every time. That is why I asked someone to show me how to add it to my code I am not a complete idiot. Also about learning java then come back to modding even someone who is a master in java can not be able to make a mod because one they need to know how the game they want to mod works and two if you need to use an API like forge to make your mod you need to know how everything with the API works as well and if you have no idea how forge handles everything even a master of java will have to have a lot of help with making a mod for minecraft. P.S I am mostly making this(and other mods that I have made)for fun it is not like I am going to use it to make millions of dollars off it, and I do want to learn java but for now I am unable to do so but when I do get the ability to trust me I will.
  6. I have tried that. It is not working, someone just show me how to add it to my code please.
  7. Am I doing this right? package net.glassDrops.mod; import net.minecraft.block.BlockGlass; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.EnumDyeColor; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.BreakEvent; public class colorDrop0 { @net.minecraftforge.fml.common.eventhandler.SubscribeEvent public void blockBreak(BreakEvent evt){ if (evt.state.getBlock() == Blocks.stained_glass){ EntityItem item = new EntityItem(evt.world, evt.pos.getX(), evt.pos.getY(), evt.pos.getZ(), new ItemStack(Item.getItemFromBlock(Blocks.stained_glass((EnumDyeColor) evt.state.getProperty(BlockGlass.COLOR)).getMetadata))); EntityPlayer player = evt.getPlayer(); if(!player.capabilities.isCreativeMode) evt.world.spawnEntityInWorld(item); } }}
  8. KakesRevenge I tried your code and it didn't work for me. diesieben07, how do I add what you gave me to my code? What I meant is my plan was just to create a new event for every color glass block but like say the event for the orange one would see that you mined an orange one then drop an orange glass block and it would do that in all the events for all the glass blocks. Not saying I can't do it your way I just don't know how to add that in then drop the block with the Metadata of the one you mined.
  9. Alright now I can make it drop other colors then the white but that is only part of it I now I need to make to get what color of the glass you just mined so it knows what color to drop. package net.glassDrops.mod; import net.minecraft.block.BlockGlass; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.BreakEvent; public class colorDrop0 { @net.minecraftforge.fml.common.eventhandler.SubscribeEvent public void blockBreak(BreakEvent evt){ if (evt.state.getBlock() == Blocks.stained_glass){ EntityItem item = new EntityItem(evt.world, evt.pos.getX(), evt.pos.getY(), evt.pos.getZ(), new ItemStack(Item.getItemFromBlock(Blocks.stained_glass),1, 1)); EntityPlayer player = evt.getPlayer(); if(!player.capabilities.isCreativeMode) evt.world.spawnEntityInWorld(item); } }}
  10. But how do I do that? It wont let me add any thing before or after the Blocks.stained_glass.
  11. Yes, but how do I do that? If I try to add anything after the .stained_glass it will not accept it.
  12. Hey I am working on a better glass drop mod and I need help with the colored glass. I can get it to work with the white glass block because it is the first stained_glass block so if in my code I have stained_glass it will go for the white one but I also need it to drop the other colors to but I don't know how to add the damage value of the glass block or the color of the glass block so that when you mine a a glass block that is not white it will drop itself. package net.glassDrops.mod; import net.minecraft.block.BlockGlass; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.BreakEvent; public class colorDrop0 { @net.minecraftforge.fml.common.eventhandler.SubscribeEvent public void blockBreak(BreakEvent evt){ if (evt.state.getBlock() == Blocks.stained_glass){ EntityItem item = new EntityItem(evt.world, evt.pos.getX(), evt.pos.getY(), evt.pos.getZ(), new ItemStack(Item.getItemFromBlock(Blocks.stained_glass))); EntityPlayer player = evt.getPlayer(); if(!player.capabilities.isCreativeMode) evt.world.spawnEntityInWorld(item); } }}
  13. package net.testmod.mod; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; @net.minecraftforge.fml.common.Mod(modid = testmod.modid, version = testmod.version, name = testmod.name) public class main { public static final String modid = "testmod"; public static final String version = "v1.0"; public static final String name = "Test Mod"; @net.minecraftforge.fml.common.Mod.EventHandler public void PreInit(net.minecraftforge.fml.common.event.FMLPreInitializationEvent preEvent){ } @net.minecraftforge.fml.common.Mod.EventHandler public void Init(net.minecraftforge.fml.common.event.FMLInitializationEvent event){ GameRegistry.addShapelessRecipe(new ItemStack(Blocks.double_stone_slab, 1, , Blocks.brick_block); } @net.minecraftforge.fml.common.Mod.EventHandler public void PostInit(net.minecraftforge.fml.common.event.FMLPostInitializationEvent PostEvent){ } }
×
×
  • Create New...

Important Information

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