
SanaRinomi
Members-
Posts
72 -
Joined
-
Last visited
Everything posted by SanaRinomi
-
[Solved][1.10.2] Need help with HarvestDropsEvent...
SanaRinomi replied to SanaRinomi's topic in Modder Support
It only drops the default item and yes I did remove the things that you mentioned Updated code: -
[Solved][1.10.2] Need help with HarvestDropsEvent...
SanaRinomi replied to SanaRinomi's topic in Modder Support
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. -
[Solved][1.10.2] Need help with HarvestDropsEvent...
SanaRinomi replied to SanaRinomi's topic in Modder Support
My problem is that my custom item never droppes... ;( -
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.
-
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.
-
[1.10] How can I make minecraft vanilla blocks drop custom items?
SanaRinomi replied to SanaRinomi's topic in Modder Support
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. -
[1.10] How can I make minecraft vanilla blocks drop custom items?
SanaRinomi replied to SanaRinomi's topic in Modder Support
Thx! Been looking for a good tutorial on that. -
[1.10] How can I make minecraft vanilla blocks drop custom items?
SanaRinomi replied to SanaRinomi's topic in Modder Support
How can I control said event? -
[Solved][1.10.2] Axe ArrayIndexOutOfBoundsException crash
SanaRinomi replied to SanaRinomi's topic in Modder Support
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. -
[Solved][1.10.2] Axe ArrayIndexOutOfBoundsException crash
SanaRinomi replied to SanaRinomi's topic in Modder Support
And may I ask what the two floats represent? -
Well, thanks for the help. <3
-
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.
-
Crash Report...
-
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)));
-
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?
-
My proxy is the last piece of code read. Here: Main class: ServerProxy class: Client proxy:
-
I'm calling it from my client proxy.
-
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:
-
AL lib: (EE) alc_cleanup: 1 device not closed
SanaRinomi replied to an_awsome_person's topic in Modder Support
Yes, but I wrote all my code aswell. Which doesn't help when making mods. -
AL lib: (EE) alc_cleanup: 1 device not closed
SanaRinomi replied to an_awsome_person's topic in Modder Support
Sorry! I'm used to using C# not Java! -
AL lib: (EE) alc_cleanup: 1 device not closed
SanaRinomi replied to an_awsome_person's topic in Modder Support
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! -
AL lib: (EE) alc_cleanup: 1 device not closed
SanaRinomi replied to an_awsome_person's topic in Modder Support
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.