Everything posted by gmod622
-
[1.6.4] How to change a name of a item in code when right clicked.
I cant make a list, I have a item that generates a random number using NBT and displays it on addinfo, but i also want it to display on the name
-
[1.6.4] How to change a name of a item in code when right clicked.
im trying to change the name of the item when you right click with it
-
[1.6.4] How to change a name of a item in code when right clicked.
Yeah the title pretty much explains every thing. any help will be appreciated.
-
[1.6.4] Game crashing when using a NBT
ok what then?
-
[1.6.4] Game crashing when using a NBT
so what should I do from keeping it from null (NOOBIE QUESTION : )
-
[1.6.4] Game crashing when using a NBT
how would I stop from it becoming null, ive already tried to check if the random number is equal to 0 execute the command, and ive tried using the nbt and checking if is(not) equal to 0, then do the command give; the code is shown here (THIS DOES NOT WORK; EXAMPLE) : public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { if(par1ItemStack.stackTagCompound.getInteger("myRandomNumber") /* != */ == 0) { NBTTagCompound stackCompound = par1ItemStack.getTagCompound(); int idToDisplay = par1ItemStack.stackTagCompound.getInteger("myRandomNumber"); par3List.add("ID: " + idToDisplay); } }
-
[1.6.4] Game crashing when using a NBT
When I load up a world and hover over my item, I crash with this error : My item code: Any help be appreciated
-
[1.6.4] Block not Registering.
So I just started my mod, and I seem to get a weird error that makes my block not in the game, here is my code: package gmod.mods.roleplay.main; import gmod.mods.roleplay.main.common.block.BlockTest; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLLoadEvent; 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; @Mod(modid = "Roleplay Craft", version = "0.0.1a") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class main_roleplay { public static Block testBlock; public static CreativeTabs tabRoleplay; public static int testBlockID = 3645; public void init(FMLInitializationEvent event) { } @EventHandler public void preInit(FMLPreInitializationEvent event) { testBlock = new BlockTest(testBlockID, Material.cloth).setUnlocalizedName("testBlock").setCreativeTab(this.tabRoleplay); GameRegistry.registerBlock(testBlock, "testBlock"); tabRoleplay = new CreativeTabs("tabRoleplay") { public ItemStack getIconItemStack() { return new ItemStack(Item.eyeOfEnder, 1, 0); }}; } public void load(FMLLoadEvent event) { LanguageRegistry.addName(testBlock, "Test Block"); } }
-
Any tutorials on how to install forge for 1.7
really funny, I need direct source
-
Any tutorials on how to install forge for 1.7
The title gives what i need. Thanks
-
[FORGE, 1.6.4, UNSLOVED!]Need help with a custom armor model
(different error) May I add on that when you put: .setContainerItem(Blhahah); if will give you buckets(2) instead, even thou clearly you put blahah. Why is that?
-
[FORGE, 1.6.4, UNSLOVED!]Need help with a custom armor model
Hello! This github will tell you the code: https://gist.github.com/gmod622/5ed11613a519ffbf80d5 The problem is that my armor model is in the character shoulder as shown at the github gist or right here: the model is spose to be a shield in his hand
-
[HELP] Making A wire(Like IC2) To Transfer Data. Still Unsolved!
Okay, thanks, but do you know of any source code or something that can help me, I just got finished with my Java Course, but right now im not "SUPER" familiar with the minecraft methods and pre-made functions
-
[HELP] Making A wire(Like IC2) To Transfer Data. Still Unsolved!
OK thanks, but dont i have to made a different model for every turn, or swich of angle, or does it do it for me. And How would i MOVE the data from one wire to the other
-
Is there a way to add custom Anvil recipes?
Anvils are for renaming and adding on a item. Not crafting, you have to a "custom anvil"
-
[HELP] Making A wire(Like IC2) To Transfer Data. Still Unsolved!
The title explans pretty much everything, just need help to guide me into the right direction. I want it to be a wire( like the wires in IC2) to transfer data to one place to another. If you can help that would be GREAT! Reguards, gmod622.
-
Where should I start to get into more advance modding.
Hello, Today i decided i wanted to start getting more advance, but currently I'm learning java.. Do you know of any tutorials or help to get into more advance modding? Thanks,
-
[Unsolved]how to do somthing every so often(excute a function)
Can you give me a more descriptive way of doing it.
-
Unbreakable Armor
if you put it to 9999999 by the time you die you still have durabilty. And why it wont work is because at 0 its technically broken, minecraft counts it broken, causing 0 protection.
-
Unbreakable Armor
try putting the durabilty really really high( i bet no one will be able to destroy it)
-
Bow render in 3rd person
to render a bow full 3d you use: bFull3D();
-
[Unsolved]how to do somthing every so often(excute a function)
how to do somthing every so often to excute a function? like every 1 minecraft day.
-
[solved]How to put a randomly generated number into a lore?
this line: NBTTagCompound stackCompound = ItemStack.getItemStackNBTTagCompound(); // whatever it is to get it getItemStackNBTTagCompound isnt a method( I really newbie with ItemStacks and NBTs, sorry)
-
[solved]How to put a randomly generated number into a lore?
Well, can you be just a little bit more discriptive
-
[solved]How to put a randomly generated number into a lore?
I have a randomly generated number by using ItemStackNBT. if i would do that all of the ids will be the same on the cards
IPS spam blocked by CleanTalk.