Jump to content

mitterdoo

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by mitterdoo

  1. apologies for posting another thread so quickly. after watching a portion of a youtube series, and viewing the Minecraft by Example tutorial, there's functions such as "onBlockActivated" and "update" and "onEntityWalking". where do you find these, though? is there a list of these "event" functions that i can use to do different things? where did the tutorial authors even find these? after years of mods even existing for minecraft, i'd expect it to be a lot better than looking through all of its vanilla code and searching for functions that appear to be "event" functions. i've spent too long on google trying to find a list of these types of functions.
  2. hello. i have been learning how to make a mod for a bit, and i'm trying to simply give it a texture. (@19:58) tutorial series is out of date, using deprecated stuff. this wiki page hasn't been updated for 1.8+, so setBlockTextureName() doesn't even exist anymore. i learned that it was replaced with a much more difficult process where you have to create 3 .json files for each block you make. i've spent two hours on trying to find how to perform this task that i assumed would be simple. anyways, my mod's name is "example" and the block i'm trying to create has the ID "machine" (nearly following the tutorial series playlist above; i used "machine" instead of "sillymachine"). i created the 3 json files, and then followed this tutorial's model section. now, every time i build, i get this error: [FML]: Exception loading model for variant mittersexample:Machine#normal for blockstate "mittersexample:Machine" java.lang.Exception: Could not load model definition for variant mittersexample:Machine#normal this is how my json files are set up as well as the png file: assets.example.blockstates/machine.json { "variants": { "normal": { "model": "example:machine" } } } assets.example.models.block/machine.json { "parent": "block/cube_all", "textures": { "all": "example:blocks/machine" } } assets.example.models.item/machine.json { "parent":"example:blocks/machine", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } } and the texture for the block is in assets.example.textures.blocks/machine.png and it IS 16x16 i don't know what to do. google just spits out either outdated or unhelpful results and the wiki is outdated. help anybody? EDIT ugh. i always end up solving problems myself after posting about them on some forum. my mod name was left as "mittersexample" instead of being "example"... i had a feeling it was something obvious.
×
×
  • Create New...

Important Information

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