Jump to content

Cmonster

Members
  • Posts

    20
  • Joined

  • Last visited

Cmonster's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Sorry I couldn't respond earlier, but thanks for the answer eveything works perfectly now
  2. I'm having problems with how much damage an axe can do and the attack speed. It's all messed up and I want the values to be based off of the material. Also, the shears' max damage can only be set in the shears class and also isn't based off of the material. Axe class: Materials and tools class: All of the axes have the same attack damage and speed, and I want to base it off material.
  3. I'm having this same exact problem! Have you solved anything yet?
  4. What I meant was what was inside of either of the json files. Not the type. I understand that blocks use blockstate and model json files.
  5. I understand that. I was having problems with the current json files named correctly and in the right place. The problem is within the json files and the reason why they are named incorrectly is because I was following Anthony Fuller's instructions. I think that the TNT type block requires a different type of json then a regular block.
  6. So I changed all of the json files to the unlocalized name and here's what happened. (It's attached) Also here is the console:
  7. Would you call all of the json files mytnt.json?
  8. These first 3 files are json files: Block model: name: johnny_tnt.json Item Model for Block: name: blockjohnny_tnt.json Blockstate Json: name: blockjohnny_tnt.json The texture for the block is in the block textures file and is named johnny_tnt.png (attached) Reference class (a lot of the blocks are named after my friend): Main mod class:
  9. forge-1.11.2-13.20.0.2228
  10. Hello, I have created a tnt block called "Johnny TNT" (don't ask why), and when i'm using it in-game, it shows the texture i'm using in my hand, but not when I place it down. I have a feeling I need to change something in the blockstates package/folder, because I get these errors when running the game: [19:08:36] [Client thread/ERROR] [FML]: Exception loading model for variant cmo:blockjohnny_tnt#explode=true for blockstate "cmo:blockjohnny_tnt[explode=true]" and [19:08:36] [Client thread/ERROR] [FML]: Exception loading model for variant cmo:blockjohnny_tnt#explode=false for blockstate "cmo:blockjohnny_tnt[explode=false]" here is the TNT block class (I haven't created the tnt entity class yet): Yes, I did in fact copy the BlockTNT class, but for learning purposes. I might change it later. Right now I need help with the Johnny TNT textures. Here is a picture:
  11. After I use the item in the craftin table the first time, it takes one durability value, but after I try to use the same item, the recipe does not work. EDIT: Mistake on my part, I needed to save the code
  12. Thanks for the answers It works, but after the first use, I can't use it again. Code:
  13. So far, I have created an item that takes damage in a crafting table, but it doesn't get destroyed when all of the durability is used, and also crashes the game when it is used after shift-clicking an amount of items over the durability. Here is the Item class: And here is the crafting recipe code: GameRegistry.addShapelessRecipe(new ItemStack(ModItems.lithium_carbonate), ModItems.lithium_ingot, Items.COAL, new ItemStack(ModItems.oxygen_extractor, 1, OreDictionary.WILDCARD_VALUE)); Coal is used as a placeholder here.
  14. Honestly, I'm not sure where to start here. I have fixed most other things, but i've been stuck here for a while. I'm new to modding, so if you could get me started with this, that would be great.
×
×
  • Create New...

Important Information

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