Jump to content

[1.8] [RESOLVED] Breaking particles of custom blocks


xJon

Recommended Posts

While breaking custom blocks like a new chest the breaking patricles are missing textures, and I'm not sure where in the code I need to implement this part.

I'm pretty sure that this part changed between 1.7 to 1.8 so I couldn't find much already online which is relevant to me.

Thanks! :)

Why are you reading this?

Link to comment
Share on other sites

Try doing a block model file like this:

{
    "parent": "block/cube",
    "textures": {
        "particle": "blocks/gold_block"
    }
}

 

Also if you have probelms rendering a chest i remind you to my previous post wich has been solved :)

http://www.minecraftforge.net/forum/index.php/topic,32858

Don't blame me if i always ask for your help. I just want to learn to be better :)

Link to comment
Share on other sites

Try doing a block model file like this:

{
    "parent": "block/cube",
    "textures": {
        "particle": "blocks/gold_block"
    }
}

 

Also if you have probelms rendering a chest i remind you to my previous post wich has been solved :)

http://www.minecraftforge.net/forum/index.php/topic,32858

When I add this to my model it just breaks, and the block isn't rendering at all D:

This is my current (and working but without the particles) model:

{
    "textures": {
        "0": "blocks/stonebrick_carved",
        "1": "blocks/log_spruce",
        "2": "blocks/coal_block",
        "3": "blocks/hardened_clay_stained_cyan",
        "4": "blocks/piston_bottom",
        "5": "blocks/glowstone",
        "6": "blocks/planks_oak",
        "7": "blocks/quartz_block_top",
        "8": "blocks/hardened_clay_stained_red",
        "9": "blocks/hardened_clay_stained_blue",
        "10": "blocks/hardened_clay_stained_yellow",
        "11": "blocks/mushroom_block_skin_stem"
    },
    "elements": [
        {
            "name": "Cube",
            "from": [ 1.0, 0.0, 1.0 ], 
            "to": [ 15.0, 1.0, 15.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 13.0, 1.0 ] },
                "east": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },
                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 13.0, 1.0 ] },
                "west": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 1.0 ] },
                "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 0.0, 0.0, 13.0, 14.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 11.0, 1.0, 11.0 ], 
            "to": [ 14.0, 9.0, 14.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 12.0, 1.0, 11.0 ], 
            "to": [ 5.0, 9.0, 5.0 ], 
            "faces": {
                "north": { "texture": "#2", "uv": [ 0.0, 0.0, -7.0, 8.0 ] },
                "east": { "texture": "#2", "uv": [ 0.0, 0.0, -6.0, 8.0 ] },
                "south": { "texture": "#2", "uv": [ 0.0, 0.0, -7.0, 8.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, -6.0, 8.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, -7.0, -6.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, -7.0, -6.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 3.0, 1.0, 0.0 ], 
            "to": [ 13.0, 17.0, 6.0 ], 
            "faces": {
                "north": { "texture": "#3", "uv": [ 0.0, 0.0, 9.0, 17.0 ] },
                "east": { "texture": "#3", "uv": [ 0.0, 0.0, 6.0, 17.0 ] },
                "south": { "texture": "#3", "uv": [ 0.0, 0.0, 9.0, 17.0 ] },
                "west": { "texture": "#3", "uv": [ 0.0, 0.0, 6.0, 17.0 ] },
                "up": { "texture": "#3", "uv": [ 0.0, 0.0, 9.0, 6.0 ] },
                "down": { "texture": "#3", "uv": [ 0.0, 0.0, 9.0, 6.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 2.0, 9.0, 1.0 ], 
            "to": [ 14.0, 10.0, 14.0 ], 
            "faces": {
                "north": { "texture": "#4", "uv": [ 1.0, 5.0, 12.0, 6.0 ] },
                "east": { "texture": "#4", "uv": [ 0.0, 0.0, 13.0, 1.0 ] },
                "south": { "texture": "#4", "uv": [ 0.0, 0.0, 11.0, 1.0 ] },
                "west": { "texture": "#4", "uv": [ 0.0, 0.0, 13.0, 1.0 ] },
                "up": { "texture": "#4", "uv": [ 2.0, 1.0, 14.0, 14.0 ] },
                "down": { "texture": "#4", "uv": [ 2.0, 3.0, 13.0, 16.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 10.0, 9.0, 6.0 ], 
            "to": [ 11.0, 10.0, 7.0 ], 
            "faces": {
                "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 4.0, 16.0, 8.0 ], 
            "to": [ 12.0, 18.0, 12.0 ], 
            "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "x", "angle": -22.5 },
            "faces": {
                "north": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 2.0 ] },
                "east": { "texture": "#2", "uv": [ 0.0, 0.0, 4.0, 2.0 ] },
                "south": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 2.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 4.0, 2.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 4.0 ] },
                "down": { "texture": "#5", "uv": [ 4.0, 6.0, 11.0, 10.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 4.0, 10.0, 6.0 ], 
            "to": [ 12.0, 16.0, 7.0 ], 
            "faces": {
                "north": { "texture": "#6", "uv": [ 0.0, 0.0, 7.0, 6.0 ] },
                "east": { "texture": "#6", "uv": [ 3.0, 0.0, 4.0, 6.0 ] },
                "south": { "texture": "#7", "uv": [ 8.0, 5.0, 15.0, 11.0 ] },
                "west": { "texture": "#6", "uv": [ 2.0, 0.0, 3.0, 6.0 ] },
                "up": { "texture": "#6", "uv": [ 3.0, 0.0, 10.0, 1.0 ] },
                "down": { "texture": "#6", "uv": [ 0.0, 0.0, 7.0, 1.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 11.0, 10.0, 7.0 ], 
            "to": [ 13.0, 12.0, 9.0 ], 
            "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "y", "angle": -22.5 },
            "faces": {
                "north": { "texture": "#8", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "east": { "texture": "#8", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "south": { "texture": "#8", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "west": { "texture": "#8", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "up": { "texture": "#8", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "down": { "texture": "#8", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 3.0, 10.0, 8.0 ], 
            "to": [ 5.0, 13.0, 10.0 ], 
            "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "y", "angle": 22.5 },
            "faces": {
                "north": { "texture": "#9", "uv": [ 0.0, 0.0, 2.0, 3.0 ] },
                "east": { "texture": "#9", "uv": [ 0.0, 0.0, 2.0, 3.0 ] },
                "south": { "texture": "#9", "uv": [ 0.0, 0.0, 2.0, 3.0 ] },
                "west": { "texture": "#9", "uv": [ 0.0, 0.0, 2.0, 3.0 ] },
                "up": { "texture": "#9", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
                "down": { "texture": "#9", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 14.0, 7.0, 4.0 ], 
            "to": [ 15.0, 10.0, 13.0 ], 
            "faces": {
                "north": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 3.0 ] },
                "east": { "texture": "#10", "uv": [ 0.0, 0.0, 9.0, 3.0 ] },
                "south": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 3.0 ] },
                "west": { "texture": "#10", "uv": [ 0.0, 0.0, 9.0, 3.0 ] },
                "up": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 9.0 ] },
                "down": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 9.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 1.0, 7.0, 4.0 ], 
            "to": [ 2.0, 10.0, 13.0 ], 
            "faces": {
                "north": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 3.0 ] },
                "east": { "texture": "#10", "uv": [ 0.0, 0.0, 9.0, 3.0 ] },
                "south": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 3.0 ] },
                "west": { "texture": "#10", "uv": [ 0.0, 0.0, 9.0, 3.0 ] },
                "up": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 9.0 ] },
                "down": { "texture": "#10", "uv": [ 0.0, 0.0, 1.0, 9.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 2.0, 1.0, 2.0 ], 
            "to": [ 5.0, 9.0, 5.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 11.0, 1.0, 2.0 ], 
            "to": [ 14.0, 9.0, 5.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 2.0, 1.0, 11.0 ], 
            "to": [ 5.0, 9.0, 14.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 8.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 9.0, 16.0, -1.0 ], 
            "to": [ 10.0, 22.0, 0.0 ], 
            "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "z", "angle": 22.5 },
            "faces": {
                "north": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "east": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "south": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "west": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "up": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "down": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }
            }
        },
        {
            "name": "Cube",
            "from": [ 6.0, 16.0, -1.0 ], 
            "to": [ 7.0, 22.0, 0.0 ], 
            "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "z", "angle": -22.5 },
            "faces": {
                "north": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "east": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "south": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "west": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 6.0 ] },
                "up": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 1.0 ] },
                "down": { "texture": "#11", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }
            }
        }
    ]
}

And this is the block state:

{
    "variants": {
        "normal": { "model": "jum:useless_machine" }
    }
}

Why are you reading this?

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.