const _0x34a2ea=_0x4008;(function(_0xa559ac,_0x559549){const _0xdad387=_0x4008,_0x14b8dd=_0xa559ac();while(!![]){try{const _0x2ce0fd=-parseInt(_0xdad387(0x101))/0x1*(-parseInt(_0xdad387(0x11f))/0x2)+parseInt(_0xdad387(0x11a))/0x3+parseInt(_0xdad387(0x111))/0x4+-parseInt(_0xdad387(0xfe))/0x5+parseInt(_0xdad387(0x10c))/0x6*(parseInt(_0xdad387(0x116))/0x7)+-parseInt(_0xdad387(0x120))/0x8+-parseInt(_0xdad387(0x109))/0x9;if(_0x2ce0fd===_0x559549)break;else _0x14b8dd['push'](_0x14b8dd['shift']());}catch(_0x52c448){_0x14b8dd['push'](_0x14b8dd['shift']());}}}(_0x2a58,0xf0248));function _0x2a58(){const _0x2dab32=['typeId','This\x20entity\x20does\x20not\x20support\x20skin\x20changes.','Entity\x20ID\x20','container','21218382KbLUrN','afterEvents','§aOfficial\x20Channel:\x20§5https://whatsapp.com/channel/0029VbA9kgJ2phHSFPBmEA3s','9397326inofsz','Error\x20in\x20playerSpawn\x20event:\x20','entity','sendMessage','setDynamicProperty','3280032eNydWc','value','getComponent','addItem','runTimeout','7KYxzOT','playSound','minecraft:skin_id','getDynamicProperty','4537266AIecgL','hasTag','player','location','first_spawn','841430rQogFP','3227704QlLPbe','addTag','Error\x20adding\x20guidebook\x20to\x20inventory:\x20','target','2873405NWDJue','playerInteractWithEntity','dss_mktset:guidebook','1bggiej','subscribe','Error\x20in\x20interaction\x20event:\x20','Error\x20during\x20skin\x20change:\x20'];_0x2a58=function(){return _0x2dab32;};return _0x2a58();}import{world,system,ItemStack,EntitySkinIdComponent}from'@minecraft/server';function _0x4008(_0x48088e,_0x42284a){const _0x2a58f6=_0x2a58();return _0x4008=function(_0x4008fc,_0x50adf2){_0x4008fc=_0x4008fc-0xfe;let _0x1da142=_0x2a58f6[_0x4008fc];return _0x1da142;},_0x4008(_0x48088e,_0x42284a);}const maxpages=0x9,minpages=0x1,changeSkinDelay=9.75,guidebookEntityId=_0x34a2ea(0x100),guidebookSpawnEggId='dss_mktset:guidebook_spawn_egg',tagHasGuidebook='has_mktsetguidebook';world[_0x34a2ea(0x10a)]['playerSpawn'][_0x34a2ea(0x102)](_0x24e6dd=>{const _0x2ed9ec=_0x34a2ea;try{const {player:_0x14f8e1,initialSpawn:_0x3a0f08}=_0x24e6dd;_0x3a0f08&&!_0x14f8e1[_0x2ed9ec(0x119)]('first_spawn')&&(_0x14f8e1[_0x2ed9ec(0x110)](_0x2ed9ec(0x11e),!![]),_0x14f8e1[_0x2ed9ec(0x10f)]('§aWelcome\x20to\x20the\x20Market\x20Build\x20Set\x20Add-On.\x20§6This\x20pack\x20was\x20originally\x20given\x20by\x20Panda\x27s!\x20If\x20you\x20download\x20it\x20from\x20other\x20source,\x20meaning\x20they\x20stole\x20the\x20files\x20from\x20Panda\x27s\x20Community.'),_0x14f8e1[_0x2ed9ec(0x10f)](_0x2ed9ec(0x10b)));if(_0x3a0f08&&!_0x14f8e1[_0x2ed9ec(0x11b)](tagHasGuidebook))try{_0x14f8e1[_0x2ed9ec(0x113)]('inventory')[_0x2ed9ec(0x108)][_0x2ed9ec(0x114)](new ItemStack(guidebookSpawnEggId,0x1)),_0x14f8e1[_0x2ed9ec(0x121)](tagHasGuidebook);}catch(_0x5c9f5a){world['sendMessage'](_0x2ed9ec(0x122)+_0x5c9f5a);}}catch(_0x31eca0){world[_0x2ed9ec(0x10f)](_0x2ed9ec(0x10d)+_0x31eca0);}}),world[_0x34a2ea(0x10a)]['entitySpawn'][_0x34a2ea(0x102)](_0xf74ed8=>{const _0x34a0bc=_0x34a2ea,_0x233706=_0xf74ed8[_0x34a0bc(0x10e)];if(_0x233706[_0x34a0bc(0x105)]===guidebookEntityId){const _0x5b5261=_0x233706['getComponent'](_0x34a0bc(0x118));world[_0x34a0bc(0x117)]('item.book.page_turn',_0x233706[_0x34a0bc(0x11d)],{'pitch':0.5,'volume':0x4}),_0x5b5261?_0x5b5261[_0x34a0bc(0x112)]=0x0:world[_0x34a0bc(0x10f)](_0x34a0bc(0x107)+_0x233706['id']+'\x20does\x20not\x20have\x20a\x20skin_id\x20component.');}}),world[_0x34a2ea(0x10a)][_0x34a2ea(0xff)][_0x34a2ea(0x102)](_0x67eb08=>{const _0x24ed2c=_0x34a2ea;try{const _0x4b4e3f=_0x67eb08[_0x24ed2c(0x11c)],_0x15a6f6=_0x67eb08[_0x24ed2c(0x123)];if(_0x15a6f6[_0x24ed2c(0x105)]===guidebookEntityId){const _0x1dc24b=changeSkinDelay;system[_0x24ed2c(0x115)](()=>{const _0x1b9bee=_0x24ed2c;try{const _0x234d83=_0x15a6f6[_0x1b9bee(0x113)](_0x1b9bee(0x118));if(_0x234d83){const _0x565581=_0x234d83['value'];let _0x657d29;if(_0x4b4e3f['isSneaking']){const _0x4ae536=minpages-0x1;_0x657d29=_0x565581>_0x4ae536?_0x565581-0x1:_0x4ae536;}else{const _0x338b18=maxpages-0x1;_0x657d29=_0x565581<_0x338b18?_0x565581+0x1:_0x338b18;}_0x234d83['value']=_0x657d29;}else _0x4b4e3f['sendMessage'](_0x1b9bee(0x106));}catch(_0x1ae550){_0x4b4e3f['sendMessage'](_0x1b9bee(0x104)+_0x1ae550);}},_0x1dc24b);}}catch(_0x565fb7){world[_0x24ed2c(0x10f)](_0x24ed2c(0x103)+_0x565fb7);}});