Jump to content

SanaRinomi

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by SanaRinomi

  1. It only drops the default item and yes I did remove the things that you mentioned Updated code:
  2. I tried doing that and it didn't work so what I did was add " || true" to the if statements and it still didn't drop the item... And before you ask, I did move it to the load method.
  3. My problem is that my custom item never droppes... ;(
  4. I admit, I've never worked with events so it's probably something I'm overlooking but anyhow... I'm trying to get a vanilla block to drop not only it's own item drop but also to have a chance of dropping a custom one. Here's my Event code: And here's my main registry: Note: I've tried registering it in both load and postLoad. If I put it into preLoad the default item it's self only droppes randomly.
  5. I'm more familiar with 1.8 and my goal is to create a special mod which is based around Hypixel, which supports 1.8. 1.9 and 1.10 is new territory for me. 10/10 IGN will never update again! EDIT: I felt like adding some humor to this thead... So I did.
  6. I've been reading though it, also looked at said Event class, but I still can't seem to get how I'm suposed to make a block drop a custom item.
  7. Thx! Been looking for a good tutorial on that.
  8. I want to add custom drops to Diamond Ore and Obsidian.
  9. And may I ask what the two floats represent? Look at their names in your IDE. The current version of Neon Eclipse is being stupid and only tells me the type. Nothing else... EDIT: I retract my statement.
  10. And may I ask what the two floats represent?
  11. It's probably a stupid mistake that I can't seem to realize what it is, but when creating the axe for my mod the game crashes. Crash Report: ModItems class: AxeItem class:
  12. Well, thanks for the help. <3
  13. Updated code: Note: I put IBlock.setRegistryName(block.getUnlocalizedName().substring(5)); because the unlocalizedName (except the tile. part) is the same as the registry name.
  14. Crash Report...
  15. It's still crashes... just for different reasons... Of which I don't know of. Here's the crash report: And here's the ModBlocks class: EDIT: It will still crash the same way even if I change GameRegistry.register(IBlock.setRegistryName(block.getRegistryName())); to GameRegistry.register(IBlock.setRegistryName(block.getUnlocalizedName().substring(5)));
  16. Ok, so will I have to register the the Block and the ItemBlock or just the ItemBlock? EDIT: Let me refrase that, how on earth do I fix this?
  17. My proxy is the last piece of code read. Here: Main class: ServerProxy class: Client proxy:
  18. I'm calling it from my client proxy.
  19. After some constructive criticism from Draco18s (Sorry if I spelled it wrong) I changed my register for my blocks and items to the GameRegister.register(...) fuction. Now, upon registering the textures for the blocks my game crashes for some reason. Here's extra info if you need it. Crash Report: Block Texture Render class: ModBlocks class: BasicBlock class:
  20. Yes, but I wrote all my code aswell. Which doesn't help when making mods.
  21. Sorry! I'm used to using C# not Java!
  22. Dont use the deprecated version use the GameRegistry.register (item.setRegistryName (name) not unlocalized name I don't see the problem with the code I gave. I use it in my 1.10.2 mod and it works perfectly. The problem is that it will be removed in the next version of minecraft and you will need to change it anyway. Really!? I really need to get up-to-date with the next updates then!
  23. Dont use the deprecated version use the GameRegistry.register (item.setRegistryName (name) not unlocalized name I don't see the problem with the code I gave. I use it in my 1.10.2 mod and it works perfectly.
×
×
  • Create New...

Important Information

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