Yuav Ua Li Cas Siv Command Blocks hauv Minecraft (nrog Duab)

Cov txheej txheem:

Yuav Ua Li Cas Siv Command Blocks hauv Minecraft (nrog Duab)
Yuav Ua Li Cas Siv Command Blocks hauv Minecraft (nrog Duab)

Video: Yuav Ua Li Cas Siv Command Blocks hauv Minecraft (nrog Duab)

Video: Yuav Ua Li Cas Siv Command Blocks hauv Minecraft (nrog Duab)
Video: ntshiabsi Hawj, kuv tus txiv yog khws kho mob 5/21/23 [ MV OFFICIAL] 2024, Kaum ib hlis
Anonim

Nrog cov lus txib (tseem hu ua kev dag), cov players tuaj yeem hloov pauv ib qho ntawm Minecraft ntiaj teb, txawm tias lwm tus neeg ua si hauv nws. Txhua lo lus txib thaiv khaws cov lus txib tshwj xeeb. Txhua lub sijhawm qhov thaiv no ua haujlwm ces cov lus txib hauv nws yuav siv tau. Nrog cov lus txib thaiv koj tuaj yeem tsim ntau cov khoom ua si lom zem, kev pab, lossis txawm tias piav qhia qhov kev lom zem ntxiv rau hauv daim duab qhia chaw.

Kauj ruam

Ntu 1 ntawm 3: Kev Nkag Mus Rau Qhov Hais Kom Thaiv

Siv Command Blocks hauv Minecraft Kauj Ruam 1
Siv Command Blocks hauv Minecraft Kauj Ruam 1

Kauj Ruam 1. Qhib Minecraft ntawm PC lossis Mac

Tsuas yog khoos phis tawj tsab ntawm Minecraft muaj qhov hais kom ua block. Tsis muaj qhov hais kom ua block hauv Minecraft Pocket Edition lossis Minecraft rau game consoles.

Siv Command Blocks hauv Minecraft Kauj Ruam 2
Siv Command Blocks hauv Minecraft Kauj Ruam 2

Kauj Ruam 2. Nkag mus rau lub ntiaj teb uas koj muaj console nkag tau

Cov lus txib yog cov khoom hauv game uas tso cai nkag mus rau Minecraft console txhawm rau hloov pauv tag nrho cov game, uas yog vim li cas cov lus txib tsuas yog muaj nyob hauv qee qhov xwm txheej:

  • Ntawm ntau tus neeg rau zaub mov, tsuas yog tus neeg ua haujlwm server tuaj yeem siv cov lus txib thaiv. Koj yuav tsum nug tus neeg teb xov tooj los txhawb koj, lossis koj tuaj yeem tsim koj tus kheej server.
  • Hauv lub ntiaj teb nrog tib tus neeg ua si hom, koj yuav tsum qhib txoj kev dag yog tias nws tsis tau qhib thaum lub sijhawm tsim ntiaj teb. Qhib cov ntawv qhia zaub mov thiab nyem Qhib rau LAN, khij lub npov "Allow Cheats", tom qab ntawv nyem Pib LAN ntiaj teb. Cov lus txib no tsuas yog zaum kawg ua si ib zaug, tab sis koj tuaj yeem rov hais dua nws txhua lub sijhawm koj xav ntxiv lwm cov lus txib thaiv.
Siv Command Blocks hauv Minecraft Kauj Ruam 3
Siv Command Blocks hauv Minecraft Kauj Ruam 3

Kauj Ruam 3. Hloov mus rau hom muaj tswv yim

Thaum koj muaj console nkag tau, koj tuaj yeem hloov mus rau hom kev muaj tswv yim. Nov tsuas yog hom uas tso cai rau koj tso thiab ua haujlwm cov lus txib. Txhawm rau ua tiav qhov no, siv cov lus txib hauv qab no:

  • Nias T kom qhib lub console (sib tham bar), lossis nias "/" qhib nws thiab cia li ntxig "/" rau hauv kab uas koj ntaus.
  • tik ua /gamemode c thiab nias "Nkag mus" txhawm rau nkag mus rau hom kev muaj tswv yim.
  • Thaum koj ua tiav teeb tsa cov lus txib thaiv, ntaus /gamemode uas rau hom kev muaj sia nyob lossis /gamemode ib rau hom taug txuj kev nyuaj.
Siv Command Blocks hauv Minecraft Kauj Ruam 4
Siv Command Blocks hauv Minecraft Kauj Ruam 4

Kauj Ruam 4. Tsim cov lus txib thaiv

