Jump to content

DarkNinja2462

Forge Modder
  • Posts

    56
  • Joined

  • Last visited

Everything posted by DarkNinja2462

  1. I got dis for you. I found it in the WritableBook and EditableBook classes This is what i had: ItemStack tomeStack = new ItemStack(Item.writableBook); NBTTagList bookPages = new NBTTagList("pages"); bookPages.appendTag(new NBTTagString("1", "Insert text here.")); bookPages.appendTag(new NBTTagString("2", "Insert moar text here.")); tomeStack.setTagInfo("pages", bookPages); tomeStack.setTagInfo("author", new NBTTagString("author", "Author name here")); tomeStack.setTagInfo("title", new NBTTagString("title", "Title here")); tomeStack.itemID = Item.writtenBook.itemID;
  2. Okay, I got the Enchantment, but I cannot apply it to the special ItemBlock (a new class I made) but I can apply the enchantment on the book to anything in the anvil in survival mode.
  3. I would like to make an enchantment. I know that I have to extend the class "Enchantment". I want to enchant an ItemBlock of a specific type. And then make it place a different block if it is enchanted with a certain level and enchantment. My main obstacle is making the enchantment.
  4. I want to change if an enderman attacks you if you are wearing a different item aside from a pumpkin and i want to remove the enderman-blocking functionality on the enderman. Unfortunately, this is directly in the enderman code. This will be hard/impossible :'(
  5. Don't server-side mods remove recipes from in-game stuff? Isn't there a more efficient and less cpu-heavy way?
  6. I tried to remove a vanilla recipe by deleting it from the list. It is the recipe for making pumpkin seeds. ShapedRecipes noRecipe1 = this.getShapedRecipesFromRecipe(new ItemStack(Item.pumpkinSeeds, 4), new Object[] {"M", 'M', Block.pumpkin}); CraftingManager.getInstance().getRecipeList().remove(noRecipe1); FYI: getShapedRecipesFromRecipe is a method I made that mimics the CraftingManager.addRecipe except it doesn't add the recipe to the list. Please tell me what I am doing wrong.
  7. Fine. How would I add a new generation while deleting the old one to the BiomeDecoration. P.S. Can you show me a way to remove recipes from vanilla?
  8. I need to change a block that is generated in WorldGenPumpkin but I do not want to re-invent the block pumpkin
  9. There is this method i want to change in a base class. Can I do something like BaseClass.Method = MyClass.NewMethod
  10. Okay...... I just need to change what block spawns in the world. Like, if i change the block type that generates in pumpkin patches so it becomes stone patches .
  11. Okay, that works. But is the number in [] the block id and can I use Block.blocklist[164] = new BlockDerp(164) instead of making a new block or will it crash?
  12. I want to edit the BlockStem or at least change pumpkinStem in Block. Like: Block.pumpkinStem = new NewBlockStem....... When I tried it. i cannot because it has the final modifier. I do not want to edit the Block class.
  13. I need to edit a file. More specifically, change a method in a vanilla file. Could I set the method like I would do with any object or do I directly have to edit the file? I also want to change a block into a new class but it is listed as final. If I do any of this, would there be a need of a certain change in the way my mod is distributed or something?
  14. I have the main code, with an item that changes a block (like a hoe) How would one spawn an item on the ground. Like if I use a hoe on dirt, it will spawn a block of dirt on the ground. I also want it to fountain out of the top of the block (like 4 different items fly out the top)
  15. Wait, do i need to install it into minecraft_server.jar too? Like thaumcraft3, i need extrabiomes, forge, and forestry, or just thaumcraft 3 and forge into the minecraft.jar and minecraft_server.jar? EDIT: I tried it, added forge and thaumcraft3 into minecraft.jar and minecraft_server.jar. Removed extrabiomes and forestry folders from both. Got this ...............normal stuff............... > Creating Retroguard config files !! Missing client jar file. Aborting !! ! Modified jar detected. Unpredictable results !! Decompiling server using fernflower > Creating SRGs > Applying Retroguard “C:\Progran Piles\Java\jdkl.7.0_01\bin\java” —cp ‘runtime\bin\retroguard.jar;lib;lib\*;jars\minecraf…' failed : 1 == ERRORS FOUND == Unrecoverable error during obfuscation, see log file for details. RetroGuard error: COM.rl.obf.classfile.ClassPileException: ClassNotFound ats Deconpile failed Press any key to continue . . .
  16. listen, the beardedoctonemesis thing sounds too complex at command line. The MCP way probably changed cuz u did it in 1.2.5. Please provide a user-friendly way, and an up-to-date way. Look at my first post.
  17. I already searched this on Google, and i got results that don't work and are either: too old, not forge, too vague, or senseless. I want to do this wit MCP. I don't know of anything else. I just want to make a mod that uses another mod's api, but i don't know how to use certain things. I have the api source, but not the mod itself. I am getting really frustrated with Google so HELP ME!!!!! :'(
  18. If that is not the answer you are looking form then in your item declaration do Item derp = new Item(number).setItemName("derp").setContainerItem(derpyContainerItem); P.S. It's the setContainerItem
  19. Yea... I need help too so um... bump? P.S. I just need my dimension to be empty, except for a small house in the middle of nowhere and a portal to take me back
  20. There should be a hook to disable a crafting recipe, and this can also be only server-side. Like on a server that thinks making computercraft computers are too OP. Or this could be a mod that reinvents a new recipe.
  21. I have seen this once before, but on Mo' Creatures (I think), but this idea seems better . It should be like config.save and .load for the api. Maybe they should also add more subcategories like Options > [My Mod] > [Option category] > [Option Button], and we would use code like config.addSubCategory and config.addOption. Each option should also be its own object like Option derp = new Option(id);
  22. Can you make an event called by a food being eaten that returns: food item, how much hunger filled, hunger before eating
  23. I am running multi mc with no optifine and i get this
×
×
  • Create New...

Important Information

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