
TylerCraft10
Members-
Posts
32 -
Joined
-
Last visited
Everything posted by TylerCraft10
-
Fixed. I was calling the wrong Modid since I have another mod in my development.
-
Fixed.
-
I also tried in 1.8, still not working.
-
Fixed. I wasn't using the correct register.
-
I guess I don't know that much of java. I understand some of it.
-
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?
-
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.
-
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?
-
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.
-
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
-
I fixed it by registering my generation under pre init.
-
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.
-
http://pastebin.com/kW1JWxnc - Ore generator. http://pastebin.com/fjzy8cwM - My blocks.
-
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.
-
Ok, I fixed it now
-
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.
-
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?
-
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.
-
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
-
Forgot to register it. Now its working.
-
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)); }
-
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?
-
Thats fine. I'm just making a simple mod. Thanks
-
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:?]