Qhib lub console dua nrog T ces ntaus cov lus txib no: /muab (username) minecraft: command_block 64. Hloov (lub npe siv) nrog koj lub npe Minecraft tag nrho, yam tsis muaj cov kab zauv.

  • Cov npe neeg siv yog cov ntaub ntawv rhiab.
  • Yog tias tsis muaj dab tsi tshwm sim, koj yuav tsum hloov kho minecraft kom tsawg kawg yog version 1.4. Hloov kho rau qhov hloov tshiab kawg kom nkag tau rau txhua cov lus txib.
  • Koj tuaj yeem hloov "64" nrog rau tus lej kom tau txais ntau qhov thaiv raws li tus lej ntawd. Tus lej 64 yuav tsim tag nrho cov lus txib thaiv.

Ntu 2 ntawm 3: Siv Command Block

Siv Command Blocks hauv Minecraft Kauj Ruam 5
Siv Command Blocks hauv Minecraft Kauj Ruam 5

Kauj Ruam 1. Muab cov lus txib thaiv

Mus los ntawm cov khoom muag thiab saib rau qhov hais kom ua block uas nyuam qhuav tsim. Lub cim yog lub xwmfab xim av thiab ua qauv nrog lub vaj huam sib luag grey ntawm txhua sab. Txav cov lus txib mus rau qhov nrawm thiab tso ib qho kev hais kom ua hauv av, ib yam li koj ib txwm xav nrog lwm yam khoom.

Siv Command Blocks hauv Minecraft Kauj Ruam 6
Siv Command Blocks hauv Minecraft Kauj Ruam 6

Kauj ruam 2. Qhib qhov hais kom ua interface interface

Mus txog qhov hais kom ua thaiv thiab nyem-nyem kom qhib nws, zoo li qhib lub hauv siab. Lub qhov rai uas muaj lub thawv ntawv yuav qhib.

Yog tias tsis muaj dab tsi tshwm sim, cov lus txib thaiv yuav raug xiam ntawm tus neeg rau zaub mov. Cov neeg uas tuaj yeem nkag mus rau server.properties cov ntaub ntawv yuav tsum qhib cov ntawv no thiab teeb tsa pab-hais kom ua-thaiv rau "tseeb" thiab op-tso cai-qib rau "2" lossis siab dua.

Siv Command Blocks hauv Minecraft Kauj Ruam 7
Siv Command Blocks hauv Minecraft Kauj Ruam 7

Kauj Ruam 3. Nkag mus rau lo lus txib

Koj tuaj yeem nkag mus rau ib qho lus txib rau hauv kab lus hais kom ua kab lus, tom qab ntawd nias Ua tiav kom txuag nws hauv qhov thaiv ntawd. Tus lej ntawm cov lus txib ua haujlwm muaj nyob hauv qab, tab sis raws li koj thawj tus sim lawv hu Yaj.

  • Txhawm rau kawm paub ntau ntxiv txog cov lus txib, qhib lub console ib txwm muaj (tsis yog qhov hais kom ua thaiv) thiab ntaus /pab.
  • Tsis zoo li lub console niaj hnub, cov lus txib thaiv lub thawv ntawv tsis tas yuav pib nrog lub cim "/".
Siv Command Blocks hauv Minecraft Kauj Ruam 8
Siv Command Blocks hauv Minecraft Kauj Ruam 8

Kauj Ruam 4. Qhib lub block nrog redstone

Txuas txoj hauv kev redstone hmoov av mus rau qhov hais kom ua block, tom qab ntawd muab lub phaj siab hla lub pob zeb liab. Taug kev hla lub phaj kom qhib lub pob zeb liab, thiab yaj yuav tshwm tom ntej ntawm lub thaiv. Qhov no yuav tshwm sim txhua lub sijhawm tus neeg uas ua ntawv lossis cov neeg mob qhib lub pob zeb liab.

  • Nws ua haujlwm tib yam li kev ua kom redstone tsis tu ncua. Koj tuaj yeem hloov lub phaj siab nrog lub pob, qib, lossis lwm txoj hauv kev qhib. Koj tuaj yeem tso lub khawm ncaj qha rau hauv qhov hais kom ua block.
  • Ib tus neeg tuaj yeem siv cov lus txib thaiv thaum nws tau teeb tsa, tab sis tsuas yog cov neeg ua si nrog kev tso cai kom raug thiaj tuaj yeem hloov cov lus txib.
Siv Command Blocks hauv Minecraft Kauj Ruam 9
Siv Command Blocks hauv Minecraft Kauj Ruam 9

Kauj Ruam 5. Kawm kev cai syntax

