This file contains hidden or 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
| import asyncio, time | |
| from typing import List | |
| class Toast: | |
| is_fried = False | |
| with_butter = False | |
| with_jam = False | |
| def start_fry(self): | |
| print("Начинаем готовить тост.") | |
| def end_fry(self): |
И так, вы все любите сапрессор, поэтому я решил подробно описать как это сделать, я буду дополнять статью со временем, т.к. сейчас пишу с телефона, так же не стесняйтесь задавать вопросы мне в дискорде(LIMPIX31#9144) или Telegram (@LIMPIX31).
Если это гайд вам помог, то пожалуйста оставьте звёздочку и комментарий, чтобы я знал, что улучшить или дополнить.
Я немного забросил тему с сапрессором и похоже, что сапрессор оффициально исправлен Mojang. 😕
Поехали.
This file contains hidden or 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
| import struct | |
| def pack_varint(val): | |
| total = b'' | |
| if val < 0: | |
| val = (1<<32)+val | |
| while val>=0x80: | |
| bits = val&0x7F | |
| val >>= 7 | |
| total += struct.pack('B', (0x80|bits)) |


