Skip to content

Example: Glowing Ore

grondag edited this page Jun 15, 2019 · 5 revisions

Introduction

This article walks you through the process of creating a Redstone Ore block model with glowing bits of ore.

assets/minecraft/models/block/redstone_ore.json

{
    "parent": "jmx:block/jmx_cube_all",
    "textures": {
        "all": "minecraft:block/redstone_ore"
    },
    "jmx": {
	    "textures": {
	    	"jmx_tex_particle": "minecraft:block/redstone_ore",
	        "jmx_tex_all0": "jmx:block/stone_ore_mask",
	        "jmx_tex_all1": "jmx:block/redstone_ore_bits"
	    },
	    "materials": {
	    	"jmx_mat_all": {
	    		"layer0": "cutout_mipped",
	    		"layer1": "cutout_mipped",
	    		"emissive1": true,
	    		"ambient_occlusion1": false,
	    		"diffuse1": false
	    	}
	    }
    },
    "frex": {
    	"textures": {
    		"jmx_tex_particle": "minecraft:block/redstone_ore",
	        "jmx_tex_all0": "jmx:block/redstone_ore_shader",
	        "jmx_tex_all1": null
	    },
	    "materials": {
	    	"jmx_mat_all": { "frex_preset": "jmx:redstone" }
	    	}
	    }
    }
}

Clone this wiki locally