Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

gmod622

Members
  • Joined

  • Last visited

Everything posted by gmod622

  1. 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
  2. im trying to change the name of the item when you right click with it
  3. Yeah the title pretty much explains every thing. any help will be appreciated.
  4. so what should I do from keeping it from null (NOOBIE QUESTION : )
  5. 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); } }
  6. When I load up a world and hover over my item, I crash with this error : My item code: Any help be appreciated
  7. 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"); } }
  8. really funny, I need direct source
  9. The title gives what i need. Thanks
  10. (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?
  11. 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
  12. 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
  13. 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
  14. Anvils are for renaming and adding on a item. Not crafting, you have to a "custom anvil"
  15. 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.
  16. 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,
  17. Can you give me a more descriptive way of doing it.
  18. 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.
  19. try putting the durabilty really really high( i bet no one will be able to destroy it)
  20. to render a bow full 3d you use: bFull3D();
  21. how to do somthing every so often to excute a function? like every 1 minecraft day.
  22. this line: NBTTagCompound stackCompound = ItemStack.getItemStackNBTTagCompound(); // whatever it is to get it getItemStackNBTTagCompound isnt a method( I really newbie with ItemStacks and NBTs, sorry)
  23. Well, can you be just a little bit more discriptive
  24. 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.