WEBVTT
00:00:00.000 --> 00:00:05.020
Code Minecraft soati | Hodisalar
00:00:05.020 --> 00:00:10.320
Keyingi bosqichda, siz yoki Steve yoki Alex bo‘lishni tanlay olasiz.
00:00:10.320 --> 00:00:16.670
Yuqoriga, pastga, chapga va o‘ngga harakatlanish uchun klaviaturangizdagi yo‘nalishli tugmalarni bosing.
00:00:16.670 --> 00:00:20.890
Endi, siz o‘zingiz xohlagan daraja atrofida aylana olasiz.
00:00:20.890 --> 00:00:27.340
Biron jonzotdan foydalanish uchun, shunchaki u tomonga yuring, u bilan yuzlashish uchun buriling,
spacebarni bosing.
00:00:27.340 --> 00:00:34.280
Agar siz sezgir ekrandan foydalanayotgan bo‘lsangiz, atrof bo‘ylab harakatlanish uchun, qo‘lingizni yuqoriga, pastga, chapga va o‘ngga yurg‘izing.
00:00:34.280 --> 00:00:38.829
Qarshingizdagi narsadan foydalanish uchun o‘yinga bosing.
00:00:38.829 --> 00:00:41.100
Ammo, siz undan foydalanganingizda nima sodir bo‘ldi?
00:00:41.100 --> 00:00:46.851
Minecraftda ularning yungini olganingizda qo‘ylar yungini tushiradi,
urganingizda sigirlar qochib ketadi, va
00:00:46.851 --> 00:00:51.219
sudraluvchilar siz ularga yaqinlashganingizda portlab ketadi.
00:00:51.219 --> 00:00:55.440
Hodisalarga (event) rahmat, bu aks ta’sirlar shular tufayli sodir bo‘ladi.
00:00:55.440 --> 00:01:00.010
Hodisalar dasturingizga nimadir sodir bo‘lganda eshitish kerakligini aytadi.
00:01:00.010 --> 00:01:02.859
Va shunday bo‘lganda, biron harakatni namoyish qiladi.
00:01:02.859 --> 00:01:08.340
Shu paytgacha siz bitta hodisadan foydalangansiz. Siz "when spawned" katagiga qo‘ygan kod
00:01:08.340 --> 00:01:12.120
jonzotingiz yaratilganda yoki o‘yin boshlanganda ishlaydi.
00:01:12.120 --> 00:01:17.780
Keyingi bir nechta bosqichlarda, masalan, siz jonzotga teginganingizda ishlaydigan "when touched",
00:01:17.780 --> 00:01:23.060
yoki jonzotdan foydalanganda ishlatiladigan "when used" kabi yangi katakchalarga ega bo‘lasiz.
00:01:23.060 --> 00:01:29.820
Yoki siz zombiyingizni quyosh chiqqanda yo‘qolib qolishini xohlasangiz,
uni "when day" katagiga joylashtiring.