Light buttons textures and models

This commit is contained in:
Emmanuel BENOîT 2016-07-18 15:37:42 +02:00
parent 70d2753a3b
commit 4e2a79c4ba
14 changed files with 144 additions and 10 deletions

View file

@ -5,6 +5,7 @@ deco No Copper pots
deco No Copper plates deco No Copper plates
deco No Lanterns deco No Lanterns
deco No Light plates deco No Light plates
-> fix recipe (needs brass) BF
------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------
plants No? Tomatoes plants No? Tomatoes
plants No? Turnips plants No? Turnips

BIN
graphics/light-button.xcf Normal file

Binary file not shown.

View file

@ -67,7 +67,7 @@ public class DLightPlate
this.lightSource = cls; this.lightSource = cls;
this.lit = lit; this.lit = lit;
this.button = button; this.button = button;
this.lightValue = this.lit ? this.button ? 9 : 14 : 1; this.lightValue = this.lit ? this.button ? 12 : 14 : 1;
this.setCreativeTab( button ? CreativeTabs.REDSTONE : CreativeTabs.DECORATIONS ); this.setCreativeTab( button ? CreativeTabs.REDSTONE : CreativeTabs.DECORATIONS );
this.setHardness( 0.25f ); this.setHardness( 0.25f );
@ -106,11 +106,7 @@ public class DLightPlate
@SideOnly( Side.CLIENT ) @SideOnly( Side.CLIENT )
public IStateMapper getStateMapper( ) public IStateMapper getStateMapper( )
{ {
final StateMap.Builder bld = new StateMap.Builder( ); return new StateMap.Builder( ).ignore( DLightPlate.POWERED ).build( );
if ( !this.button ) {
bld.ignore( DLightPlate.POWERED );
}
return bld.build( );
} }

View file

@ -0,0 +1,23 @@
{
"forge_marker": 1 ,
"defaults" : {
"model": "mmm:deco/light/plate" ,
"textures": {
"plate": "mmm:blocks/deco/light/button/lit" ,
"side": "mmm:blocks/deco/light/button/sides"
}
} ,
"variants" : {
"facing" : {
"north" : { "y": 0 } ,
"east" : { "y": 90 } ,
"south" : { "y": 180 } ,
"west" : { "y": 270 } ,
"up" : { "x": 270 } ,
"down" : { "x" : 90 }
}
}
}

View file

@ -0,0 +1,23 @@
{
"forge_marker": 1 ,
"defaults" : {
"model": "mmm:deco/light/button" ,
"textures": {
"plate": "mmm:blocks/deco/light/button/unlit" ,
"side": "mmm:blocks/deco/light/button/sides"
}
} ,
"variants" : {
"facing" : {
"north" : { "y": 0 } ,
"east" : { "y": 90 } ,
"south" : { "y": 180 } ,
"west" : { "y": 270 } ,
"up" : { "x": 270 } ,
"down" : { "x" : 90 }
}
}
}

View file

@ -3,7 +3,8 @@
"defaults" : { "defaults" : {
"model": "mmm:deco/light/plate" , "model": "mmm:deco/light/plate" ,
"textures": { "textures": {
"plate": "mmm:blocks/deco/light/plate/lit" "plate": "mmm:blocks/deco/light/plate/lit" ,
"side": "mmm:blocks/deco/light/plate/sides"
} }
} , } ,

View file

@ -3,7 +3,8 @@
"defaults" : { "defaults" : {
"model": "mmm:deco/light/plate" , "model": "mmm:deco/light/plate" ,
"textures": { "textures": {
"plate": "mmm:blocks/deco/light/plate/unlit" "plate": "mmm:blocks/deco/light/plate/unlit" ,
"side": "mmm:blocks/deco/light/plate/sides"
} }
} , } ,

View file

@ -0,0 +1,57 @@
{
"ambientocclusion": false,
"textures" : {
"particle" : "#plate" ,
"plate": "#plate" ,
"side": "#side" ,
"back": "mmm:blocks/deco/light/plate/sides"
} ,
"elements" : [
{
"from": [ 3, 1, 15 ],
"to": [ 13, 15, 16 ],
"faces": {
"down": { "texture": "#side" },
"up": { "texture": "#side" },
"north": { "texture": "#plate" },
"south": { "texture": "#back" , "cullface" : "south" },
"west": { "texture": "#side" },
"east": { "texture": "#side" }
}
} ,
{
"from": [ 1, 3, 15 ],
"to": [ 3, 13, 16 ],
"faces": {
"down": { "texture": "#side" },
"up": { "texture": "#side" },
"north": { "texture": "#plate" },
"south": { "texture": "#back" , "cullface" : "south" },
"east": { "texture": "#side" }
}
} ,
{
"from": [ 13, 3, 15 ],
"to": [ 15, 13, 16 ],
"faces": {
"down": { "texture": "#side" },
"up": { "texture": "#side" },
"north": { "texture": "#plate" },
"south": { "texture": "#back" , "cullface" : "south" },
"east": { "texture": "#side" }
}
} ,
{
"from": [ 5 , 6 , 14 ] ,
"to": [ 11 , 10 , 15 ] ,
"faces": {
"north": { "texture": "#plate" } ,
"down": { "texture": "#side" } ,
"up": { "texture": "#side" } ,
"east": { "texture": "#side" } ,
"west": { "texture": "#side" }
}
}
]
}

View file

@ -1,8 +1,9 @@
{ {
"ambientocclusion": false,
"textures" : { "textures" : {
"particle" : "#plate" , "particle" : "#plate" ,
"plate": "#plate" , "plate": "#plate" ,
"side": "mmm:blocks/deco/light/plate/sides" "side": "#side"
} , } ,
"elements" : [ "elements" : [

View file

@ -0,0 +1,30 @@
{
"parent": "mmm:block/deco/light/button" ,
"textures": {
"plate": "mmm:blocks/deco/light/button/unlit" ,
"side": "mmm:blocks/deco/light/button/sides"
} ,
"display": {
"thirdperson_righthand": {
"rotation": [ 10, 90, 10 ],
"translation": [ -4, 0, -4 ],
"scale": [ 0.7, 0.7, 0.7 ]
},
"firstperson_righthand": {
"rotation": [ 10, 90, 10 ],
"translation": [ 0, 1.5, -1 ],
"scale": [ 0.8, 0.8, 0.8 ]
},
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 2, 0 ],
"scale": [ 0.8, 0.8, 0.8 ]
},
"gui": {
"rotation": [ 0, 180, 0 ],
"translation": [ 0, 0, 0 ],
"scale": [ 0.8, 0.8, 0.8 ]
}
}
}

View file

@ -1,7 +1,8 @@
{ {
"parent": "mmm:block/deco/light/plate" , "parent": "mmm:block/deco/light/plate" ,
"textures": { "textures": {
"plate": "mmm:blocks/deco/light/plate/unlit" "plate": "mmm:blocks/deco/light/plate/unlit" ,
"side": "mmm:blocks/deco/light/plate/sides"
} , } ,
"display": { "display": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B