About a compass

Started by Yokikani on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
About a compass

I wondered if I could apply compass.json that exists in minecraft files. I've changed some of them, but it doesn't work. I'm not very familiar with coding, but can't Iuse this code?

(The sentence may be a little strange because I are using translation. Sorry.)

{
    "parent": "item/generated",
    "textures": {
        "layer0": "lavar:items/bone_compass_16"
    },
    "overrides": [
        { "predicate": { "angle": 0.000000 }, "model": "lavar:item/bone_compass" },
        { "predicate": { "angle": 0.015625 }, "model": "lavar:item/bone_compass_17" },
        { "predicate": { "angle": 0.046875 }, "model": "lavar:item/bone_compass_18" },
        { "predicate": { "angle": 0.078125 }, "model": "lavar:item/bone_compass_19" },
        { "predicate": { "angle": 0.109375 }, "model": "lavar:item/bone_compass_20" },
        { "predicate": { "angle": 0.140625 }, "model": "lavar:item/bone_compass_21" },
        { "predicate": { "angle": 0.171875 }, "model": "lavar:item/bone_compass_22" },
        { "predicate": { "angle": 0.203125 }, "model": "lavar:item/bone_compass_23" },
        { "predicate": { "angle": 0.234375 }, "model": "lavar:item/bone_compass_24" },
        { "predicate": { "angle": 0.265625 }, "model": "lavar:item/bone_compass_25" },
        { "predicate": { "angle": 0.296875 }, "model": "lavar:item/bone_compass_26" },
        { "predicate": { "angle": 0.328125 }, "model": "lavar:item/bone_compass_27" },
        { "predicate": { "angle": 0.359375 }, "model": "lavar:item/bone_compass_28" },
        { "predicate": { "angle": 0.390625 }, "model": "lavar:item/bone_compass_29" },
        { "predicate": { "angle": 0.421875 }, "model": "lavar:item/bone_compass_30" },
        { "predicate": { "angle": 0.453125 }, "model": "lavar:item/bone_compass_31" },
        { "predicate": { "angle": 0.484375 }, "model": "lavar:item/bone_compass_00" },
        { "predicate": { "angle": 0.515625 }, "model": "lavar:item/bone_compass_01" },
        { "predicate": { "angle": 0.546875 }, "model": "lavar:item/bone_compass_02" },
        { "predicate": { "angle": 0.578125 }, "model": "lavar:item/bone_compass_03" },
        { "predicate": { "angle": 0.609375 }, "model": "lavar:item/bone_compass_04" },
        { "predicate": { "angle": 0.640625 }, "model": "lavar:item/bone_compass_05" },
        { "predicate": { "angle": 0.671875 }, "model": "lavar:item/bone_compass_06" },
        { "predicate": { "angle": 0.703125 }, "model": "lavar:item/bone_compass_07" },
        { "predicate": { "angle": 0.734375 }, "model": "lavar:item/bone_compass_08" },
        { "predicate": { "angle": 0.765625 }, "model": "lavar:item/bone_compass_09" },
        { "predicate": { "angle": 0.796875 }, "model": "lavar:item/bone_compass_10" },
        { "predicate": { "angle": 0.828125 }, "model": "lavar:item/bone_compass_11" },
        { "predicate": { "angle": 0.859375 }, "model": "lavar:item/bone_compass_12" },
        { "predicate": { "angle": 0.890625 }, "model": "lavar:item/bone_compass_13" },
        { "predicate": { "angle": 0.921875 }, "model": "lavar:item/bone_compass_14" },
        { "predicate": { "angle": 0.953125 }, "model": "lavar:item/bone_compass_15" },
        { "predicate": { "angle": 0.984375 }, "model": "lavar:item/bone_compass" }
    ]
}
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is part of the textures…
Tue, 04/12/2022 - 16:10

This is part of the textures, not the item itself. Each of those should be a texture name.
Might also be easier (though more difficult to test) to put the json file in at the java file when exported, using something like winrar, or by changing the .jar to end in .zip, adding in your json file, then removing .zip and adding. jar, turning it back into a .jar.