Jump to content

RedBullSlurpie

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by RedBullSlurpie

  1. Hi. Currently am working on my mod in 1.15.2, and I noticed that in an anvil I can't combine 2 same type tools together to get the enchants. Example: If I have 1 ruby pickaxe with Unbreaking 3, and another with Fortune 3, I can't combine the 2 picks together to make 1 pick with both enchants, however with Vanilla tools you can do this. Am I missing any code or anything? My Custom tool class just extends PickaxeItem, and I don't really have anything else special in there, just whats required to make it work as a pickaxe. I thought that this would be enough, but clearly I am missing some needed code to make combining enchants on a custom tool available. If anyone could help, I'd greatly appreciate it. I've tried looking at vanilla code, but I don't see anything there, that I don't already have, or don't need. Again, I can enchant the tools, I just can't combine them in an anvil, or with a book either for that matter. Thanks
  2. Discard post. I've fixed the issue by updating to Forge 28.0.46 and simply recoding the configs. Must have added something somewhere by mistake that it didn't like I guess.
  3. All of it was fresh from the Forge site, build.gradle and all the rest of the files that come with the forge MDK. I changed nothing. Forge 28.0.16 works fine, but 14 setup as 12, so I thought that it had something to do with Forge its self, that was all. Code had nothing to do with it. Thanks anyways but 28.0.16 setup fine.
  4. Setting up Forge 28.0.14 in a dev environment sets up Forge 28.0.12, not 28.0.14. Not sure why. All of the files are straight from Forge's website where I always get them, I downloaded the MDK for Forge 28.0.14, extracted them to a folder for 1.14.4, imported the build.gradle. Ran genIntelijayRuns, setup the client and launched the game. It loads up 28.0.12 Forge. Am I missing something here or is this a mistake with something in Forge ?
  5. Weird. I guess I had both update 202 and 31 installed. Uninstalled 31 and fixed my issue. Thanks
  6. I think I have the latest version of Java 8. Java 8 update 202 64 bit. Is that not the latest ? As for the workaround, i've tried that. Doesn't seem to work for me.
  7. Gives me an error downloading libraries. I've attached the install log below, and a screen shot as well. Here is the log for the installer- https://pastebin.com/ngPDecRr
  8. In 1.12.2 i had it working to where my custom food, example is Corn, When planted would drop both Corn, and sometimes drop a seed so you can re-plant the crop and keep it going. In 1.13.2, I looked at the code for Wheat Seeds and pretty much followed the same setup they have, but my corn continues to only drop food, never any seeds. Here is my Corn Crop code, as well as the Corn Seed Code. Corn Crop Class- https://pastebin.com/yMjhsXaR Corn Seed Class- https://pastebin.com/JEUSUmLE Where I am creating the Corn Crop- https://pastebin.com/TmcUHEXJ Where I am Creating the Corn Seed- https://pastebin.com/FA3zzeBg Not sure what im doing wrong, or if I missed anything, any help would be appreciated. Also I noticed that when I break a crop before its fully grown, nothing at all drops, which was not the case in 1.12.2. Anyone know why this is from looking at my code ?
  9. Anyone who can help? Here is all of my code if this helps anymore. https://github.com/RedBullSlurpie/SlurpiesDongles/tree/1.12
  10. From 1.10.2 to 1.11.2 I had a config file for my mod, which worked fine, however in 1.12 it crashes for me. My friend has the same setup and his seems to work fine with no crashing, am wondering if anyone can figure out why when I have my armor in my config file, so people can change whatever if they wish too, it crashes.. If I create it, not in a config file, it works fine and doesn't crash. I'll post my code to everything pertaining my armor, and config file, as well as the crash report. Configuration file: https://pastebin.com/QbAGu0Z6 Config PreInit: https://pastebin.com/9BQx0r4B SDItems: https://pastebin.com/Q0875BUW Main:https://pastebin.com/ys32ktet Crash log: https://pastebin.com/qkKNjwRY
  11. Trying to register my armor in 1.12, updating my mod from 1.11.2 and had to change how I do things, but for some reason once I get my armor registered and I attempt to launch the game, it says [15:52:57] [main/ERROR]: Exception caught during firing event net.minecraftforge.event.RegistryEvent$Register@660b292c: java.lang.NoClassDefFoundError: Could not initialize class com.rbs.slurpiesdongles.init.SlurpiesDonglesItems at com.rbs.slurpiesdongles.init.RegistrationHandler.registerItems(RegistrationHandler.java:18) ~[RegistrationHandler.class:?] Here is my items class code Here is my Registration Handler class and yeah i've got the RegistrationHandler class called in my main under PreInit with this. FMLCommonHandler.instance().bus().register(new RegistrationHandler());
  12. Did that, but now I am getting java.lang.IllegalStateException: Attempted to set registry name with existing registry name! New: slurpiesdongles:sapphire_ore Old: slurpiesdongles:sapphire_ore Added my new line here package com.rbs.slurpiesdongles.init; import com.rbs.slurpiesdongles.blocks.BlockSapphireOre; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.registries.IForgeRegistry; /** * Created by Consular on 7/19/2017. */ public class SDBlocks { public static BlockSapphireOre oreSapphire = new BlockSapphireOre("sapphire_ore").setCreativeTab(CreativeTabs.MATERIALS); public static void register(IForgeRegistry<Block> registry) { registry.registerAll( oreSapphire, oreSapphire.setRegistryName(oreSapphire.getRegistryName()) ); } public static void registerItemBlocks(IForgeRegistry<Item> registry) { registry.registerAll( oreSapphire.createItemBlock() ); } public static void registerModels() { oreSapphire.registerItemModel((ItemBlock) Item.getItemFromBlock(oreSapphire)); } } Crash log here- https://pastebin.com/zpQ2WYD2
  13. I've got this issue as well. Pretty sure it's the same issue, my items are registered in game fine, but blocks give me this error upon launching Minecraft, you say to also set the registry name for the Itemblock, but im not sure how to do that, here is my code, if I need to do the same thing, would someone help me? Main class where the registration handler is- https://pastebin.com/CUvW9429 My sapphire ore class- https://pastebin.com/vptv0c9k My blocks class- https://pastebin.com/zWjCRuDr Crash log also- https://pastebin.com/KvnuZPKh
  14. I was trying to learn from Project E's code for coding the item. I can't answer those questions as i am trying to learn from they'yre code, just trying to figure out why the item wont repair durability every few seconds.
  15. So I am trying to code an item similar to Project E's Repair talsman that repairs items slowly. I didn't know where to start so I looked at some of project e's code for the item and began coding. I have everything done, but it doesn't seem to work like the repair talsman. I can either get it to repair items very very fast, when I want it to repair about a durability every few seconds, or i can get it to repair 1 durability upon loading the world, or not work at all if I mess around with the code. I would like to try and get it to repair 1 durability every few seoconds. So here is the code for the different classes, if you need anything else I can post it. Class for the actual repair item- http://pastebin.com/eyuKFkdi Class for the timer for how often it repairs- http://pastebin.com/XVjVyw5r Player Event class to attatch Capability- http://pastebin.com/M6zWgrdt Player Tick class- http://pastebin.com/fJrPPzAq Main class where everything is registered- http://pastebin.com/21sxr9v0
  16. Some people are still learning, like I am. Which is why i come to this place for help. Whether or not i get the help is my issue.
  17. Did that before and it crashed so i thought that it made no difference, sorry. here is the new crash from it crash log- http://pastebin.com/WXzqCDfj FML log- http://pastebin.com/TPKTbnJZ
  18. So then the error isin't within BlockRbsCrops? I've read your post over again. I see you saying that @Override is just a marker, and that if it's not overriding anything, it's going to give an error.
  19. I removed the @Override Annotation. How am i still overriding it? RbsBlockCrops http://pastebin.com/q2nLFYbR BlockRegistry- http://pastebin.com/TRp2psHH not sure what else you'd need, but i dont know where else it's getting overrided.
  20. I will post the new crash log and FML log for you then. crashlog- http://pastebin.com/fgdcpbcM FML Log- http://pastebin.com/8f4GN5Lm Yes, I will post it tomorrow once im home, or PM it too you.. the link that is.
  21. I am not overriding them anymore. But it still crashes, and im not sure why, you said above that not overriding them wouldn't fix the issue eitherway, so im still trying too figure out why it crashes. Could you help anymore? Also as for the tutorial, I don't have a direct link as im on a different computer than what im usually on, but i think the user's name was ChampAsh on youtube.
×
×
  • Create New...

Important Information

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