Jump to content

[1.11.2] [UNSOLVED] Block Model JSON


Bektor

Recommended Posts

Hi,

 

I'm wondering how I can achieve the following with JSON files (just did some fast renderer with Blender Cycles):

 Unbenannt.png.188ea1b645a600c293654bdc1a565138.png

 

I've already got the basic model shape done. It should be noted that the model part of this is the base model and the rest of the model

are just connections. These connections can apply to any possible side and when there is no connection the middle part should look like

the end parts on all sides.

Unbenannt.png.135c092f1700578bf5be0d1ba195e2f5.png

 

The properties my block has:

    public static final PropertyBool NORTH = PropertyBool.create("north");
    public static final PropertyBool EAST = PropertyBool.create("east");
    public static final PropertyBool SOUTH = PropertyBool.create("south");
    public static final PropertyBool WEST = PropertyBool.create("west");
    public static final PropertyBool UP = PropertyBool.create("up");
    public static final PropertyBool DOWN = PropertyBool.create("down");

 

My current JSON model files:

cable_side.json
{
    "textures": { "particle": "#side" },
    "elements": [
        {
            "from": [ 4, 4, 0 ],
            "to": [ 12, 12, 4 ],
            "faces": {
                "down": { "texture": "#side" },
                "up": { "texture": "#side" },
                "north": { "texture": "#side" },
                "south": { "texture": "#side" },
                "west": { "texture": "#side" },
                "east": { "texture": "#side" }
            },
            "__comment": "North cable side"
        }
    ]
}




cable_base.json
{
    "textures": { "particle": "#centre" },
    "elements": [
        {
            "from": [ 4, 4, 4 ],
            "to": [ 12, 12, 12 ],
            "faces": {
                "down": { "texture": "#centre" },
                "up": { "texture": "#centre" },
                "north": { "texture": "#centre" },
                "south": { "texture": "#centre" },
                "west": { "texture": "#centre" },
                "east": { "texture": "#centre" }
            },
            "__comment": "Center cable cube"
        }
    ]
}

 

Meaning I've got the basic model already done, but I'm struggling mostly with figuring out the texture stuff and which texture to put where and when.

So just the main model file remains as long as I don't have to edit those model files somewhere.

Note: I've got a texture which contains the red lines and the green inner part and I've got a seperate texture for the start and end part of the model.

 

Thx in advance.

Bektor

Developer of Primeval Forest.

Link to comment
Share on other sites

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.