Jump to content

Recommended Posts

Posted
  On 10/7/2019 at 1:47 AM, Mintry said:

i’m on 1.12.2 and i’ll share my code tomorrow after school

Expand  

You'll have to create a custom JSon model or if you want to be fancy like Ore Spawn and make it all smooth you can use an obj file.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 10/7/2019 at 2:00 AM, Animefan8888 said:

You'll have to create a custom JSon model or if you want to be fancy like Ore Spawn and make it all smooth you can use an obj file.

Expand  

How would I create a custom json? Using something like blockbench? And how would I replace the json I have with the newly made one

Posted
  On 10/7/2019 at 11:28 AM, Mintry said:

How would I create a custom json? Using something like blockbench?

Expand  

If you want you can or you can write it yourself.

 

  On 10/7/2019 at 11:28 AM, Mintry said:

And how would I replace the json I have with the newly made one

Expand  

Switch the files.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

I switched the jsons but i get this message, when i load the game, my sword is not visible, not even the black and pink thing.

[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: The following texture errors were found.
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==================================================
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:   DOMAIN minecraft
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: --------------------------------------------------
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:   domain minecraft is missing 2 textures
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     domain minecraft has 3 locations:
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Forge Mod Loader
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Minecraft Forge
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain minecraft are:
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/linarite_block.png
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/block/linarite_block.png
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     No other errors exist for domain minecraft

 

json

{
    "credit": "Made with Blockbench",
    "parent": "item/handheld",
    "textures": {
        "1": "linarite_block",
        "2": "block/linarite_block",
        "particle": "block/linarite_block"
    },
    "elements": [
        {
            "from": [7, 0, 7],
            "to": [10, 8, 8],
            "faces": {
                "north": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "east": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "south": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "west": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "up": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "down": {"uv": [0, 0, 3, 8], "texture": "#1"}
            }
        },
        {
            "from": [2, 8, 7],
            "to": [15, 9, 8],
            "faces": {
                "north": {"uv": [0, 0, 13, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 13, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 13, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 13, 1], "texture": "#2"}
            }
        },
        {
            "from": [5, 8.9, 6],
            "to": [12, 29, 9],
            "faces": {
                "north": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "east": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "south": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "west": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "up": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "down": {"uv": [0, 0, 7, 16], "texture": "#1"}
            }
        },
        {
            "from": [5, 28.9, 6],
            "to": [12, 30, 9],
            "faces": {
                "north": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "east": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "south": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "west": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "up": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "down": {"uv": [0, 0, 5, 1.1], "texture": "#1"}
            }
        },
        {
            "from": [6, 29.9, 7],
            "to": [11, 31, 8],
            "faces": {
                "north": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "south": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "up": {"uv": [0, 0, 5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 5, 1], "texture": "#1"}
            }
        },
        {
            "from": [7, 30.9, 7],
            "to": [10, 32, 8],
            "faces": {
                "north": {"uv": [0, 0, 3, 1.1], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "south": {"uv": [0, 0, 3, 1.1], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "up": {"uv": [0, 0, 3, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 3, 1], "texture": "#1"}
            }
        },
        {
            "from": [2, 9, 7],
            "to": [3, 12, 8],
            "faces": {
                "north": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "south": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "up": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 1, 1], "texture": "#2"}
            }
        },
        {
            "from": [14, 9, 7],
            "to": [15, 12, 8],
            "faces": {
                "north": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "south": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "up": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 1, 1], "texture": "#2"}
            }
        },
        {
            "from": [2, 12, 7],
            "to": [4, 13, 8],
            "faces": {
                "north": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 2, 1], "texture": "#2"}
            }
        },
        {
            "from": [2, 12, 7],
            "to": [4, 13, 8],
            "faces": {
                "north": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 2, 1], "texture": "#2"}
            }
        },
        {
            "from": [13, 12, 7],
            "to": [15, 13, 8],
            "faces": {
                "north": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 2, 1], "texture": "#2"}
            }
        }
    ]
}

Posted

The texture file locations in the Json are wrong. Specifically, they're missing a domain, which means that "minecraft" is defaulted to. Since your textures aren't located in "minecraft", you need to prefix the texture locations with their proper domain, which is probably your modId. You should also make sure that the paths correspond to actual file paths and locations.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/9/2019 at 10:23 PM, SerpentDagger said:

The texture file locations in the Json are wrong. Specifically, they're missing a domain, which means that "minecraft" is defaulted to. Since your textures aren't located in "minecraft", you need to prefix the texture locations with their proper domain, which is probably your modId. You should also make sure that the paths correspond to actual file paths and locations.

Expand  

How would i prefix the texture locations with my modid?

and also, how can i use an obj model for my mod

Posted
  On 10/9/2019 at 10:26 PM, Mintry said:

How would i prefix the texture locations with my modid?

Expand  

For example, instead of "block/linarite_block", you would write "modidinsteadofthistext:block/linarite_block". Also, "block" there should be "blocks" if it's meant to reference a texture at modidinsteadofthistext/textures/blocks/linarite_block, and ditto for the others.

 

  On 10/9/2019 at 10:26 PM, Mintry said:

how can i use an obj model for my mod

Expand  

I haven't used obj models myself, since I like the blocky look, but this topic might be helpful to you.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/9/2019 at 10:44 PM, SerpentDagger said:

For example, instead of "block/linarite_block", you would write "modidinsteadofthistext:block/linarite_block". Also, "block" there should be "blocks" if it's meant to reference a texture at modidinsteadofthistext/textures/blocks/linarite_block, and ditto for the others.

 

I haven't used obj models myself, since I like the blocky look, but this topic might be helpful to you.

Expand  

thanks, but i still get an error and my item still doesnt have its model working

 

The following texture errors were found.
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==================================================
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:   DOMAIN rotbm
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: --------------------------------------------------
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:   domain rotbm is missing 1 texture
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     domain rotbm has 1 location:
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       mod rotbm resources at C:\Users\Kiren\Desktop\Minecraft Modding\RuinsOfTime\bin
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain rotbm are:
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/linarite_block.png
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     No other errors exist for domain rotbm
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==================================================
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

Posted

{
    "credit": "Made with Blockbench",
    "parent": "item/handheld",
    "textures": {
        "1": "rotbm:linarite_block",
        "2": "rotbm:blocks/linarite_block",
        "particle": "rotbm:blocks/linarite_block"
    },
    "elements": [
        {
            "from": [7, 0, 7],
            "to": [10, 8, 8],
            "faces": {
                "north": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "east": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "south": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "west": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "up": {"uv": [0, 0, 3, 8], "texture": "#1"},
                "down": {"uv": [0, 0, 3, 8], "texture": "#1"}
            }
        },
        {
            "from": [2, 8, 7],
            "to": [15, 9, 8],
            "faces": {
                "north": {"uv": [0, 0, 13, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 13, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 13, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 13, 1], "texture": "#2"}
            }
        },
        {
            "from": [5, 8.9, 6],
            "to": [12, 29, 9],
            "faces": {
                "north": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "east": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "south": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "west": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "up": {"uv": [0, 0, 7, 16], "texture": "#1"},
                "down": {"uv": [0, 0, 7, 16], "texture": "#1"}
            }
        },
        {
            "from": [5, 28.9, 6],
            "to": [12, 30, 9],
            "faces": {
                "north": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "east": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "south": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "west": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "up": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "down": {"uv": [0, 0, 5, 1.1], "texture": "#1"}
            }
        },
        {
            "from": [6, 29.9, 7],
            "to": [11, 31, 8],
            "faces": {
                "north": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "south": {"uv": [0, 0, 5, 1.1], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "up": {"uv": [0, 0, 5, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 5, 1], "texture": "#1"}
            }
        },
        {
            "from": [7, 30.9, 7],
            "to": [10, 32, 8],
            "faces": {
                "north": {"uv": [0, 0, 3, 1.1], "texture": "#1"},
                "east": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "south": {"uv": [0, 0, 3, 1.1], "texture": "#1"},
                "west": {"uv": [0, 0, 1, 1.1], "texture": "#1"},
                "up": {"uv": [0, 0, 3, 1], "texture": "#1"},
                "down": {"uv": [0, 0, 3, 1], "texture": "#1"}
            }
        },
        {
            "from": [2, 9, 7],
            "to": [3, 12, 8],
            "faces": {
                "north": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "south": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "up": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 1, 1], "texture": "#2"}
            }
        },
        {
            "from": [14, 9, 7],
            "to": [15, 12, 8],
            "faces": {
                "north": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "south": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 3], "texture": "#2"},
                "up": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 1, 1], "texture": "#2"}
            }
        },
        {
            "from": [2, 12, 7],
            "to": [4, 13, 8],
            "faces": {
                "north": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 2, 1], "texture": "#2"}
            }
        },
        {
            "from": [2, 12, 7],
            "to": [4, 13, 8],
            "faces": {
                "north": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 2, 1], "texture": "#2"}
            }
        },
        {
            "from": [13, 12, 7],
            "to": [15, 13, 8],
            "faces": {
                "north": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "east": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "south": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "west": {"uv": [0, 0, 1, 1], "texture": "#2"},
                "up": {"uv": [0, 0, 2, 1], "texture": "#2"},
                "down": {"uv": [0, 0, 2, 1], "texture": "#2"}
            }
        }
    ]
}

 