Feem ntau ntawm cov lus txib thaiv cov ntawv ua haujlwm zoo li lub console ib txwm muaj. Yog tias koj tsis paub nrog lub console, tshawb xyuas cov qauv hauv qab no kom pib. Yog tias koj twb paub siv console cov lus txib, ntawm no yog cov ntsuas ntxiv uas koj yuav tsum paub:

  • @p lub hom phiaj cov neeg ua si ze tshaj rau cov lus txib thaiv, tsis hais tus neeg ntawd nyob deb npaum li cas.
  • @r phiaj random players nyob qhov twg ntawm tus neeg rau zaub mov.
  • @a phiaj rau txhua tus neeg uas ua ntawv ntawm lub server, suav nrog koj tus kheej.
  • @e phiaj txhua "koomhaum" ntawm tus neeg rau zaub mov. Qhov no suav nrog txhua yam uas tsis yog thaiv, suav nrog cov neeg ua si, khoom siv, yeeb ncuab, thiab tsiaj txhu. Ceev faj hloov qhov no.
  • Koj tuaj yeem siv qhov ntsuas no nyob txhua qhov chaw koj yuav siv lub npe neeg ua si lossis lub npe koom nrog (txawm hais tias cov kev ntsuas no tseem ua haujlwm tau zoo).
Siv Command Blocks hauv Minecraft Kauj Ruam 10
Siv Command Blocks hauv Minecraft Kauj Ruam 10

Kauj Ruam 6. Hloov cov syntax rau lwm qhov kev tswj hwm (yeem)

Koj tuaj yeem ua cov lus txib tshwj xeeb ntxiv los ntawm kev ntxiv tus hloov pauv tom qab @p, @r, @a, lossis @e. Cov syntax no siv [(kev sib cav) = (tus nqi)]. Muaj ntau qhov kev sib cav thiab qhov muaj txiaj ntsig muaj. Koj tuaj yeem pom daim ntawv teev npe tag nrho online, tab sis ntawm no peb nthuav qhia qee qhov piv txwv rau koj:

  • Cov lus txib uas suav nrog @r [yam = Yaj] yuav cuam tshuam rau yaj ntawm random.
  • @e [m = c] cuam tshuam rau txhua tus hauv kev muaj tswv yim. Kev sib cav "m" sawv cev rau hom, thiab "c" sawv cev rau kev muaj tswv yim.
  • Siv lub cim "!" los tsim tus nqi sib txawv. Piv txwv li, @a [pab pawg =! Commando] yuav cuam tshuam rau txhua tus neeg ua si tsis nyob hauv pab pawg "Commando". (Pab pawg tsuas yog siv tau ntawm cov duab qhia chaw uas tsim los.)
Siv Command Blocks hauv Minecraft Kauj Ruam 11
Siv Command Blocks hauv Minecraft Kauj Ruam 11

Kauj Ruam 7. Siv lub "Tab" khawm los saib qhov kev pab

Yog tias koj paub cov lus txib tab sis tsis muaj kev siv rau nws, nyem "Tab" thiab qhov kev ua si yuav ua kom tiav. Nias "Tab" zaum thib ob txhawm rau txheeb xyuas cov npe xaiv.

Piv txwv li, rov qab mus rau qhov hu xov tooj thiab rho tawm lo lus "Yaj". Nias "Tab" txhawm rau hloov pauv los ntawm cov npe ntawm cov koom haum ua tau

Ntu 3 ntawm 3: Hais Kom Thaiv Qauv

Siv Command Blocks hauv Minecraft Kauj Ruam 12
Siv Command Blocks hauv Minecraft Kauj Ruam 12

Kauj Ruam 1. Tsim lub thawv xa xov tooj

Txuag hais kom ua tp @p x y z mus rau qhov hais kom ua block. Hloov ntawm x, y, thiab z, nkag mus rau x, y, thiab z kev tswj hwm ntawm lub hom phiaj kev xa xov (piv txwv li, /tp @p 0 64 0). Thaum ib tus neeg qhib lub npov no, cov neeg ua si ze tshaj plaws rau lub thawv yuav ploj thiab tshwm ntawm qhov kev txiav txim ua ntej.

  • Nias "F3" los tso saib cov haujlwm.
  • Ib yam li lwm cov lus txib, koj tuaj yeem hloov "p" nrog lwm qhov ntsuas. Yog tias koj ntaus koj lub npe siv, koj yuav raug xa mus rau lwm tus, txawm tias muaj lwm tus neeg qhib lub block no. Yog tias koj siv @r, cov neeg sib tw random ntawm lub server yuav raug xa mus.
