Jump to content

Reygok

Members
  • Posts

    56
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Reygok's Achievements

Stone Miner

Stone Miner (3/8)

1

Reputation

  1. Hi all, I updated my first mod to work with Minecraft 1.9 Diamonds are pretty cool yeah, but they are too easy to acquire for experienced players after a few minutes of gameplay. So I created my very first mod! After you've mined a bit, got your first diamond tools, and build you portal to the nether, you can start a new quest: finding Vibranium! It's a pretty rare ore you can only find near bedrock level, and it's exclusive to the nether. But only finding some ore is not everything, because Vibranium alone cannot be crafted into Tools or Armor. You need to combine a few tiny lumps of it, and then craft this together with Coal, Iron, Gold, Diamond and Blaze Powder! (Idea by athoren1) Tools have 10 times the durability of Diamond, and are twice as fast. They are also more susceptible to enchanting, even more than Gold. The Armor has the same resistance than Diamond (because I don't know how to make it stronger ) but it has a very high durability of 128. Additionally, the Chestplate gives you the potion-effect Strength I, and the whole Armor set together gives you Fire Resistance, both permanently. As these material traits are quite impressive, Vibranium Ore is pretty rare, and it has to be processed into an alloy to even get the material Adamantium to craft anything useful out of it. I hope some people like it, I know it's a pretty basic mod, but I had fun making it, and it is the first step on the road to another awesome mod idea. Features: Vibranium Ore (occurs only in the nether) Vibranium Lump Tiny Lump of Vibranium Adamantium Ingot Adamantium Tools Adamantium Armor Curse Link: http://minecraft.curseforge.com/projects/adamantium-mod-better-than-diamonds
  2. Yeah, so my question was basically: where do I specify that In 1.8 it was with the getTexture method. I do it like this, I read it was better to use the single-argument version of registering; but who knows. And yeah the EnumType was also correct. setRegistryName(name); GameRegistry.register(item); This was in fact the real solution, and exactly what I imagined: a change in a place where I would never look. So I changed this: public static ArmorMaterial ARMOR_ADAMANTIUM = EnumHelper.addArmorMaterial("adamantium", "adamantiumArmor", 128, durability, 30, SoundEvents.item_armor_equip_iron); to this: public static ArmorMaterial ARMOR_ADAMANTIUM = EnumHelper.addArmorMaterial("adamantium", "adamantium:adamantiumArmor", 128, durability, 30, SoundEvents.item_armor_equip_iron); And boom works perfectly. Thanks a lot, Choonster
  3. Hi I'm now almost done updating my mod to 1.9. There is one single thing which doesn't work: the textures for my custom armor are not loading. There must be a change from 1.8 to 1.9, because it worked fine in 1.8, but with a method in ItemArmor called getTextures. I commented it, because it doesn't exist anymore, but I have this error in the console: [17:59:12] [Client thread/WARN]: Failed to load texture: minecraft:textures/models/armor/adamantiumArmor_layer_1.png java.io.FileNotFoundException: minecraft:textures/models/armor/adamantiumArmor_layer_1.png Why does the game look for the textures in the vanilla folder? Here is my code: https://github.com/Reygok/AdamantiumMod.git
  4. I am so sorry for wasting your time... It did not work because I did not start the right .jar file. Since there are 2, and I'm usually playing with friends on a hosted server, where there is only one .jar file, I wasn't sure which one, and I never tried the other one. Now I did, and averything works fine. Thanks anyway for the code improvements, I'm in the process of doing that. And sorry again...
  5. Hello all I decided it was time to update my mod from 1.8 to 1.9, and since it's pretty small that was not so hard. I just have an issue with the armor textures not loading, but that's for another time. My main problem is that the mod does not work on servers. In-game, it seems like the server doesn't load it, because all my items/blocks can be obtained through the creative tabs, but they are not usable. Meaning blocks that are placed disappear immediately, and blocks destroyed with, for example, my custom pickaxe just disappear visually, but I cannot walk through them after that, and a relog shows they are still there, while also all the mod-related items disappear from the hotbar. As I said, it worked perfectly on 1.8 servers, so there must be a change that I don't know about. The server console throws no error or even warnings. The weirdest thing is that if I start the server inside Eclipse, and then connect to it from outside eclipse, everything works. I presume it's hard to help with this little concrete information, so I liked my github; maybe someone has the kindness and time to take a look at my code. I will gladly provide any more details if needed. Thanks in advance https://github.com/Reygok/AdamantiumMod.git
  6. Okay, that helps, will look into it more. Thanks
  7. Hi, I made a block with lots of different possible shapes, which is made up of up to 8 smaller blocks, each an exact 8th of a full block. So you can build slabs, stairs or something else. I'm using DrawBlockHighlightEvent to draw the wireframe as it should be, but I also need to use collisionRayTrace so the block doesn't get selected when you look at it's 1x1x1 bounding box, but the spot where you look is empty. Like for stairs, you can "look through" the part that has no texture. I looked at it's collisionRayTrace method, and also at the super method, but I can't figure out what's going on there. If somebody has a good understanding of this method and is willing to explain it to me, that would be nice Thanks in advance, Reygok
  8. Well, I have that idea from diesieben07, who seems quite good at modding. I absolutely need to have the exact spot where the player clocks on a block, I don't see how else I could do that.
  9. The problem there seems to be that when this method is called, the tileEntity at that blockPos is already gone, since it gives ame a Nullpointerexception here: TileEntityTinyBlock tileEntity = (TileEntityTinyBlock) worldIn.getTileEntity(pos); int count = tileEntity.count(); <---- THERE
  10. Thanks a lot! I should have figured that out by myself...
  11. Because it is way easier to save the information I need in the TileEntity, than to check the 255 possible states I realized that just now, will reformulate the title and first post now.
  12. Hm wait, I have no idea how to access the TileEntity when I only have the state...
  13. Hi, I followed TheGreyGhost's tutorial for the 3D Web Model to handle the 255 possible states for my blocks, and I got it to work fine for one, but I have to repeat this code for a lot of blocks, but I can't get it to work for more than one. This is my error: The error says the two "***Model" classes try to load the same model, but how can they, since this is the code of the two: As you can see at the end, I specify the right model in both cases. Why do I still get this error? Here is the preInit from the main class: Thanks in advance!
  14. Oh god, I'm so blind, I didn't find the third one... Thanks
×
×
  • Create New...

Important Information

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