Posted
  On 10/9/2019 at 10:08 PM, Mintry said:

[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain minecraft are:
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/linarite_block.png
[18:02:34] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/block/linarite_block.png

Expand  

 

  On 10/9/2019 at 10:53 PM, Mintry said:

[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain rotbm are:
[18:49:50] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/linarite_block.png

Expand  

You've cleared up one of them, as you can see in the error log, but it's still missing the texture at textures/linarite_block.png. That's the location referred to by the line here:

  On 10/9/2019 at 10:54 PM, Mintry said:

"1": "rotbm:linarite_block",

Expand  

It's looking in the domain "rotbm", but there are no subfolders specified. I'm not sure what the path you mean to be pointing to is, but if it's the same linarite_block.png as the other one, the path should probably look more like blocks/linarite_block, as with the others.

 

Each of the lines like the one above is specifying a ResourceLocation, and ResourceLocations are of the form domain:path. The domain is the folder within assets, and the path is the file path from a context-specific location to the proper file. In the case of textures, that context-specific location is the textures file within domain. Therefore, when you provide a location domain:filename, in the case of textures it looks for the file filename.png in the path domain/textures/filename.png.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/9/2019 at 11:21 PM, SerpentDagger said:

 

You've cleared up one of them, as you can see in the error log, but it's still missing the texture at textures/linarite_block.png. That's the location referred to by the line here:

It's looking in the domain "rotbm", but there are no subfolders specified. I'm not sure what the path you mean to be pointing to is, but if it's the same linarite_block.png as the other one, the path should probably look more like blocks/linarite_block, as with the others.

 

Each of the lines like the one above is specifying a ResourceLocation, and ResourceLocations are of the form domain:path. The domain is the folder within assets, and the path is the file path from a context-specific location to the proper file. In the case of textures, that context-specific location is the textures file within domain. Therefore, when you provide a location domain:filename, in the case of textures it looks for the file filename.png in the path domain/textures/filename.png.

Expand  

thanks, but im just wandering if there is an easier way to make my sword reaaaally big

Posted
  On 10/9/2019 at 11:27 PM, Mintry said:

im just wandering if there is an easier way to make my sword reaaaally big

Expand  

Well, once the Json is working, then you can alter its scale however you want.

For example, in my wand's model file I have these custom scales to keep it looking the right size from different viewpoints, but I could alter them just to make the wand huge too.

  Reveal hidden contents

2019-10-09_16_43_16.thumb.png.6903c3f6ab726d5d79482f5e0b5b51f3.png2019-10-09_16_37_28.thumb.png.bf0f0c0c100ac78986602af89b149cf0.png

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/9/2019 at 11:21 PM, SerpentDagger said:

 

You've cleared up one of them, as you can see in the error log, but it's still missing the texture at textures/linarite_block.png. That's the location referred to by the line here:

It's looking in the domain "rotbm", but there are no subfolders specified. I'm not sure what the path you mean to be pointing to is, but if it's the same linarite_block.png as the other one, the path should probably look more like blocks/linarite_block, as with the others.

 

Each of the lines like the one above is specifying a ResourceLocation, and ResourceLocations are of the form domain:path. The domain is the folder within assets, and the path is the file path from a context-specific location to the proper file. In the case of textures, that context-specific location is the textures file within domain. Therefore, when you provide a location domain:filename, in the case of textures it looks for the file filename.png in the path domain/textures/filename.png.

Expand  

can i use the same block(lyranite block) for all 3(1,2 particles)

Posted
  On 10/10/2019 at 12:37 AM, Mintry said:

can i use the same block(lyranite block) for all 3(1,2 particles)

Expand  

If it's the same texture, then you can definitely use the same file, and should.

 

  On 10/10/2019 at 1:17 AM, Mintry said:

could you please show me a screenshot of your json

Expand  
  Reveal hidden contents

Basically, it just defines some texture references, lists the display properties, then supplies a list of elements that use the texture references.

There's a link to the generator at the top of the file. It doesn't work with custom texture locations, but you can just use random textures while creating the model and then change the references once it's generated by using find and replace.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/10/2019 at 1:59 AM, SerpentDagger said:

If it's the same texture, then you can definitely use the same file, and should.

 

  Reveal hidden contents

Basically, it just defines some texture references, lists the display properties, then supplies a list of elements that use the texture references.

There's a link to the generator at the top of the file. It doesn't work with custom texture locations, but you can just use random textures while creating the model and then change the references once it's generated by using find and replace.

Expand  

Oh, so I can use vanilla items/blocks for the textures. It doesn’t have to be custom textures?

Posted
  On 10/10/2019 at 8:11 PM, Mintry said:

so I can use vanilla items/blocks for the textures. It doesn’t have to be custom textures?

Expand  

That's correct. Just so long as the references defined at the top within the "textures" section point to valid locations within your assets folder, the textures will work fine. The trouble you were having was simply that the locations you defined in the json didn't correspond with the actual locations of the file.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/10/2019 at 8:46 PM, SerpentDagger said:

That's correct. Just so long as the references defined at the top within the "textures" section point to valid locations within your assets folder, the textures will work fine. The trouble you were having was simply that the locations you defined in the json didn't correspond with the actual locations of the file.

Expand  

So I have to put the textures in textures folder? Or do I just write the name of the block in the json

Posted (edited)
  On 10/10/2019 at 8:56 PM, Mintry said:

So I have to put the textures in textures folder? Or do I just write the name of the block in the json

Expand  

"1": "rotbm:linarite_block",

  On 10/9/2019 at 11:21 PM, SerpentDagger said:

Each of the lines like the one above is specifying a ResourceLocation, and ResourceLocations are of the form domain:path. The domain is the folder within assets, and the path is the file path from a context-specific location to the proper file. In the case of textures, that context-specific location is the textures file within domain. Therefore, when you provide a location domain:filename, in the case of textures it looks for the file filename.png in the path domain/textures/filename.png.

Expand  

For custom textures:

    You should store block textures in textures/blocks/block_texture_file_here.png.

    You should store item textures in textures/items/item_texture_file_here.png.

    Since the custom texture does not exist in the domain "minecraft", as it is not a Minecraft texture, you use the domain that it does exist in instead when

      specifying the location within the json file. In your case that would be the domain "rotbm". The path from that domain's textures folder follows the

      domain, as explained above.

For vanilla textures:

    They already exist, you shouldn't store them because they're already there.

    Since the vanilla texture already exists in the domain "minecraft", you use the domain "minecraft" when specifying the location within the json file. The

      path from the domain's textures folder follows the domain, as explained above.

    Alternatively, if no domain is specified, the default is "minecraft" already. You still need to supply the path though.

Edited by SerpentDagger

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Posted
  On 10/10/2019 at 9:18 PM, SerpentDagger said:

"1": "rotbm:linarite_block",

For custom textures:

    You should store block textures in textures/blocks/block_texture_file_here.png.

    You should store item textures in textures/items/item_texture_file_here.png.

    Since the custom texture does not exist in the domain "minecraft", as it is not a Minecraft texture, you use the domain that it does exist in instead when

      specifying the location within the json file. In your case that would be the domain "rotbm". The path from that domain's textures folder follows the

      domain, as explained above.

For vanilla textures:

    They already exist, you shouldn't store them because they're already there.

    Since the vanilla texture already exists in the domain "minecraft", you use the domain "minecraft" when specifying the location within the json file. The

      path from the domain's textures folder follows the domain, as explained above.

    Alternatively, if no domain is specified, the default is "minecraft" already. You still need to supply the path though.

Expand  

i made the domain minecraft because i decided im gonna use vanilla textures. but i get this error

13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==================================================
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:   DOMAIN minecraft
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: --------------------------------------------------
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:   domain minecraft is missing 3 textures
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     domain minecraft has 3 locations:
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Forge Mod Loader
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Minecraft Forge
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain minecraft are:
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/iron_block.png
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/lapis_block.png
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:       textures/gold_block.png
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]:     No other errors exist for domain minecraft
[19:02:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==================================================

Posted
  On 10/11/2019 at 1:54 AM, Mintry said:

 yea i fixed that, but when i load my game, the model is black and purple and has a weird texture

Expand  

What does it say in the console? My guess is that your blockstate is missing the inventory variant.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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