Siv Command Blocks hauv Minecraft Kauj Ruam 13
Siv Command Blocks hauv Minecraft Kauj Ruam 13

Kauj Ruam 2. Nthuav cov khoom lossis thaiv

Piv txwv tias koj tab tom siv Minecraft version 1.7 thiab siab dua, koj tuaj yeem tsim kab lus txib kom hu rau ib lub koom haum lossis thaiv. Nov yog qee qhov piv txwv rau qhov ntawd:

  • Command block nrog npe laiv yuav ntxiv lub nkoj tshiab nyob ib sab ntawm qhov thaiv, txhua lub sijhawm qhov thaiv no ua haujlwm. Txhua tus neeg los ntawm koj lub server tsis tas yuav tos lub ferry ntxiv lawm.
  • Txhawm rau qhia cov block hloov chaw, siv cov lus txib teeb meem es tsis txhob hais kom hu. Kev txiav txim minecraft teeb thaiv: dej 50 70 100 yuav tig lub thaiv ntawm kev tswj hwm 50-70-100 rau hauv dej. Yog tias twb muaj qhov thaiv lawm, nws yuav ploj mus.
Siv Command Blocks hauv Minecraft Kauj Ruam 14
Siv Command Blocks hauv Minecraft Kauj Ruam 14

Kauj Ruam 3. Ua kom puas cov khoom lossis cov players

Qhov "tua" cov lus txib yuav rhuav tshem ib qho chaw mus tas li. Cov lus txib no txaus ntshai yog tias siv. Yog tias koj ntaus ntawv tsis raug, koj yuav rhuav tshem qhov khoom tsis raug (lossis txawm tias tag nrho lub ntiaj teb yog tias koj siv @e). tua @r [hom = tha xim, r = 50] yuav rhuav tshem cov duab tha xim tsis pub dhau 50 lub vojvoog ntawm lub block hais kom ua.

Siv Command Blocks hauv Minecraft Kauj Ruam 15
Siv Command Blocks hauv Minecraft Kauj Ruam 15

Kauj Ruam 4. Tswj lub sijhawm thiab huab cua

Kev txiav txim teem sijhawm hnub los yog ua set0 yuav teeb lub hnub ci rau qib tshwj xeeb. Hloov tus nqi rau 0 txhawm rau teeb tsa txhua lub sijhawm koj nyiam. Tom qab tau nkees ntawm tshav ntuj nyob mus ib txhis, ua ib qho thaiv nrog cov lus txib toggledown poob los yog huab cua nag ua kom los nag.

Siv Command Blocks hauv Minecraft Kauj Ruam 16
Siv Command Blocks hauv Minecraft Kauj Ruam 16

Kauj Ruam 5. Sim lwm cov lus txib

Muaj ntau pua cov lus txib koj tuaj yeem pom siv /pab lossis los ntawm kev saib nws ntawm Minecraft cov chaw. Tshawb xyuas cov lus txib hauv qab no:

  • hais (lus)
  • muab (neeg uas ua ntawv) (yam khoom) (tus naj npawb ntawm cov khoom)
  • cov nyhuv (neeg uas ua ntawv) (potion effect)
  • kev ua si
  • testforblock

Lub tswv yim

  • Ntawm lub console ib txwm, ntaus /pab los tso saib cov npe ntawm cov lus txib. tik ua /pab (lub npe hais kom ua) los tso saib cov lus txib tshwj xeeb. Koj kuj tseem tuaj yeem nrhiav cov ntaub ntawv ntau ntxiv txog cov lus txib ntawm Minecraft wiki thiab zej zog qhov chaw.
  • Txhawm rau tua cov ntawv ceeb toom sib tham los ntawm kev hais kom ua tiav, qhib lub console ib txwm thiab nkag mus /gamerule commandBlockOutput tsis tseeb.
  • Tsis muaj dab tsi tshwm sim yog tias lub teeb liab mus rau qhov hais kom ua block Cov lus txib thaiv yuav rov ua dua thaum lub teeb liab rov qab los.
  • Txawm hais tias qhov hais kom ua block tsis txuas ncaj qha rau redstone, nws yuav ua rau yog tias cov khoom thaiv nyob ib sab muaj redstone "teeb liab lub zog" ntawm 2 lossis ntau dua.

Ceeb toom

  • Lub teeb liab redstone yuav tsum tau nthuav dav los ntawm redstone rov ua dua yog tias nws taug kev ntau dua 15 qhov thaiv.
  • Koj yuav tsum nyem Done kom txuag qhov hais kom ua block. Kaw lub qhov rais los ntawm nias lub pob "Esc" yuav tsis txuag qhov hais kom ua.

Pom zoo: