11import { AbstractConverter } from "./AbstractConverter.mjs" ;
2+ import { MetadataConverter } from "./MetadataConverter.mjs" ;
23
34/**
45 * Class PlaceholderConverter
@@ -8,7 +9,11 @@ class PlaceholderConverter extends AbstractConverter {
89 * @inheritDoc
910 */
1011 async convert ( ) {
11- const [ from , x , y , width , height , factor_detect , to , not_center ] = this . data ;
12+ const [ from , x , y , width , height , factor_detect , to , not_center , min_pack_format ] = this . data ;
13+
14+ if ( min_pack_format && MetadataConverter . mcmeta . pack . pack_format < min_pack_format ) {
15+ return [ ] ;
16+ }
1217
1318 if ( ! await this . output . exists ( from ) ) {
1419 return [ ] ;
@@ -70,6 +75,11 @@ class PlaceholderConverter extends AbstractConverter {
7075 [ "textures/entity/chest/normal.png" , 14 , 0 , 14 , 14 , 64 , "textures/blocks/chest_top.png" ] ,
7176 [ "textures/entity/chest/ender.png" , 14 , 0 , 14 , 14 , 64 , "textures/blocks/ender_chest_top.png" ] ,
7277
78+ // Conduit
79+ [ "textures/blocks/conduit_base.png" , 0 , 0 , 24 , 12 , 32 , "textures/blocks/conduit_base.png" , true ] ,
80+ [ "textures/blocks/conduit_closed.png" , 0 , 0 , 8 , 8 , 16 , "textures/blocks/conduit_closed.png" , true , 5 ] ,
81+ [ "textures/blocks/conduit_open.png" , 0 , 0 , 8 , 8 , 16 , "textures/blocks/conduit_open.png" , true , 5 ] ,
82+
7383 // Command block
7484 [ "textures/blocks/chain_command_block_back.png" , 0 , 0 , 16 , 16 , 16 , "textures/blocks/chain_command_block_back_mipmap.png" ] ,
7585 [ "textures/blocks/chain_command_block_conditional.png" , 0 , 0 , 16 , 16 , 16 , "textures/blocks/chain_command_block_conditional_mipmap.png" ] ,
0 commit comments