Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • Author

Does anyone got a clue how I can get it done like in the 3D model from Blender with the straight lines?

If not I guess I'm going with dynamic rendering stuff like a friend of mine (who got no clue about Minecraft Modding,

but OpenGL 4.5) suggest to me for solving this problem.

Developer of Primeval Forest.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.