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.

TylerCraft10

Members
  • Joined

  • Last visited

Everything posted by TylerCraft10

  1. TylerCraft10 posted a topic in Modder Support
    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
  15. I decided to work on my mod again, thing is its it for 1.7.2. So I decided to update it. I fixed everything, but I'm getting 1 error for the worldgen. This is the line: (new WorldGenMinable(mainClass.darkOre, 2)).generate(world, random, chunkX, chunkY, chunkZ); Its saying: - The constructor WorldGenMinable(Block, int) is undefined - The method generate(World, Random, BlockPos) in the type WorldGenMinable is not applicable for the arguments (World, Random, int, I'm still pretty new, but I need some help.
  16. What do you mean that "you will encounter The Problem that there is not just one recipe for each item?" Can't I just make it so it puts what items I want there?
  17. I'm trying to make a GUI where you put certain items in in a slot, and on the other side there is a 3x3. When you put that item in, it puts the crafting recipe in the 3x3 and you can take the items. I found no documentation on 1.8 gui. Can anyone help me set this up? Thanks.
  18. I need to know the id for Red sandstone slab. The wiki says "stone_slab2" with 0 for the meta. What is the right one? http://minecraft.gamepedia.com/Slab
  19. Forgot to register it. Now its working.
  20. This is what I have and its not working @SubscribeEvent public void PlayerLoginEvent(PlayerEvent.PlayerLoggedInEvent event) { String welcome = EnumChatFormatting.YELLOW + "Thank you for using Crafting is a Breeze!"; event.player.addChatComponentMessage(new ChatComponentText(welcome)); }
  21. I'm trying to make my mod say a message when the player joins. But, I want it to be its own class. How can I set it up?
  22. Thats fine. I'm just making a simple mod. Thanks
  23. I just set up a new mod workspace, but when I try to run the game, I get this error: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_45] at java.util.ArrayList$Itr.remove(Unknown Source) ~[?:1.8.0_45] at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

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.