mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #1652 A way to make Cobwebs out of Silk Wisps and fix greenhouse item models
This commit is contained in:
1 parent
c840945706
commit
6e2ed37e80
2 files changed
+13
No files matched your search
@@ -297,6 +297,9 @@ public class PluginCore extends BlankForestryPlugin {
|
||||
|
||||
// / CAMOUFLAGE SPRAY CAN
|
||||
RecipeUtil.addRecipe(items.camouflageSprayCan, "TTT", "TCT", "TCT", 'T', OreDictUtil.INGOT_TIN, 'C', items.craftingMaterial.getCamouflagedPaneling());
|
||||
|
||||
// / WEB
|
||||
RecipeUtil.addRecipe(new ItemStack(Blocks.WEB, 4), "# #", " # ", "# #", '#', items.craftingMaterial.getSilkWisp());
|
||||
|
||||
if (ForestryAPI.enabledPlugins.contains(ForestryPluginUids.FACTORY)) {
|
||||
// / CARPENTER
|
||||
|
||||
@@ -106,6 +106,16 @@ public class ModelGreenhouse extends ModelBlockDefault<BlockGreenhouse, ModelGre
|
||||
baker.addBlockModel(pos, BlockGreenhouseType.getSprite(BlockGreenhouseType.PLAIN, null, null, world, pos), 100);
|
||||
baker.setParticleSprite(plainSprite);
|
||||
}
|
||||
//Only item model
|
||||
if(key.pos == null || key.state == null || key.world == null){
|
||||
if (block.getGreenhouseType().hasOverlaySprite) {
|
||||
TextureAtlasSprite[] sprite = new TextureAtlasSprite[6];
|
||||
for (EnumFacing facing : EnumFacing.VALUES) {
|
||||
sprite[facing.ordinal()] = BlockGreenhouseType.getSprite(block.getGreenhouseType(), facing, key.state, world, pos);
|
||||
}
|
||||
baker.addBlockModel(pos, sprite, 101);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (block.getGreenhouseType().hasOverlaySprite) {
|
||||
TextureAtlasSprite[] sprite = new TextureAtlasSprite[6];
|
||||
|
||||
Reference in new issue
Block a user