forked from AlmuraDev/mocreaturesdev
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
778098e
commit 2008990
Showing
18 changed files
with
642 additions
and
2 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/main/java/drzhark/mocreatures/block/MoCBlockStairs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package drzhark.mocreatures.block; | ||
|
||
import net.minecraft.block.BlockStairs; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.init.Blocks; | ||
import net.minecraft.util.EnumFacing; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.IBlockAccess; | ||
|
||
public class MoCBlockStairs extends BlockStairs { | ||
public boolean flammable; | ||
|
||
public MoCBlockStairs(IBlockState state, boolean flammable) { | ||
super(state); | ||
this.useNeighborBrightness = true; | ||
this.flammable = flammable; | ||
} | ||
|
||
public boolean isFlammable() { | ||
return flammable; | ||
} | ||
|
||
@Override | ||
public int getFlammability(IBlockAccess world, BlockPos pos, EnumFacing face) { | ||
if (isFlammable()) { | ||
return Blocks.PLANKS.getFlammability(world, pos, face); | ||
} else { | ||
return 0; | ||
} | ||
} | ||
|
||
@Override | ||
public int getFireSpreadSpeed(IBlockAccess world, BlockPos pos, EnumFacing face) { | ||
if (isFlammable()) { | ||
return Blocks.PLANKS.getFireSpreadSpeed(world, pos, face); | ||
} else { | ||
return 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/main/resources/assets/mocreatures/blockstates/cobbled_deep_wyvstone_stairs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"forge_marker": 1, | ||
"defaults": { | ||
"model": "stairs", | ||
"textures": { | ||
"bottom": "mocreatures:blocks/cobblestone_wyvern_deep", | ||
"top": "mocreatures:blocks/cobblestone_wyvern_deep", | ||
"side": "mocreatures:blocks/cobblestone_wyvern_deep" | ||
} | ||
}, | ||
"variants": { | ||
"normal": [{}], | ||
"inventory": [{}], | ||
"facing=east,half=bottom,shape=straight": {"model": "stairs"}, | ||
"facing=west,half=bottom,shape=straight": {"model": "stairs", "y": 180, "uvlock": true}, | ||
"facing=south,half=bottom,shape=straight": {"model": "stairs", "y": 90, "uvlock": true}, | ||
"facing=north,half=bottom,shape=straight": {"model": "stairs", "y": 270, "uvlock": true}, | ||
"facing=east,half=bottom,shape=outer_right": {"model": "outer_stairs"}, | ||
"facing=west,half=bottom,shape=outer_right": {"model": "outer_stairs", "y": 180, "uvlock": true}, | ||
"facing=south,half=bottom,shape=outer_right": {"model": "outer_stairs", "y": 90, "uvlock": true}, | ||
"facing=north,half=bottom,shape=outer_right": {"model": "outer_stairs", "y": 270, "uvlock": true}, | ||
"facing=east,half=bottom,shape=outer_left": {"model": "outer_stairs", "y": 270, "uvlock": true}, | ||
"facing=west,half=bottom,shape=outer_left": {"model": "outer_stairs", "y": 90, "uvlock": true}, | ||
"facing=south,half=bottom,shape=outer_left": {"model": "outer_stairs"}, | ||
"facing=north,half=bottom,shape=outer_left": {"model": "outer_stairs", "y": 180, "uvlock": true}, | ||
"facing=east,half=bottom,shape=inner_right": {"model": "inner_stairs"}, | ||
"facing=west,half=bottom,shape=inner_right": {"model": "inner_stairs", "y": 180, "uvlock": true}, | ||
"facing=south,half=bottom,shape=inner_right": {"model": "inner_stairs", "y": 90, "uvlock": true}, | ||
"facing=north,half=bottom,shape=inner_right": {"model": "inner_stairs", "y": 270, "uvlock": true}, | ||
"facing=east,half=bottom,shape=inner_left": {"model": "inner_stairs", "y": 270, "uvlock": true}, | ||
"facing=west,half=bottom,shape=inner_left": {"model": "inner_stairs", "y": 90, "uvlock": true}, | ||
"facing=south,half=bottom,shape=inner_left": {"model": "inner_stairs"}, | ||
"facing=north,half=bottom,shape=inner_left": {"model": "inner_stairs", "y": 180, "uvlock": true}, | ||
"facing=east,half=top,shape=straight": {"model": "stairs", "x": 180, "uvlock": true}, | ||
"facing=west,half=top,shape=straight": {"model": "stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=south,half=top,shape=straight": {"model": "stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=north,half=top,shape=straight": {"model": "stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=east,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=west,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=south,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=north,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "uvlock": true}, | ||
"facing=east,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "uvlock": true}, | ||
"facing=west,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=south,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=north,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=east,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=west,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=south,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=north,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "uvlock": true}, | ||
"facing=east,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "uvlock": true}, | ||
"facing=west,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=south,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=north,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "y": 270, "uvlock": true} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/main/resources/assets/mocreatures/blockstates/cobbled_wyvstone_stairs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"forge_marker": 1, | ||
"defaults": { | ||
"model": "stairs", | ||
"textures": { | ||
"bottom": "mocreatures:blocks/cobblestone_wyvern", | ||
"top": "mocreatures:blocks/cobblestone_wyvern", | ||
"side": "mocreatures:blocks/cobblestone_wyvern" | ||
} | ||
}, | ||
"variants": { | ||
"normal": [{}], | ||
"inventory": [{}], | ||
"facing=east,half=bottom,shape=straight": {"model": "stairs"}, | ||
"facing=west,half=bottom,shape=straight": {"model": "stairs", "y": 180, "uvlock": true}, | ||
"facing=south,half=bottom,shape=straight": {"model": "stairs", "y": 90, "uvlock": true}, | ||
"facing=north,half=bottom,shape=straight": {"model": "stairs", "y": 270, "uvlock": true}, | ||
"facing=east,half=bottom,shape=outer_right": {"model": "outer_stairs"}, | ||
"facing=west,half=bottom,shape=outer_right": {"model": "outer_stairs", "y": 180, "uvlock": true}, | ||
"facing=south,half=bottom,shape=outer_right": {"model": "outer_stairs", "y": 90, "uvlock": true}, | ||
"facing=north,half=bottom,shape=outer_right": {"model": "outer_stairs", "y": 270, "uvlock": true}, | ||
"facing=east,half=bottom,shape=outer_left": {"model": "outer_stairs", "y": 270, "uvlock": true}, | ||
"facing=west,half=bottom,shape=outer_left": {"model": "outer_stairs", "y": 90, "uvlock": true}, | ||
"facing=south,half=bottom,shape=outer_left": {"model": "outer_stairs"}, | ||
"facing=north,half=bottom,shape=outer_left": {"model": "outer_stairs", "y": 180, "uvlock": true}, | ||
"facing=east,half=bottom,shape=inner_right": {"model": "inner_stairs"}, | ||
"facing=west,half=bottom,shape=inner_right": {"model": "inner_stairs", "y": 180, "uvlock": true}, | ||
"facing=south,half=bottom,shape=inner_right": {"model": "inner_stairs", "y": 90, "uvlock": true}, | ||
"facing=north,half=bottom,shape=inner_right": {"model": "inner_stairs", "y": 270, "uvlock": true}, | ||
"facing=east,half=bottom,shape=inner_left": {"model": "inner_stairs", "y": 270, "uvlock": true}, | ||
"facing=west,half=bottom,shape=inner_left": {"model": "inner_stairs", "y": 90, "uvlock": true}, | ||
"facing=south,half=bottom,shape=inner_left": {"model": "inner_stairs"}, | ||
"facing=north,half=bottom,shape=inner_left": {"model": "inner_stairs", "y": 180, "uvlock": true}, | ||
"facing=east,half=top,shape=straight": {"model": "stairs", "x": 180, "uvlock": true}, | ||
"facing=west,half=top,shape=straight": {"model": "stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=south,half=top,shape=straight": {"model": "stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=north,half=top,shape=straight": {"model": "stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=east,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=west,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=south,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=north,half=top,shape=outer_right": {"model": "outer_stairs", "x": 180, "uvlock": true}, | ||
"facing=east,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "uvlock": true}, | ||
"facing=west,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=south,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=north,half=top,shape=outer_left": {"model": "outer_stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=east,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=west,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "y": 270, "uvlock": true}, | ||
"facing=south,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=north,half=top,shape=inner_right": {"model": "inner_stairs", "x": 180, "uvlock": true}, | ||
"facing=east,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "uvlock": true}, | ||
"facing=west,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "y": 180, "uvlock": true}, | ||
"facing=south,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "y": 90, "uvlock": true}, | ||
"facing=north,half=top,shape=inner_left": {"model": "inner_stairs", "x": 180, "y": 270, "uvlock": true} | ||
} | ||
} |
Oops, something went wrong.