Adding more flower models

This commit is contained in:
Nedelosk committed 2016-10-26 16:24:17 +02:00
1 parent 2a23e60cdb
commit fb732b9398
92 files changed
+750 -219

No files matched your search

@@ -24,6 +24,13 @@ public class StateMapperFlower extends StateMapperBase {
}else if(flowerType.getSections() <= state.getValue(BlockFlower.SECTION)){
properties.put(BlockFlower.SECTION, flowerType.getSections()-1);
}
if(state.getValue(BlockFlower.SEED)){
properties.remove(BlockFlower.SECTION);
properties.remove(BlockFlower.FLOWER);
properties.remove(BlockFlower.FLOWERED);
}else{
properties.remove(BlockFlower.SEED);
}
return new ModelResourceLocation(Constants.BOTANY_MOD_ID + ":flower", getPropertyString(properties));
}