Masala #5KZQJOEITG
CHAT #2
Noob o'zi istaganday XACKER bo'lishni yaxshi o'rganayapti. Uning ustozi XACKER Blade unga topshiriq berdi. Noob u aytgan narsalardan foydalanib Effect olishi kerak edi(CHAT #1 masalasida u jonini ko'paytiradigan effectdan foydalangan edi). Blade unga effect berilishi kerak bo'lgan Entity, effect nomi, effect vaqti, effect darajasi ve hide particles(effectdan chiqib turadigan pufakchalarni yoqotish, unga true yoki false kiritiladi). Noob endi u aytgan narsalardan foydalanib Effect qo'shishi kerak. Unga ozgina yordam kerak bo'ladi.
Kirish faylida 1 - qatorda entity nomi ("o'zi", "eng yaqin", "barcha player", “barcha entity” va “tasodifiy” kiritilishi mumkin holos),
2-qatorda effect nomi,
3- qatorda effect vaqti va effect darajasi,
4-qatorda hide particles sharti “true” yoki “false kiritiladi”
Chiqish faylida yagona qatorda kiritilgan ma'lumotlardan foydalanib effect hosil qilish kudini chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
o'zi health boost 1000 130 true |
/effect @s health boost 1000 130 true |
2 |
eng yaqin instant damage 1 1 false |
/effect @p instant damage 1 1 false |
3 |
eng yaqin hero of the village 4125 264 false |
ValueError |
Minecraftga endi kirib kelganlar uchun bildirishnoma chat tilida:
"o'zi" - “@s”
"eng yaqin" - “@p”
"barcha player" - “@a”
“barcha entity” - “@e”
“tasodifiy” - “@r”
deyiladi. singizdan chiqmasin agar qiymat 255 dan oshib ketsa “ValueError” ni chop eting!