Jump to content

TylerCraft10

Members
  • Posts

    32
  • Joined

  • Last visited

Converted

  • Gender
    Male

TylerCraft10's Achievements

Tree Puncher

Tree Puncher (2/8)

-1

Reputation

  1. Fixed. I was calling the wrong Modid since I have another mod in my development.
  2. I also tried in 1.8, still not working.
  3. Fixed. I wasn't using the correct register.
  4. I guess I don't know that much of java. I understand some of it.
  5. I found it. But I never worked with inventory things before. public static ItemStack[] defaultRecipeGetRemainingItems(InventoryCrafting inv) { ItemStack[] ret = new ItemStack[inv.getSizeInventory()]; for (int i = 0; i < ret.length; i++) { ret[i] = getContainerItem(inv.getStackInSlot(i)); } return ret; } That is what I found. The only part I don't understand is what do I need to change?
  6. I override getRemainingItems, but what do I put in there? I have: @Override public ItemStack[] getRemainingItems(InventoryCrafting p_179532_1_) { return null; } I'm still kinda new to programming so please excuse me.
  7. The hammer is used in crafting. It takes durability when you use it while crafting. That works. If you take 2 tools in vanilla and put the together, they both combine. If you take 2 hammers and put them together, they just keep making more. This is what I mean: https://gyazo.com/9f72ca4eac19b6480703d6334948fbff It just lets me make more. I was wondering how do I not make it repairable like that?
  8. Is there a way to make it so it does take damage but does not do the thing I described? I changed so it doesn't have a container item, but it doesn't take damage,. It takes the whole item.
  9. I have an item that takes damage when you use it to craft things. The problem is when I put 2 of them in a crafting table (like in vanilla how you can combine them for more durability), this happens: I can just keep crafting them. Here is the item class: http://pastebin.com/p3EYBhU8
  10. I fixed it by registering my generation under pre init.
  11. Yep, I did register it. I had public static oreGenerationClass WorldGen = new oreGenerationClass(); and GameRegistry.registerWorldGenerator(WorldGen, 1); under my main file. The second code is under init.
  12. http://pastebin.com/kW1JWxnc - Ore generator. http://pastebin.com/fjzy8cwM - My blocks.
  13. I'm trying to make 2 ores spawn. The first one was fine, but I tried to do another one, it doesn't work. Here is the ore code: for (int a = 0; a < 4000 ; a++){ int firstBlockXCoord = chunkX + rand.nextInt(16); int firstBlockZCoord = chunkZ + rand.nextInt(16); int quisqueY = rand.nextInt(50); BlockPos quisquePos = new BlockPos(firstBlockXCoord, quisqueY, firstBlockZCoord); (new WorldGenMinable(dgr2Blocks.blue_ore.getDefaultState(), 3)).generate(world, rand, quisquePos); } I put 4000 because I just wanted to see if it spawned, but its not.
  14. Ok, I fixed it now
×
×
  • Create New...

Important Information

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