Rock salt
This commit is contained in:
parent
f195d71bfb
commit
42a455d4c0
11 changed files with 63 additions and 1 deletions
1
TODO.txt
1
TODO.txt
|
@ -46,7 +46,6 @@ materials.rock No Smooth limestone
|
|||
materials.rock No Smooth slate
|
||||
materials.rock No Basalt
|
||||
-------------------------------------------------------------------------------------------------------
|
||||
materials.ore No Rock salt
|
||||
materials.ore No Aluminium (bauxite)
|
||||
materials.ore No Silver (native, horn silver)
|
||||
materials.ore No Lead (galena)
|
||||
|
|
BIN
graphics/ore.xcf
BIN
graphics/ore.xcf
Binary file not shown.
|
@ -5,6 +5,7 @@ import mmm.materials.ore.MOCassiterite;
|
|||
import mmm.materials.ore.MOCopper;
|
||||
import mmm.materials.ore.MOCuprite;
|
||||
import mmm.materials.ore.MOMalachite;
|
||||
import mmm.materials.ore.MORockSalt;
|
||||
import mmm.materials.ore.MOSphalerite;
|
||||
import mmm.materials.rock.MRChalk;
|
||||
import mmm.materials.rock.MRLimestone;
|
||||
|
@ -43,12 +44,14 @@ public class Materials
|
|||
public static final Item ITEM_CUPRITE;
|
||||
public static final Item ITEM_CASSITERITE;
|
||||
public static final Item ITEM_SPHALERITE;
|
||||
public static final Item ITEM_ROCK_SALT;
|
||||
|
||||
public static final MOre ORE_COPPER;
|
||||
public static final MOre ORE_MALACHITE;
|
||||
public static final MOre ORE_CUPRITE;
|
||||
public static final MOre ORE_CASSITERITE;
|
||||
public static final MOre ORE_SPHALERITE;
|
||||
public static final MOre ORE_ROCK_SALT;
|
||||
|
||||
static {
|
||||
// Rocks
|
||||
|
@ -83,6 +86,7 @@ public class Materials
|
|||
ITEM_CUPRITE = Materials.makeItem( "cuprite" );
|
||||
ITEM_CASSITERITE = Materials.makeItem( "cassiterite" );
|
||||
ITEM_SPHALERITE = Materials.makeItem( "sphalerite" );
|
||||
ITEM_ROCK_SALT = Materials.makeItem( "rock_salt" );
|
||||
|
||||
// Actual ores
|
||||
ORE_COPPER = new MOCopper( );
|
||||
|
@ -90,6 +94,7 @@ public class Materials
|
|||
ORE_CUPRITE = new MOCuprite( );
|
||||
ORE_CASSITERITE = new MOCassiterite( );
|
||||
ORE_SPHALERITE = new MOSphalerite( );
|
||||
ORE_ROCK_SALT = new MORockSalt( );
|
||||
|
||||
// Other recipes
|
||||
URegistry.addRecipeRegistrar( new Materials( ) );
|
||||
|
|
35
src/java/mmm/materials/ore/MORockSalt.java
Normal file
35
src/java/mmm/materials/ore/MORockSalt.java
Normal file
|
@ -0,0 +1,35 @@
|
|||
package mmm.materials.ore;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import mmm.materials.MOre;
|
||||
import mmm.materials.Materials;
|
||||
import mmm.utils.I_UOreGenerationRegistrar;
|
||||
import mmm.world.WLocation;
|
||||
import mmm.world.gen.WGOreCondition;
|
||||
import mmm.world.gen.WGOreParameters;
|
||||
|
||||
|
||||
|
||||
public class MORockSalt
|
||||
extends MOre
|
||||
implements I_UOreGenerationRegistrar
|
||||
{
|
||||
|
||||
public MORockSalt( )
|
||||
{
|
||||
super( "rock_salt" , 0 );
|
||||
this.setDrops( Materials.ITEM_ROCK_SALT , 2 , 5 );
|
||||
this.setExperience( 0 , 1 );
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void addConditions( final List< WGOreCondition > conditions )
|
||||
{
|
||||
conditions.add( new WGOreCondition( WLocation.inOverworld( ) ,
|
||||
new WGOreParameters( this.getDefaultState( ) , 5 , 30 , 45 , 255 ) ) );
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"variants": {
|
||||
"normal": { "model": "mmm:materials/ore/rock_salt" }
|
||||
}
|
||||
}
|
|
@ -12,6 +12,9 @@ tile.mmm.materials.rock.limestone.name=Limestone
|
|||
tile.mmm.materials.rock.chalk.name=Chalk
|
||||
tile.mmm.materials.rock.slate.name=Slate
|
||||
|
||||
tile.mmm.materials.ore.rock_salt.name=Rock Salt
|
||||
item.mmm.materials.stone.rock_salt.name=Salt Crystals
|
||||
|
||||
item.mmm.materials.stone.coke.name=Coke
|
||||
item.mmm.materials.stone.slag.name=Slag
|
||||
item.mmm.materials.nugget.iron.name=Iron Nugget
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "mmm:blocks/materials/ore/rock_salt"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "mmm:block/materials/ore/rock_salt"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "mmm:items/materials/stone/rock_salt"
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 392 B |
Binary file not shown.
After Width: | Height: | Size: 195 B |
Reference in a new issue