docu_minecraft.php 154 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004
  1. <section id="Event-List">
  2. <table>
  3. <tr>
  4. <th class="command"></th>
  5. <th class="desc">footnote</th>
  6. </tr>
  7. <tr>
  8. <td class="bold">*</td>
  9. <td>writable</td>
  10. </tr>
  11. <tr>
  12. <td class="bold">**</td>
  13. <td>can be null</td>
  14. </tr>
  15. <tr>
  16. <td class="bold">receiver</td>
  17. <td>"dev" / "online" / "SERVER" / player</td>
  18. </tr>
  19. </table>
  20. <table>
  21. <tr>
  22. <th class="command">living_hurt</th>
  23. <th class="desc">an entity gets hurt</th>
  24. </tr>
  25. <tr>
  26. <td class="bold">Variablen</td>
  27. <td>living_entity<br>damage_source<br>*damage_amount<br>*cancel</td>
  28. </tr>
  29. </table>
  30. <table>
  31. <tr>
  32. <th class="command">living_heal</th>
  33. <th class="desc">an entity gets healed</th>
  34. </tr>
  35. <tr>
  36. <td class="bold">Variablen</td>
  37. <td>living_entity<br>*heal_amount<br>*cancel</td>
  38. </tr>
  39. </table>
  40. <table>
  41. <tr>
  42. <th class="command">living_death</th>
  43. <th class="desc">an entity dies</th>
  44. </tr>
  45. <tr>
  46. <td class="bold">Variablen</td>
  47. <td>living_entity<br>damage_source<br>*cancel</td>
  48. </tr>
  49. </table>
  50. <table>
  51. <tr>
  52. <th class="command">block_drop</th>
  53. <th class="desc">a destroyed block drops something</th>
  54. </tr>
  55. <tr>
  56. <td class="bold">Variablen</td>
  57. <td>**entity<br>**item<br>location<br>block<br>block_type<br>*drops with item-entities as list</td>
  58. </tr>
  59. </table>
  60. <table>
  61. <tr>
  62. <th class="command">living_experience_drop</th>
  63. <th class="desc">an entity dies and drops exp</th>
  64. </tr>
  65. <tr>
  66. <td class="bold">Variablen</td>
  67. <td>living_entity<br>*experience<br>*cancel</td>
  68. </tr>
  69. </table>
  70. <table>
  71. <tr>
  72. <th class="command">living_drop</th>
  73. <th class="desc">an entity dies and drops something</th>
  74. </tr>
  75. <tr>
  76. <td class="bold">Variablen</td>
  77. <td>living_entity<br>damage_source<br>*drops with item-entities as list<br>looting (as double)<br>*cancel</td>
  78. </tr>
  79. </table>
  80. <table>
  81. <tr>
  82. <th class="command">entity_click</th>
  83. <th class="desc">an entity gets right_clicked</th>
  84. </tr>
  85. <tr>
  86. <td class="bold">Variablen</td>
  87. <td>player<br>player_name (deprecated)<br>entity<br>hand ("MAIN_HAND", "OFF_HAND")<br>*cancel</td>
  88. </tr>
  89. </table>
  90. </table>
  91. <table>
  92. <tr>
  93. <th class="command">entity_join</th>
  94. <th class="desc">an entity spawns</th>
  95. </tr>
  96. <tr>
  97. <td class="bold">Variablen</td>
  98. <td>entity<br>*cancel</td>
  99. </tr>
  100. </table>
  101. <table>
  102. <tr>
  103. <th class="command">entity_leave</th>
  104. <th class="desc">an entity despawns</th>
  105. </tr>
  106. <tr>
  107. <td class="bold">Variablen</td>
  108. <td>entity</td>
  109. </tr>
  110. </table>
  111. <table>
  112. <tr>
  113. <th class="command">animal_tame</th>
  114. <th class="desc">an entity gets tamed</th>
  115. </tr>
  116. <tr>
  117. <td class="bold">Variablen</td>
  118. <td>animal<br>tamer<br>*cancel</td>
  119. </tr>
  120. </table>
  121. <table>
  122. <tr>
  123. <th class="command">entity_mount</th>
  124. <th class="desc">an entity (dis)mounts another entity</th>
  125. </tr>
  126. <tr>
  127. <td class="bold">Variablen</td>
  128. <td>rider<br>entity<br>mounting as boolean<br>*cancel</td>
  129. </tr>
  130. </table>
  131. <table>
  132. <tr>
  133. <th class="command">player_login</th>
  134. <th class="desc">a player joins the server</th>
  135. </tr>
  136. <tr>
  137. <td class="bold">Variablen</td>
  138. <td>player<br>player_name (deprecated)<br>*cancel</td>
  139. </tr>
  140. </table>
  141. <table>
  142. <tr>
  143. <th class="command">player_logout</th>
  144. <th class="desc">a player leaves the server</th>
  145. </tr>
  146. <tr>
  147. <td class="bold">Variablen</td>
  148. <td>player<br>player_name (deprecated)<br>*cancel</td>
  149. </tr>
  150. </table>
  151. <table>
  152. <tr>
  153. <th class="command">player_pre_respawn</th>
  154. <th class="desc">the players will respawn</th>
  155. </tr>
  156. <tr>
  157. <td class="bold">Variablen</td>
  158. <td>player<br>player_name (deprecated)</td>
  159. </tr>
  160. <tr>
  161. <td class="bold">Info</td>
  162. <td>devs can set the spawn-location on this event</td>
  163. </tr>
  164. </table>
  165. <table>
  166. <tr>
  167. <th class="command">player_post_respawn</th>
  168. <th class="desc">the players has respawned</th>
  169. </tr>
  170. <tr>
  171. <td class="bold">Variablen</td>
  172. <td>player<br>player_name (deprecated)</td>
  173. </tr>
  174. <tr>
  175. <td class="bold">Info</td>
  176. <td>devs can refill the inventory on this event</td>
  177. </tr>
  178. </table>
  179. <table>
  180. <tr>
  181. <th class="command">living_pre_hurt</th>
  182. <th class="desc">an entity gets hurt (event is thrown before living_hurt and cancels damage-animation and knockback)</th>
  183. </tr>
  184. <tr>
  185. <td class="bold">Variablen</td>
  186. <td>living_entity<br>damage_source<br>*damage_amount<br>*cancel</td>
  187. </tr>
  188. </table>
  189. <table>
  190. <tr>
  191. <th class="command">living_jump</th>
  192. <th class="desc">an entity jumps</th>
  193. </tr>
  194. <tr>
  195. <td class="bold">Variablen</td>
  196. <td>living_entity</td>
  197. </tr>
  198. </table>
  199. <table>
  200. <tr>
  201. <th class="command">player_sneak</th>
  202. <th class="desc">a player sneaks</th>
  203. </tr>
  204. <tr>
  205. <td class="bold">Variablen</td>
  206. <td>player<br>player_name (deprecated)<br>sneak as boolean</td>
  207. </tr>
  208. </table>
  209. <table>
  210. <tr>
  211. <th class="command">mob_griefing</th>
  212. <th class="desc">an entity destroys the world</th>
  213. </tr>
  214. <tr>
  215. <td class="bold">Variablen</td>
  216. <td>entity<br>*cancel</td>
  217. </tr>
  218. </table>
  219. <table>
  220. <tr>
  221. <th class="command">player_toss</th>
  222. <th class="desc">a player tosses an item</th>
  223. </tr>
  224. <tr>
  225. <td class="bold">Variablen</td>
  226. <td>player<br>player_name (deprecated)<br>item<br>*cancel</td>
  227. </tr>
  228. </table>
  229. <table>
  230. <tr>
  231. <th class="command">player_pickup</th>
  232. <th class="desc">a player picks up an item</th>
  233. </tr>
  234. <tr>
  235. <td class="bold">Variablen</td>
  236. <td>player<br>player_name (deprecated)<br>entity (item)<br>item<br>*cancel</td>
  237. </tr>
  238. </table>
  239. <table>
  240. <tr>
  241. <th class="command">player_move</th>
  242. <th class="desc">a player moves in an before defined area</th>
  243. </tr>
  244. <tr>
  245. <td class="bold">Variablen</td>
  246. <td>player<br>player_name (deprecated)<br>id</td>
  247. </tr>
  248. </table>
  249. <table>
  250. <tr>
  251. <th class="command">block_break</th>
  252. <th class="desc">a block is broken</th>
  253. </tr>
  254. <tr>
  255. <td class="bold">Variablen</td>
  256. <td>player<br>player_name (deprecated)<br>block as object<br>block_loc<br>block_type (e.g. "minecraft:wool", "km:artefact")<br>*cancel</td>
  257. </tr>
  258. </table>
  259. <table>
  260. <tr>
  261. <th class="command">block_place</th>
  262. <th class="desc">a block is placed</th>
  263. </tr>
  264. <tr>
  265. <td class="bold">Variablen</td>
  266. <td>player<br>player_name (deprecated)<br>block as object<br>block_loc<br>block_type</td>
  267. </tr>
  268. </table>
  269. <table>
  270. <tr>
  271. <th class="command">block_click</th>
  272. <th class="desc">a block gets clicked</th>
  273. </tr>
  274. <tr>
  275. <td class="bold">Variablen</td>
  276. <td>player<br>player_name (deprecated)<br>block as object<br>block_loc<br>block_type<br>action ("left", "right")<br>hand ("MAIN_HAND", "OFF_HAND")<br>*cancel</td>
  277. </tr>
  278. </table>
  279. <table>
  280. <tr>
  281. <th class="command">bucket_use</th>
  282. <th class="desc">a bucket is filled / vacated</th>
  283. </tr>
  284. <tr>
  285. <td class="bold">Variablen</td>
  286. <td>player<br>player_name (deprecated)<br>hasblock as boolean<br>**block_loc<br>**block_type<br>*cancel</td>
  287. </tr>
  288. </table>
  289. <table>
  290. <tr>
  291. <th class="command">inv_click</th>
  292. <th class="desc">a slot in an inventory gets clicked</th>
  293. </tr>
  294. <tr>
  295. <td class="bold">Variablen</td>
  296. <td>player<br>player_name (deprecated)<br>item<br>inv<br>inv_name<br>inv_slot as number<br>inv_id<br>*cancel</td>
  297. </tr>
  298. </table>
  299. <table>
  300. <tr>
  301. <th class="command">inv_close</th>
  302. <th class="desc">an inventory gets closed</th>
  303. </tr>
  304. <tr>
  305. <td class="bold">Variablen</td>
  306. <td>player<br>player_name (deprecated)<br>inv<br>inv_id<br>inv_name</td>
  307. </tr>
  308. </table>
  309. <table>
  310. <tr>
  311. <th class="command">item_use_start</th>
  312. <th class="desc">an item gets started to be used with rightclick</th>
  313. </tr>
  314. <tr>
  315. <td class="bold">Variablen</td>
  316. <td>living_entity<br>item<br>duration as number<br>*cancel</td>
  317. </tr>
  318. </table>
  319. <table>
  320. <tr>
  321. <th class="command">item_use_finish</th>
  322. <th class="desc">an item gets finished to be used with rightclick</th>
  323. </tr>
  324. <tr>
  325. <td class="bold">Variablen</td>
  326. <td>living_entity<br>item<br>result (result item)</td>
  327. </tr>
  328. </table>
  329. <table>
  330. <tr>
  331. <th class="command">craft</th>
  332. <th class="desc">a player crafts an item</th>
  333. </tr>
  334. <tr>
  335. <td class="bold">Variablen</td>
  336. <td>player<br>player_name (deprecated)<br>*result</td>
  337. </tr>
  338. </table>
  339. <table>
  340. <tr>
  341. <th class="command">portal</th>
  342. <th class="desc">a player switches the world</th>
  343. </tr>
  344. <tr>
  345. <td class="bold">Variablen</td>
  346. <td>player<br>player_name (deprecated)<br>from world as string<br>to world as string</td>
  347. </tr>
  348. </table>
  349. <table>
  350. <tr>
  351. <th class="command">fishing</th>
  352. <th class="desc">a player fishes something</th>
  353. </tr>
  354. <tr>
  355. <td class="bold">Variablen</td>
  356. <td>player<br>player_name (deprecated)<br>rod_damage<br>hook (entity)<br>*drops with itemstacks as list<br>*cancel</td>
  357. </tr>
  358. </table>
  359. <table>
  360. <tr>
  361. <th class="command">command</th>
  362. <th class="desc">a player uses a vanilla command</th>
  363. </tr>
  364. <tr>
  365. <td class="bold">Variablen</td>
  366. <td>player<br>player_name (deprecated)<br>command as string<br>*cancel</td>
  367. </tr>
  368. </table>
  369. <table>
  370. <tr>
  371. <th class="command">custom_command</th>
  372. <th class="desc">a player (or console) uses a custom-command</th>
  373. </tr>
  374. <tr>
  375. <td class="bold">Variablen</td>
  376. <td>player (null if console)<br>player_name (null if console) (deprecated)<br>command as string<br>args as list</td>
  377. </tr>
  378. </table>
  379. <table>
  380. <tr>
  381. <th class="command">chat</th>
  382. <th class="desc">a player writes into chat</th>
  383. </tr>
  384. <tr>
  385. <td class="bold">Variablen</td>
  386. <td>player<br>player_name (deprecated)<br>message as string<br>*cancel</td>
  387. </tr>
  388. </table>
  389. <table>
  390. <tr>
  391. <th class="command">projectile_hit</th>
  392. <th class="desc">a thrown projectile hits a block or an entity</th>
  393. </tr>
  394. <tr>
  395. <td class="bold">Variablen</td>
  396. <td>shooter<br>projectile<br>**entity_hit (=hitted entity)<br>**loc_hit (=hitted location)</td>
  397. </tr>
  398. </table>
  399. <table>
  400. <tr>
  401. <th class="command">item_hit</th>
  402. <th class="desc">the item thrown with entity.shootProjectile() hits a block or an entity</th>
  403. </tr>
  404. <tr>
  405. <td class="bold">Variablen</td>
  406. <td>shooter<br>projectile (=thrown entity)<br>item<br>**entity_hit (=hitted entity)<br>**loc_hit (=hitted location)</td>
  407. </tr>
  408. </table>
  409. <table>
  410. <tr>
  411. <th class="command">item_air_click</th>
  412. <th class="desc">a player makes a rightclick into air with an item</th>
  413. </tr>
  414. <tr>
  415. <td class="bold">Variablen</td>
  416. <td>player<br>player_name (deprecated)<br>hand ("MAIN_HAND", "OFF_HAND")<br>*cancel</td>
  417. </tr>
  418. </table>
  419. <table>
  420. <tr>
  421. <th class="command">left_click_air</th>
  422. <th class="desc">a player makes a leftclick into air</th>
  423. </tr>
  424. <tr>
  425. <td class="bold">Variablen</td>
  426. <td>player<br>player_name (deprecated)</td>
  427. </tr>
  428. </table>
  429. <table>
  430. <tr>
  431. <th class="command">function_key</th>
  432. <th class="desc">a player pushes one of the mod-functional-keys</th>
  433. </tr>
  434. <tr>
  435. <td class="bold">Variablen</td>
  436. <td>player<br>player_name (deprecated)<br>key as number from 1 to 9<br>*cancel</td>
  437. </tr>
  438. </table>
  439. <table>
  440. <tr>
  441. <th class="command">human_hurt</th>
  442. <th class="desc">an entity beats a human</th>
  443. </tr>
  444. <tr>
  445. <td class="bold">Variablen</td>
  446. <td>entity<br>human</td>
  447. </tr>
  448. </table>
  449. <table>
  450. <tr>
  451. <th class="command">pre_explosion</th>
  452. <th class="desc">explosions are cancelled on default</th>
  453. </tr>
  454. <tr>
  455. <td class="bold">Variablen</td>
  456. <td>location<br>damage_source<br>*cancel|true</td>
  457. </tr>
  458. </table>
  459. <table>
  460. <tr>
  461. <th class="command">explosion</th>
  462. <th class="desc">explosion</th>
  463. </tr>
  464. <tr>
  465. <td class="bold">Variablen</td>
  466. <td>location<br>damage_source<br>*affected_blocks as list with BlockPos<br>affected_entities as list</td>
  467. </tr>
  468. </table>
  469. <table>
  470. <tr>
  471. <th class="command">missing_command</th>
  472. <th class="desc">a player uses an non-existing command</th>
  473. </tr>
  474. <tr>
  475. <td class="bold">Variablen</td>
  476. <td>**player<br>**player_name (deprecated)<br>command_name<br>sender_name</td>
  477. </tr>
  478. </table>
  479. <table>
  480. <tr>
  481. <th class="command">missing_perm</th>
  482. <th class="desc">a player has no permissions for a used command</th>
  483. </tr>
  484. <tr>
  485. <td class="bold">Variablen</td>
  486. <td>**player<br>**player_name (deprecated)<br>command_name<br>sender_name</td>
  487. </tr>
  488. </table>
  489. <table>
  490. <tr>
  491. <th class="command">player_data_tick</th>
  492. <th class="desc">thrown if timer from data.setTimer reached 0</th>
  493. </tr>
  494. <tr>
  495. <td class="bold">Variablen</td>
  496. <td>player<br>player_name (deprecated)<br>var</td>
  497. </tr>
  498. </table>
  499. <table>
  500. <tr>
  501. <th class="command">player_elytra_start</th>
  502. <th class="desc">thrown if a player starts using an elytra</th>
  503. </tr>
  504. <tr>
  505. <td class="bold">Variablen</td>
  506. <td>player<br>player_name (deprecated)</td>
  507. </tr>
  508. </table>
  509. <table>
  510. <tr>
  511. <th class="command">player_elytra_stop</th>
  512. <th class="desc">thrown if a player stops using an elytra</th>
  513. </tr>
  514. <tr>
  515. <td class="bold">Variablen</td>
  516. <td>player<br>player_name (deprecated)</td>
  517. </tr>
  518. </table>
  519. <table>
  520. <tr>
  521. <th class="command">world_load</th>
  522. <th class="desc">a world gets loaded</th>
  523. </tr>
  524. <tr>
  525. <td class="bold">Variablen</td>
  526. <td>world</td>
  527. </tr>
  528. </table>
  529. </section>
  530. <section id="Event">
  531. <table>
  532. <tr>
  533. <th class="command">event.addMoveData</th>
  534. <th class="desc">defines an area for player_move event and returns the move_id</th>
  535. </tr>
  536. <tr>
  537. <td class="bold">Format</td>
  538. <td>event.addMoveData(location1, location2, cooldown, livingtime, [uuid / string_uuid / player])</td>
  539. </tr>
  540. <tr>
  541. <td class="bold">Arguments</td>
  542. <td>
  543. cooldown: -1 terminated after a single trigger<br>
  544. cooldown: > 0 clock rate in Ticks. no termination<br>
  545. livingtime: -1 area lives forever<br>
  546. livingtime: > 0 stays amount of ticks alive<br>
  547. player / uuid: event only triggers for this player
  548. </td>
  549. </tr>
  550. <tr>
  551. <td class="bold">Info</td>
  552. <td>on script termination this area will be removed</td>
  553. </tr>
  554. </table>
  555. <table>
  556. <tr>
  557. <th class="command">event.removeMoveData</th>
  558. <th class="desc">removes a defined area for player_move event</th>
  559. </tr>
  560. <tr>
  561. <td class="bold">Format</td>
  562. <td>event.removeMoveData(id)</td>
  563. </tr>
  564. </table>
  565. </section>
  566. <section id="Ban">
  567. <table>
  568. <tr>
  569. <th class="command">ban.add</th>
  570. <th class="desc">bans a player from the server</th>
  571. </tr>
  572. <tr>
  573. <td class="bold">Format</td>
  574. <td>ban.add(uuid / string_uuid / player, reason, banner, [end_date])</td>
  575. </tr>
  576. <tr>
  577. <td class="bold">Arguments</td>
  578. <td>
  579. reason as string<br>
  580. banner as string (the person who bans, almost you can write in here what you want)<br>
  581. end_date as calendar object
  582. </td>
  583. </tr>
  584. </table>
  585. <table>
  586. <tr>
  587. <th class="command">ban.remove</th>
  588. <th class="desc">unbans a player from the server</th>
  589. </tr>
  590. <tr>
  591. <td class="bold">Format</td>
  592. <td>ban.remove(uuid / string_uuid / player)</td>
  593. </tr>
  594. </table>
  595. <table>
  596. <tr>
  597. <th class="command">ban.kick</th>
  598. <th class="desc">kicks a player from the server</th>
  599. </tr>
  600. <tr>
  601. <td class="bold">Format</td>
  602. <td>ban.kick(player, reason)</td>
  603. </tr>
  604. </table>
  605. </section>
  606. <section id="Block">
  607. <table>
  608. <tr>
  609. <th class="command">block.set</th>
  610. <th class="desc">set a block at a location</th>
  611. </tr>
  612. <tr>
  613. <td class="bold">Format</td>
  614. <td>block.set(location, ItemString, [boolean|false])</td>
  615. </tr>
  616. <tr>
  617. <td class="bold">Arguments</td>
  618. <td>boolean true places without block update</td>
  619. </tr>
  620. <tr>
  621. <td class="bold">Examples</td>
  622. <td>block.set(loc, "km:apricot_leaves")<br>block.set(loc, "minecraft:oak_log[axis=x]")</td>
  623. </tr>
  624. </table>
  625. <table>
  626. <tr>
  627. <th class="command">block.clone</th>
  628. <th class="desc">clone a block from a location to another</th>
  629. </tr>
  630. <tr>
  631. <td class="bold">Format</td>
  632. <td>block.clone(from-location, to-location)</td>
  633. </tr>
  634. </table>
  635. <table>
  636. <tr>
  637. <th class="command">block.setSpawnerType</th>
  638. <th class="desc">sets the spawnertype</th>
  639. </tr>
  640. <tr>
  641. <td class="bold">Format</td>
  642. <td>block.setSpawnerType(location, entity_class)</td>
  643. </tr>
  644. </table>
  645. <table>
  646. <tr>
  647. <th class="command">block.setSign</th>
  648. <th class="desc">set text on a sign and returns true on success</th>
  649. </tr>
  650. <tr>
  651. <td class="bold">Format</td>
  652. <td>block.setSign(location, row, text)</td>
  653. </tr>
  654. <tr>
  655. <td class="bold">Arguments</td>
  656. <td>block.setSign(row: 0 to 3)</td>
  657. </tr>
  658. </table>
  659. <table>
  660. <tr>
  661. <th class="command">block.getSign</th>
  662. <th class="desc">returns the text of a sign from a specific row or null if block is no sign</th>
  663. </tr>
  664. <tr>
  665. <td class="bold">Format</td>
  666. <td>block.getSign(location, row)</td>
  667. </tr>
  668. <tr>
  669. <td class="bold">Arguments</td>
  670. <td>block.setSign(row: 0 to 3)</td>
  671. </tr>
  672. </table>
  673. <table>
  674. <tr>
  675. <th class="command">block.addItem</th>
  676. <th class="desc">adds an itemstack to a container</th>
  677. </tr>
  678. <tr>
  679. <td class="bold">Format</td>
  680. <td>block.addItem(location, itemstack)</td>
  681. </tr>
  682. <tr>
  683. <td class="bold">Returns</td>
  684. <td>the modified original itemstack that has not fit in. air itemstack if done perfectly</td>
  685. </tr>
  686. </table>
  687. <table>
  688. <tr>
  689. <th class="command">block.subItem</th>
  690. <th class="desc">removes an itemstack from a container</th>
  691. </tr>
  692. <tr>
  693. <td class="bold">Format</td>
  694. <td>block.subItem(location, itemstack)</td>
  695. </tr>
  696. <tr>
  697. <td class="bold">Returns</td>
  698. <td>the modified original itemstack that could not be removed. air itemstack if done perfectly</td>
  699. </tr>
  700. </table>
  701. <table>
  702. <tr>
  703. <th class="command">block.get</th>
  704. <th class="desc">returns a block object</th>
  705. </tr>
  706. <tr>
  707. <td class="bold">Format</td>
  708. <td>block.get(location)</td>
  709. </tr>
  710. </table>
  711. <table>
  712. <tr>
  713. <th class="command">block.getSecChest</th>
  714. <th class="desc">returns the second location of a doublechest</th>
  715. </tr>
  716. <tr>
  717. <td class="bold">Format</td>
  718. <td>block.getSecChest(location)</td>
  719. </tr>
  720. </table>
  721. <table>
  722. <tr>
  723. <th class="command">block.getInv</th>
  724. <th class="desc">returns the (non-copy) inventory of a block</th>
  725. </tr>
  726. <tr>
  727. <td class="bold">Format</td>
  728. <td>block.getInv(location)</td>
  729. </tr>
  730. </table>
  731. <table>
  732. <tr>
  733. <th class="command">block.getType</th>
  734. <th class="desc">returns the type of a block at a location</th>
  735. </tr>
  736. <tr>
  737. <td class="bold">Format</td>
  738. <td>block.getType(location)</td>
  739. </tr>
  740. <tr>
  741. <td class="bold">Examples</td>
  742. <td>returns "minecraft:wool" / "km:artefact"</td>
  743. </tr>
  744. </table>
  745. <table>
  746. <tr>
  747. <th class="command">block.toStack</th>
  748. <th class="desc">returns an itemstack from a block at a location</th>
  749. </tr>
  750. <tr>
  751. <td class="bold">Format</td>
  752. <td>block.toStack(location)</td>
  753. </tr>
  754. </table>
  755. <table>
  756. <tr>
  757. <th class="command">block.getItemAmount</th>
  758. <th class="desc">returns the amount from a specific itemtype in an container</th>
  759. </tr>
  760. <tr>
  761. <td class="bold">Format</td>
  762. <td>block.getItemAmount(location, boolean, itemstack)</td>
  763. </tr>
  764. <tr>
  765. <td class="bold">Info</td>
  766. <td>false means exact itemstack</td>
  767. </tr>
  768. </table>
  769. <table>
  770. <tr>
  771. <th class="command">block.setDoorStatus</th>
  772. <th class="desc">true opens a door</th>
  773. </tr>
  774. <tr>
  775. <td class="bold">Format</td>
  776. <td>block.setDoorStatus(location, boolean)</td>
  777. </tr>
  778. </table>
  779. <table>
  780. <tr>
  781. <th class="command">block.getDoorStatus</th>
  782. <th class="desc">returns true if the door is open</th>
  783. </tr>
  784. <tr>
  785. <td class="bold">Format</td>
  786. <td>block.getDoorStatus(location)</td>
  787. </tr>
  788. </table>
  789. <table>
  790. <tr>
  791. <th class="command">block.setTrapdoorStatus</th>
  792. <th class="desc">true opens a trapdoor</th>
  793. </tr>
  794. <tr>
  795. <td class="bold">Format</td>
  796. <td>block.setTrapdoorStatus(location, boolean)</td>
  797. </tr>
  798. </table>
  799. <table>
  800. <tr>
  801. <th class="command">block.getTrapdoorStatus</th>
  802. <th class="desc">returns true if the trapdoor is open</th>
  803. </tr>
  804. <tr>
  805. <td class="bold">Format</td>
  806. <td>block.getTrapdoorStatus(location)</td>
  807. </tr>
  808. </table>
  809. <table>
  810. <tr>
  811. <th class="command">block.isAir</th>
  812. <th class="desc">returns true if the block at the location is an air block</th>
  813. </tr>
  814. <tr>
  815. <td class="bold">Format</td>
  816. <td>block.isAir(location)</td>
  817. </tr>
  818. </table>
  819. <table>
  820. <tr>
  821. <th class="command">block.countAir</th>
  822. <th class="desc">returns the amount of air blocks a location surrounded with</th>
  823. </tr>
  824. <tr>
  825. <td class="bold">Format</td>
  826. <td>block.countAir(location)</td>
  827. </tr>
  828. </table>
  829. <table>
  830. <tr>
  831. <th class="command">block.isDoor (deprecated)</th>
  832. <th class="desc">returns true if the block at the location is a door</th>
  833. </tr>
  834. <tr>
  835. <td class="bold">Format</td>
  836. <td>block.isDoor(location)</td>
  837. </tr>
  838. </table>
  839. <table>
  840. <tr>
  841. <th class="command">block.isSolid</th>
  842. <th class="desc">returns true if the block is solid</th>
  843. </tr>
  844. <tr>
  845. <td class="bold">Format</td>
  846. <td>block.isSolid(location)</td>
  847. </tr>
  848. </table>
  849. <table>
  850. <tr>
  851. <th class="command">block.getTag</th>
  852. <th class="desc">returns a tag</th>
  853. </tr>
  854. <tr>
  855. <td class="bold">Format</td>
  856. <td>block.getTag(String tag_name)</td>
  857. </tr>
  858. </table>
  859. <table>
  860. <tr>
  861. <th class="command">block.hasTag</th>
  862. <th class="desc">returns true if a block has a tag</th>
  863. </tr>
  864. <tr>
  865. <td class="bold">Format</td>
  866. <td>block.hasTag(tag, Block)</td>
  867. </tr>
  868. </table>
  869. <table>
  870. <tr>
  871. <th class="command">block.getProperty</th>
  872. <th class="desc">returns a property</th>
  873. </tr>
  874. <tr>
  875. <td class="bold">Format</td>
  876. <td>block.getProperty(String property_name)</td>
  877. </tr>
  878. <tr>
  879. <td class="bold">Info</td>
  880. <td>some properties has to be renamed. look here: <a href="https://git.hammerle.me/kjhammerle/minecraft-kajetans-mod/src/master/src/main/java/me/km/utils/Mapper.java" target="_blank">me.km.utils.Mapper</a></td>
  881. </tr>
  882. </table>
  883. <table>
  884. <tr>
  885. <th class="command">block.getState</th>
  886. <th class="desc">returns the state as double, string or boolean, demanding on the property</th>
  887. </tr>
  888. <tr>
  889. <td class="bold">Format</td>
  890. <td>block.getState(location, property)</td>
  891. </tr>
  892. </table>
  893. <table>
  894. <tr>
  895. <th class="command">block.setState</th>
  896. <th class="desc">sets the state of a block</th>
  897. </tr>
  898. <tr>
  899. <td class="bold">Format</td>
  900. <td>block.setState(location, state, [boolean])</td>
  901. </tr>
  902. </table>
  903. <table>
  904. <tr>
  905. <th class="command">block.newState</th>
  906. <th class="desc">creates a block state</th>
  907. </tr>
  908. <tr>
  909. <td class="bold">Format</td>
  910. <td>block.newState(state)</td>
  911. </tr>
  912. <tr>
  913. <td class="bold">Examples</td>
  914. <td>block.newState("minecraft:stone")</td>
  915. </tr>
  916. <tr>
  917. <td class="bold">Info</td>
  918. <td>returns null if invalid state</td>
  919. </tr>
  920. </table>
  921. <table>
  922. <tr>
  923. <th class="command">block.break</th>
  924. <th class="desc">breaks a block and drops the item</th>
  925. </tr>
  926. <tr>
  927. <td class="bold">Format</td>
  928. <td>block.break(location, entity)</td>
  929. </tr>
  930. <tr>
  931. <td class="bold">Info</td>
  932. <td>entity can be null</td>
  933. </tr>
  934. </table>
  935. </section>
  936. <section id="Databank">
  937. <table>
  938. <tr>
  939. <th class="command">databank.prepare</th>
  940. <th class="desc">returns the prepared statement</th>
  941. </tr>
  942. <tr>
  943. <td class="bold">Format</td>
  944. <td>databank.prepare(sql-query, [boolean autoclose|true])</td>
  945. </tr>
  946. </table>
  947. <table>
  948. <tr>
  949. <th class="command">databank.setInt</th>
  950. <th class="desc">sets an int into a statement</th>
  951. </tr>
  952. <tr>
  953. <td class="bold">Format</td>
  954. <td>databank.setInt(statement, index, int)</td>
  955. </tr>
  956. </table>
  957. <table>
  958. <tr>
  959. <th class="command">databank.setDouble</th>
  960. <th class="desc">sets a double into a statement</th>
  961. </tr>
  962. <tr>
  963. <td class="bold">Format</td>
  964. <td>databank.setDouble(statement, index, double)</td>
  965. </tr>
  966. </table>
  967. <table>
  968. <tr>
  969. <th class="command">databank.setLong</th>
  970. <th class="desc">sets a long into a statement</th>
  971. </tr>
  972. <tr>
  973. <td class="bold">Format</td>
  974. <td>databank.setLong(statement, index, long)</td>
  975. </tr>
  976. </table>
  977. <table>
  978. <tr>
  979. <th class="command">databank.setString</th>
  980. <th class="desc">sets a string into a statement</th>
  981. </tr>
  982. <tr>
  983. <td class="bold">Format</td>
  984. <td>databank.setString(statement, index, string)</td>
  985. </tr>
  986. </table>
  987. <table>
  988. <tr>
  989. <th class="command">databank.setBool</th>
  990. <th class="desc">sets a boolean into a statement</th>
  991. </tr>
  992. <tr>
  993. <td class="bold">Format</td>
  994. <td>databank.setBool(statement, index, boolean)</td>
  995. </tr>
  996. </table>
  997. <table>
  998. <tr>
  999. <th class="command">databank.getInt</th>
  1000. <th class="desc">returns an int from a result set</th>
  1001. </tr>
  1002. <tr>
  1003. <td class="bold">Format</td>
  1004. <td>databank.getInt(result-set, index)</td>
  1005. </tr>
  1006. </table>
  1007. <table>
  1008. <tr>
  1009. <th class="command">databank.getDouble</th>
  1010. <th class="desc">returns a double from a result set</th>
  1011. </tr>
  1012. <tr>
  1013. <td class="bold">Format</td>
  1014. <td>databank.getDouble(result-set, index)</td>
  1015. </tr>
  1016. </table>
  1017. <table>
  1018. <tr>
  1019. <th class="command">databank.getLong</th>
  1020. <th class="desc">returns a long from a result set</th>
  1021. </tr>
  1022. <tr>
  1023. <td class="bold">Format</td>
  1024. <td>databank.getLong(result-set, index)</td>
  1025. </tr>
  1026. </table>
  1027. <table>
  1028. <tr>
  1029. <th class="command">databank.getString</th>
  1030. <th class="desc">returns a string from a result set</th>
  1031. </tr>
  1032. <tr>
  1033. <td class="bold">Format</td>
  1034. <td>databank.getString(result-set, index)</td>
  1035. </tr>
  1036. </table>
  1037. <table>
  1038. <tr>
  1039. <th class="command">databank.getBool</th>
  1040. <th class="desc">returns a boolean from a result set</th>
  1041. </tr>
  1042. <tr>
  1043. <td class="bold">Format</td>
  1044. <td>databank.getBool(result-set, index)</td>
  1045. </tr>
  1046. </table>
  1047. <table>
  1048. <tr>
  1049. <th class="command">databank.execute</th>
  1050. <th class="desc">returns a result-set after executing the statement (for all reading queries like SHOW, SELECT)</th>
  1051. </tr>
  1052. <tr>
  1053. <td class="bold">Format</td>
  1054. <td>databank.execute(statement)</td>
  1055. </tr>
  1056. </table>
  1057. <table>
  1058. <tr>
  1059. <th class="command">databank.workerExecute</th>
  1060. <th class="desc">executing the statement (for all writing queries like UPDATE, DELETE, CREATE, INSERT, DROP)</th>
  1061. </tr>
  1062. <tr>
  1063. <td class="bold">Format</td>
  1064. <td>databank.workerExecute(statement)</td>
  1065. </tr>
  1066. </table>
  1067. <table>
  1068. <tr>
  1069. <th class="command">databank.next</th>
  1070. <th class="desc">returns true and jumps to the next entry if the result-set has a next entry</th>
  1071. </tr>
  1072. <tr>
  1073. <td class="bold">Format</td>
  1074. <td>databank.next(result-set)</td>
  1075. </tr>
  1076. </table>
  1077. <table>
  1078. <tr>
  1079. <th class="command">databank.close</th>
  1080. <th class="desc">manual closing of a result-set</th>
  1081. </tr>
  1082. <tr>
  1083. <td class="bold">Format</td>
  1084. <td>databank.close(result-set)</td>
  1085. </tr>
  1086. </table>
  1087. </section>
  1088. <section id="Config">
  1089. <table>
  1090. <tr>
  1091. <th class="command">config.saveAsync</th>
  1092. <th class="desc">saves a config asynchronous</th>
  1093. </tr>
  1094. <tr>
  1095. <td class="bold">Format</td>
  1096. <td>config.saveAsync(config)</td>
  1097. </tr>
  1098. </table>
  1099. </section>
  1100. <section id="Gamerule">
  1101. <table>
  1102. <tr>
  1103. <th class="command">gamerule.getKey</th>
  1104. <th class="desc">returns the gamerule_key</th>
  1105. </tr>
  1106. <tr>
  1107. <td class="bold">Format</td>
  1108. <td>gamerule.getKey(gamerule_string)</td>
  1109. </tr>
  1110. </table>
  1111. <table>
  1112. <tr>
  1113. <th class="command">gamerule.getValue</th>
  1114. <th class="desc">return the gamerule_value from a world</th>
  1115. </tr>
  1116. <tr>
  1117. <td class="bold">Format</td>
  1118. <td>gamerule.getValue(world, gamerule_key)</td>
  1119. </tr>
  1120. </table>
  1121. <table>
  1122. <tr>
  1123. <th class="command">gamerule.isBool</th>
  1124. <th class="desc">returns true if the value is a boolean</th>
  1125. </tr>
  1126. <tr>
  1127. <td class="bold">Format</td>
  1128. <td>gamerule.isBool(gamerule_value)</td>
  1129. </tr>
  1130. </table>
  1131. <table>
  1132. <tr>
  1133. <th class="command">gamerule.isInt</th>
  1134. <th class="desc">returns true if the value is an integer</th>
  1135. </tr>
  1136. <tr>
  1137. <td class="bold">Format</td>
  1138. <td>gamerule.isInt(gamerule_value)</td>
  1139. </tr>
  1140. </table>
  1141. <table>
  1142. <tr>
  1143. <th class="command">gamerule.getBool</th>
  1144. <th class="desc">returns the gamerule_value as boolean</th>
  1145. </tr>
  1146. <tr>
  1147. <td class="bold">Format</td>
  1148. <td>gamerule.getBool(gamerule_value)</td>
  1149. </tr>
  1150. </table>
  1151. <table>
  1152. <tr>
  1153. <th class="command">gamerule.getInt</th>
  1154. <th class="desc">returns the gamerule_value as integer</th>
  1155. </tr>
  1156. <tr>
  1157. <td class="bold">Format</td>
  1158. <td>gamerule.getInt(gamerule_value)</td>
  1159. </tr>
  1160. </table>
  1161. <table>
  1162. <tr>
  1163. <th class="command">gamerule.setBool</th>
  1164. <th class="desc">sets a gamerule_value</th>
  1165. </tr>
  1166. <tr>
  1167. <td class="bold">Format</td>
  1168. <td>gamerule.setBool(gamerule_value, boolean)</td>
  1169. </tr>
  1170. <tr>
  1171. <td class="bold">Info</td>
  1172. <td>Gamerules in other worlds than the overworld are not persistent.</td>
  1173. </tr>
  1174. </table>
  1175. <table>
  1176. <tr>
  1177. <th class="command">gamerule.setInt</th>
  1178. <th class="desc">sets a gamerule_value</th>
  1179. </tr>
  1180. <tr>
  1181. <td class="bold">Format</td>
  1182. <td>gamerule.setInt(gamerule_value, value)</td>
  1183. </tr>
  1184. <tr>
  1185. <td class="bold">Info</td>
  1186. <td>Gamerules in other worlds than the overworld are not persistent.</td>
  1187. </tr>
  1188. </table>
  1189. </table>
  1190. </section>
  1191. <section id="General">
  1192. <table>
  1193. <tr>
  1194. <th class="command">msg</th>
  1195. <th class="desc">sends a message</th>
  1196. </tr>
  1197. <tr>
  1198. <td class="bold">Format</td>
  1199. <td>msg(receiver, string)</td>
  1200. </tr>
  1201. </table>
  1202. <table>
  1203. <tr>
  1204. <th class="command">print</th>
  1205. <th class="desc">prints a text for devs</th>
  1206. </tr>
  1207. <tr>
  1208. <td class="bold">Format</td>
  1209. <td>print(string)</td>
  1210. </tr>
  1211. </table>
  1212. <table>
  1213. <tr>
  1214. <th class="command">command</th>
  1215. <th class="desc">executes a Minecraft command from console</th>
  1216. </tr>
  1217. <tr>
  1218. <td class="bold">Format</td>
  1219. <td>command(minecraft command syntax as string without /)</td>
  1220. </tr>
  1221. </table>
  1222. <table>
  1223. <tr>
  1224. <th class="command">worker.hasWork</th>
  1225. <th class="desc">returns true if the worker is working</th>
  1226. </tr>
  1227. <tr>
  1228. <td class="bold">Format</td>
  1229. <td>worker.hasWork()</td>
  1230. </tr>
  1231. </table>
  1232. <table>
  1233. <tr>
  1234. <th class="command">isPlayer</th>
  1235. <th class="desc">returns true if the argument is a player</th>
  1236. </tr>
  1237. <tr>
  1238. <td class="bold">Format</td>
  1239. <td>isPlayer(anything)</td>
  1240. </tr>
  1241. </table>
  1242. <table>
  1243. <tr>
  1244. <th class="command">isLiving</th>
  1245. <th class="desc">returns true if the argument is a living entity</th>
  1246. </tr>
  1247. <tr>
  1248. <td class="bold">Format</td>
  1249. <td>isLiving(anything)</td>
  1250. </tr>
  1251. </table>
  1252. <table>
  1253. <tr>
  1254. <th class="command">setMOTD</th>
  1255. <th class="desc">sets the server text in the server list</th>
  1256. </tr>
  1257. <tr>
  1258. <td class="bold">Format</td>
  1259. <td>setMOTD(text)</td>
  1260. </tr>
  1261. </table>
  1262. </section>
  1263. <section id="Item">
  1264. <table>
  1265. <tr>
  1266. <th class="command">item.drop</th>
  1267. <th class="desc">drops an itemstack at a location</th>
  1268. </tr>
  1269. <tr>
  1270. <td class="bold">Format</td>
  1271. <td>item.drop(location, itemstack)</td>
  1272. </tr>
  1273. </table>
  1274. <table>
  1275. <tr>
  1276. <th class="command">item.get</th>
  1277. <th class="desc">returns an item as object</th>
  1278. </tr>
  1279. <tr>
  1280. <td class="bold">Format</td>
  1281. <td>item.get(itemstack)</td>
  1282. </tr>
  1283. </table>
  1284. <table>
  1285. <tr>
  1286. <th class="command">item.getType</th>
  1287. <th class="desc">returns the type of an itemstack</th>
  1288. </tr>
  1289. <tr>
  1290. <td class="bold">Format</td>
  1291. <td>item.getType(itemstack)</td>
  1292. </tr>
  1293. <tr>
  1294. <td class="bold">Examples</td>
  1295. <td>"minecraft:wool" / "km:artefact"</td>
  1296. </tr>
  1297. </table>
  1298. <table>
  1299. <tr>
  1300. <th class="command">item.getAmount</th>
  1301. <th class="desc">returns the amount of items in an itemstack</th>
  1302. </tr>
  1303. <tr>
  1304. <td class="bold">Format</td>
  1305. <td>item.getAmount(itemstack)</td>
  1306. </tr>
  1307. </table>
  1308. <table>
  1309. <tr>
  1310. <th class="command">item.setAmount</th>
  1311. <th class="desc">sets the amount of items for an itemstack</th>
  1312. </tr>
  1313. <tr>
  1314. <td class="bold">Format</td>
  1315. <td>item.setAmount(itemstack, value)</td>
  1316. </tr>
  1317. </table>
  1318. <table>
  1319. <tr>
  1320. <th class="command">item.getName</th>
  1321. <th class="desc">returns the name of an itemstack</th>
  1322. </tr>
  1323. <tr>
  1324. <td class="bold">Format</td>
  1325. <td>item.getName(itemstack)</td>
  1326. </tr>
  1327. </table>
  1328. <table>
  1329. <tr>
  1330. <th class="command">item.setName</th>
  1331. <th class="desc">sets the name of an itemstack</th>
  1332. </tr>
  1333. <tr>
  1334. <td class="bold">Format</td>
  1335. <td>item.setName(itemstack, name)</td>
  1336. </tr>
  1337. </table>
  1338. <table>
  1339. <tr>
  1340. <th class="command">item.getLore</th>
  1341. <th class="desc">returns a list with all lores of an itemstack</th>
  1342. </tr>
  1343. <tr>
  1344. <td class="bold">Format</td>
  1345. <td>item.getLore(ItemStack)</td>
  1346. </tr>
  1347. </table>
  1348. <table>
  1349. <tr>
  1350. <th class="command">item.setLore</th>
  1351. <th class="desc">sets the lore for an itemstack with the elements in the list</th>
  1352. </tr>
  1353. <tr>
  1354. <td class="bold">Format</td>
  1355. <td>item.setLore(itemstack, List)</td>
  1356. </tr>
  1357. </table>
  1358. <table>
  1359. <tr>
  1360. <th class="command">item.addLore</th>
  1361. <th class="desc">sets the lore for an itemstack for a specific row</th>
  1362. </tr>
  1363. <tr>
  1364. <td class="bold">Format</td>
  1365. <td>item.addLore(itemstack, lore, row)</td>
  1366. </tr>
  1367. </table>
  1368. <table>
  1369. <tr>
  1370. <th class="command">item.addAttribute</th>
  1371. <th class="desc">adds an attribute to an itemstack</th>
  1372. </tr>
  1373. <tr>
  1374. <td class="bold">Format</td>
  1375. <td>item.addAttribute(itemstack, attribute, slot, double, operation)</td>
  1376. </tr>
  1377. <tr>
  1378. <td class="bold">Info</td>
  1379. <td>
  1380. attributes: generic.max_health, generic.follow_range, generic.knockback_resistance, generic.movement_speed, generic.flying_speed, generic.attack_damage, generic.attack_damage, generic.attack_knockback, generic.attack_speed, generic.armor, generic.armor_toughness, generic.luck, zombie.spawn_reinforcements, horse.jump_strength<br>
  1381. slots: mainhand, offhand, head, chest, legs, feet<br>
  1382. operation: 0 (ADDITION), 1 (MULTIPLY_BASE), 2 (MULTIPLY_TOTAL)
  1383. </td>
  1384. </tr>
  1385. </table>
  1386. <table>
  1387. <tr>
  1388. <th class="command">item.hide</th>
  1389. <th class="desc">hides something on an itemstack and returns true on success</th>
  1390. </tr>
  1391. <tr>
  1392. <td class="bold">Format</td>
  1393. <td>item.hide(itemstack, name)</td>
  1394. </tr>
  1395. <tr>
  1396. <td class="bold">Info</td>
  1397. <td>name: "enchantments" / "attributes" / "unbreakable" / "destroys" / "placed_on" / "potion_effects"</td>
  1398. </tr>
  1399. </table>
  1400. <table>
  1401. <tr>
  1402. <th class="command">item.addPotion</th>
  1403. <th class="desc">unknown</th>
  1404. </tr>
  1405. <tr>
  1406. <td class="bold">Format</td>
  1407. <td>item.addPotion(itemstack, potion_name, duration, power)</td>
  1408. </tr>
  1409. </table>
  1410. <table>
  1411. <tr>
  1412. <th class="command">item.setCoolDown</th>
  1413. <th class="desc">sets the cooldown for an item-type</th>
  1414. </tr>
  1415. <tr>
  1416. <td class="bold">Format</td>
  1417. <td>item.setCoolDown(player, itemstack, ticks)</td>
  1418. </tr>
  1419. </table>
  1420. <table>
  1421. <tr>
  1422. <th class="command">item.clone</th>
  1423. <th class="desc">returns a copy of an itemstack</th>
  1424. </tr>
  1425. <tr>
  1426. <td class="bold">Format</td>
  1427. <td>item.clone(itemstack)</td>
  1428. </tr>
  1429. </table>
  1430. <table>
  1431. <tr>
  1432. <th class="command">item.getTag</th>
  1433. <th class="desc">returns a tag</th>
  1434. </tr>
  1435. <tr>
  1436. <td class="bold">Format</td>
  1437. <td>item.getTag(String tag_name)</td>
  1438. </tr>
  1439. </table>
  1440. <table>
  1441. <tr>
  1442. <th class="command">item.hasTag</th>
  1443. <th class="desc">returns true if an itemstack has a tag</th>
  1444. </tr>
  1445. <tr>
  1446. <td class="bold">Format</td>
  1447. <td>item.hasTag(tag, itemstack)</td>
  1448. </tr>
  1449. </table>
  1450. <table>
  1451. <tr>
  1452. <th class="command">item.hasName</th>
  1453. <th class="desc">returns true if the itemstack has a modified name</th>
  1454. </tr>
  1455. <tr>
  1456. <td class="bold">Format</td>
  1457. <td>item.hasName(itemstack)</td>
  1458. </tr>
  1459. </table>
  1460. <table>
  1461. <tr>
  1462. <th class="command">item.getFullText</th>
  1463. <th class="desc">returns the full text object</th>
  1464. </tr>
  1465. <tr>
  1466. <td class="bold">Format</td>
  1467. <td>item.getFullText(itemstack)</td>
  1468. </tr>
  1469. </table>
  1470. <table>
  1471. <tr>
  1472. <th class="command">item.isDamageable</th>
  1473. <th class="desc">returns true if the itemstack is damageable</th>
  1474. </tr>
  1475. <tr>
  1476. <td class="bold">Format</td>
  1477. <td>item.isDamageable(itemstack)</td>
  1478. </tr>
  1479. </table>
  1480. <table>
  1481. <tr>
  1482. <th class="command">item.getMaxDamage</th>
  1483. <th class="desc">returns the maximum damage the itemstack can get</th>
  1484. </tr>
  1485. <tr>
  1486. <td class="bold">Format</td>
  1487. <td>item.getMaxDamage(itemstack)</td>
  1488. </tr>
  1489. </table>
  1490. <table>
  1491. <tr>
  1492. <th class="command">item.setDamage</th>
  1493. <th class="desc">sets the damage of the itemstack</th>
  1494. </tr>
  1495. <tr>
  1496. <td class="bold">Format</td>
  1497. <td>item.setDamage(itemstack, amount)</td>
  1498. </tr>
  1499. </table>
  1500. <table>
  1501. <tr>
  1502. <th class="command">item.getMaxAmount</th>
  1503. <th class="desc">returns the maximum amount of stackable items</th>
  1504. </tr>
  1505. <tr>
  1506. <td class="bold">Format</td>
  1507. <td>item.getMaxAmount(itemstack)</td>
  1508. </tr>
  1509. </table>
  1510. <table>
  1511. <tr>
  1512. <th class="command">item.entity.get</th>
  1513. <th class="desc">returns an itemstack from an item-entity</th>
  1514. </tr>
  1515. <tr>
  1516. <td class="bold">Format</td>
  1517. <td>item.entity.get(item-entity)</td>
  1518. </tr>
  1519. </table>
  1520. <table>
  1521. <tr>
  1522. <th class="command">item.entity.set</th>
  1523. <th class="desc">sets an itemstack to an item-entity</th>
  1524. </tr>
  1525. <tr>
  1526. <td class="bold">Format</td>
  1527. <td>item.entity.set(item-entity, itemstack)</td>
  1528. </tr>
  1529. </table>
  1530. <table>
  1531. <tr>
  1532. <th class="command">item.entity.new</th>
  1533. <th class="desc">creates an item-entity from an itemstack and returns the item-entity</th>
  1534. </tr>
  1535. <tr>
  1536. <td class="bold">Format</td>
  1537. <td>item.entity.new(location, itemstack)</td>
  1538. </tr>
  1539. </table>
  1540. <table>
  1541. <tr>
  1542. <th class="command">item.entity.spawn</th>
  1543. <th class="desc">spawns an item-entity</th>
  1544. </tr>
  1545. <tr>
  1546. <td class="bold">Format</td>
  1547. <td>item.entity.spawn(entity)</td>
  1548. </tr>
  1549. </table>
  1550. <table>
  1551. <tr>
  1552. <th class="command">item.entity.setLifespan</th>
  1553. <th class="desc">sets the lifespan of an item-entity</th>
  1554. </tr>
  1555. <tr>
  1556. <td class="bold">Format</td>
  1557. <td>item.entity.setLifespan(item-entity, ticks)</td>
  1558. </tr>
  1559. </table>
  1560. </section>
  1561. <section id="Enchantment">
  1562. <table>
  1563. <tr>
  1564. <th class="command">enchantment.get</th>
  1565. <th class="desc">returns an enchantment</th>
  1566. </tr>
  1567. <tr>
  1568. <td class="bold">Format</td>
  1569. <td>enchantment.get(enchantment_string)</td>
  1570. </tr>
  1571. <tr>
  1572. <td class="bold">Arguments</td>
  1573. <td><a href="https://minecraft-de.gamepedia.com/Verzauberung#Verzauberungen" target="_blank">Minecraft Wiki Verzauberungen</a> (ID-Name verwenden)</td>
  1574. </tr>
  1575. </table>
  1576. <table>
  1577. <tr>
  1578. <th class="command">enchantment.add</th>
  1579. <th class="desc">adds an enchantment to an itemstack</th>
  1580. </tr>
  1581. <tr>
  1582. <td class="bold">Format</td>
  1583. <td>enchantment.add(enchantment, itemstack, level)</td>
  1584. </tr>
  1585. </table>
  1586. <table>
  1587. <tr>
  1588. <th class="command">enchantment.getLevel</th>
  1589. <th class="desc">returns the level of an enchantment an itemstack has</th>
  1590. </tr>
  1591. <tr>
  1592. <td class="bold">Format</td>
  1593. <td>enchantment.getLevel(enchantment, itemstack)</td>
  1594. </tr>
  1595. </table>
  1596. <table>
  1597. <tr>
  1598. <th class="command">enchantment.readFromItem</th>
  1599. <th class="desc">returns a map with all enchantments from an item with the level as value</th>
  1600. </tr>
  1601. <tr>
  1602. <td class="bold">Format</td>
  1603. <td>enchantment.readFromItem(itemstack)</td>
  1604. </tr>
  1605. </table>
  1606. <table>
  1607. <tr>
  1608. <th class="command">enchantment.writeToItem</th>
  1609. <th class="desc">transfers all enchantments from the map on the itemstack</th>
  1610. </tr>
  1611. <tr>
  1612. <td class="bold">Format</td>
  1613. <td>enchantment.writeToItem(map, itemstack)</td>
  1614. </tr>
  1615. </table>
  1616. </section>
  1617. <section id="Error">
  1618. <table>
  1619. <tr>
  1620. <th class="command">error.clear</th>
  1621. <th class="desc">clears all cached errors</th>
  1622. </tr>
  1623. <tr>
  1624. <td class="bold">Format</td>
  1625. <td>error.clear()</td>
  1626. </tr>
  1627. </table>
  1628. <table>
  1629. <tr>
  1630. <th class="command">error.getSize</th>
  1631. <th class="desc">returns the amount of all cached errors</th>
  1632. </tr>
  1633. <tr>
  1634. <td class="bold">Format</td>
  1635. <td>error.getSize()</td>
  1636. </tr>
  1637. </table>
  1638. <table>
  1639. <tr>
  1640. <th class="command">error.getIndex</th>
  1641. <th class="desc">returns the error from an index</th>
  1642. </tr>
  1643. <tr>
  1644. <td class="bold">Format</td>
  1645. <td>error.getIndex(index)</td>
  1646. </tr>
  1647. </table>
  1648. <table>
  1649. <tr>
  1650. <th class="command">error.setConsolePrint</th>
  1651. <th class="desc">true prints snuvi errors on console (not stack traces)</th>
  1652. </tr>
  1653. <tr>
  1654. <td class="bold">Format</td>
  1655. <td>error.setConsolePrint(boolean)</td>
  1656. </tr>
  1657. </table>
  1658. <table>
  1659. <tr>
  1660. <th class="command">debug.clear</th>
  1661. <th class="desc">clears all cached debug-messages</th>
  1662. </tr>
  1663. <tr>
  1664. <td class="bold">Format</td>
  1665. <td>debug.clear()</td>
  1666. </tr>
  1667. </table>
  1668. <table>
  1669. <tr>
  1670. <th class="command">debug.getSize</th>
  1671. <th class="desc">returns the amount of all cached debug-messages</th>
  1672. </tr>
  1673. <tr>
  1674. <td class="bold">Format</td>
  1675. <td>debug.getSize()</td>
  1676. </tr>
  1677. </table>
  1678. <table>
  1679. <tr>
  1680. <th class="command">debug.getIndex</th>
  1681. <th class="desc">returns the debug-message from an index</th>
  1682. </tr>
  1683. <tr>
  1684. <td class="bold">Format</td>
  1685. <td>debug.getIndex(index)</td>
  1686. </tr>
  1687. </table>
  1688. <table>
  1689. <tr>
  1690. <th class="command">debug.setConsolePrint</th>
  1691. <th class="desc">true prints snuvi debug-messages on console (not stack traces)</th>
  1692. </tr>
  1693. <tr>
  1694. <td class="bold">Format</td>
  1695. <td>debug.setConsolePrint(boolean)</td>
  1696. </tr>
  1697. </table>
  1698. </section>
  1699. <section id="Location">
  1700. <table>
  1701. <tr>
  1702. <th class="command">loc.new</th>
  1703. <th class="desc">creates a location</th>
  1704. </tr>
  1705. <tr>
  1706. <td class="bold">Format</td>
  1707. <td>loc.new(World, x, y, z)<br>loc.new(World, x, y, z, yaw, pitch)</td>
  1708. </tr>
  1709. </table>
  1710. <table>
  1711. <tr>
  1712. <th class="command">loc.getX</th>
  1713. <th class="desc">returns the x coordinate</th>
  1714. </tr>
  1715. <tr>
  1716. <td class="bold">Format</td>
  1717. <td>loc.getX(location)</td>
  1718. </tr>
  1719. </table>
  1720. <table>
  1721. <tr>
  1722. <th class="command">loc.setX</th>
  1723. <th class="desc">sets the x coordinate</th>
  1724. </tr>
  1725. <tr>
  1726. <td class="bold">Format</td>
  1727. <td>loc.setX(location, value)</td>
  1728. </tr>
  1729. </table>
  1730. <table>
  1731. <tr>
  1732. <th class="command">loc.addX</th>
  1733. <th class="desc">adds the value to the x coordinate</th>
  1734. </tr>
  1735. <tr>
  1736. <td class="bold">Format</td>
  1737. <td>loc.addX(location, value)</td>
  1738. </tr>
  1739. </table>
  1740. <table>
  1741. <tr>
  1742. <th class="command">loc.getY</th>
  1743. <th class="desc">returns the y coordinate</th>
  1744. </tr>
  1745. <tr>
  1746. <td class="bold">Format</td>
  1747. <td>loc.getY(location)</td>
  1748. </tr>
  1749. </table>
  1750. <table>
  1751. <tr>
  1752. <th class="command">loc.setY</th>
  1753. <th class="desc">sets the y coordinate</th>
  1754. </tr>
  1755. <tr>
  1756. <td class="bold">Format</td>
  1757. <td>loc.setY(location, value)</td>
  1758. </tr>
  1759. </table>
  1760. <table>
  1761. <tr>
  1762. <th class="command">loc.addY</th>
  1763. <th class="desc">adds the value to the y coordinate</th>
  1764. </tr>
  1765. <tr>
  1766. <td class="bold">Format</td>
  1767. <td>loc.addY(location, value)</td>
  1768. </tr>
  1769. </table>
  1770. <table>
  1771. <tr>
  1772. <th class="command">loc.getZ</th>
  1773. <th class="desc">returns the z coordinate</th>
  1774. </tr>
  1775. <tr>
  1776. <td class="bold">Format</td>
  1777. <td>loc.getZ(location)</td>
  1778. </tr>
  1779. </table>
  1780. <table>
  1781. <tr>
  1782. <th class="command">loc.setZ</th>
  1783. <th class="desc">sets the z coordinate</th>
  1784. </tr>
  1785. <tr>
  1786. <td class="bold">Format</td>
  1787. <td>loc.setZ(location, value)</td>
  1788. </tr>
  1789. </table>
  1790. <table>
  1791. <tr>
  1792. <th class="command">loc.addZ</th>
  1793. <th class="desc">adds the value to the z coordinate</th>
  1794. </tr>
  1795. <tr>
  1796. <td class="bold">Format</td>
  1797. <td>loc.addZ(location, value)</td>
  1798. </tr>
  1799. </table>
  1800. <table>
  1801. <tr>
  1802. <th class="command">loc.setYaw</th>
  1803. <th class="desc">sets the yaw of a location</th>
  1804. </tr>
  1805. <tr>
  1806. <td class="bold">Format</td>
  1807. <td>loc.setYaw(location, Yaw)</td>
  1808. </tr>
  1809. </table>
  1810. <table>
  1811. <tr>
  1812. <th class="command">loc.getYaw</th>
  1813. <th class="desc">returns the yaw of a location</th>
  1814. </tr>
  1815. <tr>
  1816. <td class="bold">Format</td>
  1817. <td>loc.getYaw(location)</td>
  1818. </tr>
  1819. </table>
  1820. <table>
  1821. <tr>
  1822. <th class="command">loc.setPitch</th>
  1823. <th class="desc">sets the pitch of a location</th>
  1824. </tr>
  1825. <tr>
  1826. <td class="bold">Format</td>
  1827. <td>loc.setPitch(location, Pitch)</td>
  1828. </tr>
  1829. </table>
  1830. <table>
  1831. <tr>
  1832. <th class="command">loc.getPitch</th>
  1833. <th class="desc">returns the pitch of a location</th>
  1834. </tr>
  1835. <tr>
  1836. <td class="bold">Format</td>
  1837. <td>loc.getPitch(location)</td>
  1838. </tr>
  1839. </table>
  1840. <table>
  1841. <tr>
  1842. <th class="command">loc.getWorld</th>
  1843. <th class="desc">returns the world of a location as object</th>
  1844. </tr>
  1845. <tr>
  1846. <td class="bold">Format</td>
  1847. <td>loc.getWorld(location)</td>
  1848. </tr>
  1849. </table>
  1850. <table>
  1851. <tr>
  1852. <th class="command">loc.distance</th>
  1853. <th class="desc">returns the difference between two locations</th>
  1854. </tr>
  1855. <tr>
  1856. <td class="bold">Format</td>
  1857. <td>loc.distance(location1, location2)</td>
  1858. </tr>
  1859. <tr>
  1860. <td class="bold">Info</td>
  1861. <td>there is no error if the two locations have not the same world</td>
  1862. </tr>
  1863. </table>
  1864. <table>
  1865. <tr>
  1866. <th class="command">loc.isBetween</th>
  1867. <th class="desc">returns true if the location is between two other locations</th>
  1868. </tr>
  1869. <tr>
  1870. <td class="bold">Format</td>
  1871. <td>loc.isBetween(location, location1, location2)</td>
  1872. </tr>
  1873. </table>
  1874. <table>
  1875. <tr>
  1876. <th class="command">loc.mod</th>
  1877. <th class="desc">returns a modified copy of the location</th>
  1878. </tr>
  1879. <tr>
  1880. <td class="bold">Format</td>
  1881. <td>loc.mod(location, x, y, z)</td>
  1882. </tr>
  1883. </table>
  1884. <table>
  1885. <tr>
  1886. <th class="command">loc.add</th>
  1887. <th class="desc">modifies the original location</th>
  1888. </tr>
  1889. <tr>
  1890. <td class="bold">Format</td>
  1891. <td>loc.add(location, x, y, z)</td>
  1892. </tr>
  1893. </table>
  1894. <table>
  1895. <tr>
  1896. <th class="command">loc.set</th>
  1897. <th class="desc">modifies the original location</th>
  1898. </tr>
  1899. <tr>
  1900. <td class="bold">Format</td>
  1901. <td>loc.set(location, x, y, z)</td>
  1902. </tr>
  1903. </table>
  1904. <table>
  1905. <tr>
  1906. <th class="command">loc.getCoord</th>
  1907. <th class="desc">returns information from location</th>
  1908. </tr>
  1909. <tr>
  1910. <td class="bold">Format</td>
  1911. <td>loc.getCoord(location, w/x/y/z/bx/by/bz)</td>
  1912. </tr>
  1913. <tr>
  1914. <td class="bold">Arguments</td>
  1915. <td>w as world_name_string<br>b are block coordinates</td>
  1916. </tr>
  1917. </table>
  1918. <table>
  1919. <tr>
  1920. <th class="command">loc.sort</th>
  1921. <th class="desc">sort in lowest and highest coordinates</th>
  1922. </tr>
  1923. <tr>
  1924. <td class="bold">Format</td>
  1925. <td>loc.sort(location1, location2)</td>
  1926. </tr>
  1927. </table>
  1928. <table>
  1929. <tr>
  1930. <th class="command">loc.setBlockPos</th>
  1931. <th class="desc">sets the coordinates of a location from a blockPos</th>
  1932. </tr>
  1933. <tr>
  1934. <td class="bold">Format</td>
  1935. <td>loc.setBlockPos(location, blockPos)</td>
  1936. </tr>
  1937. </table>
  1938. <table>
  1939. <tr>
  1940. <th class="command">loc.iterator</th>
  1941. <th class="desc">returns the iterator for the area</th>
  1942. </tr>
  1943. <tr>
  1944. <td class="bold">Format</td>
  1945. <td>loc.iterator(world, x1, y1, z1, x2, y2, z2)</td>
  1946. </tr>
  1947. </table>
  1948. <table>
  1949. <tr>
  1950. <th class="command">loc.trace</th>
  1951. <th class="desc">returns the traced original location or false if no block is found</th>
  1952. </tr>
  1953. <tr>
  1954. <td class="bold">Format</td>
  1955. <td>loc.trace(location, direction_x, direction_y, direction_z, steps, boolean)</td>
  1956. </tr>
  1957. <tr>
  1958. <td class="bold">Arguments</td>
  1959. <td>boolean true means the block before the last one</td>
  1960. </tr>
  1961. </table>
  1962. <table>
  1963. <tr>
  1964. <th class="command">loc.explode</th>
  1965. <th class="desc">makes an explosion at a location</th>
  1966. </tr>
  1967. <tr>
  1968. <td class="bold">Format</td>
  1969. <td>loc.explode(location, entity, radius, fire_bool, block_damage_bool)</td>
  1970. </tr>
  1971. <tr>
  1972. <td class="bold">Info</td>
  1973. <td>entity can be null</td>
  1974. </tr>
  1975. </table>
  1976. </section>
  1977. <section id="Read">
  1978. <table>
  1979. <tr>
  1980. <th class="command">read.spawnMob</th>
  1981. <th class="desc">spawns a mob and returns the entity</th>
  1982. </tr>
  1983. <tr>
  1984. <td class="bold">Format</td>
  1985. <td>read.spawnMob(location, nbt-tag)</td>
  1986. </tr>
  1987. </table>
  1988. <table>
  1989. <tr>
  1990. <th class="command">read.player</th>
  1991. <th class="desc">returns the object player</th>
  1992. </tr>
  1993. <tr>
  1994. <td class="bold">Format</td>
  1995. <td>read.player(playername)</td>
  1996. </tr>
  1997. </table>
  1998. <table>
  1999. <tr>
  2000. <th class="command">read.item</th>
  2001. <th class="desc">returns an itemstack</th>
  2002. </tr>
  2003. <tr>
  2004. <td class="bold">Format</td>
  2005. <td>
  2006. read.item(nbt-tag)<br>
  2007. read.item(item_type)<br>
  2008. read.item(item_type, item_amount)<br>
  2009. read.item(item_type, item_amount)<br>
  2010. read.item(item_type, item_amount, name)<br>
  2011. read.item(item_type, item_amount, name, lore1, lore2, ...)
  2012. </td>
  2013. </tr>
  2014. <tr>
  2015. <td class="bold">Info</td>
  2016. <td>returns null if the item does not exist</td>
  2017. </tr>
  2018. </table>
  2019. <table>
  2020. <tr>
  2021. <th class="command">read.location</th>
  2022. <th class="desc">returns a location</th>
  2023. </tr>
  2024. <tr>
  2025. <td class="bold">Format</td>
  2026. <td>read.location("location")</td>
  2027. </tr>
  2028. <tr>
  2029. <td class="bold">Arguments</td>
  2030. <td>worldname:x:y:z[:yaw:pitch]</td>
  2031. </tr>
  2032. <tr>
  2033. <td class="bold">Examples</td>
  2034. <td>read.location("gpvpnew:234:100:-341")<br>read.location("gpvpnew:234:100:-341:90:15")</td>
  2035. </tr>
  2036. </table>
  2037. <table>
  2038. <tr>
  2039. <th class="command">read.uuid</th>
  2040. <th class="desc">returns a uuid</th>
  2041. </tr>
  2042. <tr>
  2043. <td class="bold">Format</td>
  2044. <td>read.uuid("uuid")</td>
  2045. </tr>
  2046. </table>
  2047. <table>
  2048. <tr>
  2049. <th class="command">read.slot</th>
  2050. <th class="desc">returns a slot</th>
  2051. </tr>
  2052. <tr>
  2053. <td class="bold">Format</td>
  2054. <td>read.slot(slot)</td>
  2055. </tr>
  2056. <tr>
  2057. <td class="bold">Info</td>
  2058. <td>slot: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
  2059. </tr>
  2060. </table>
  2061. </section>
  2062. <section id="Text">
  2063. <table>
  2064. <tr>
  2065. <th class="command">text.item</th>
  2066. <th class="desc">returns an nbt-tag from an itemstack</th>
  2067. </tr>
  2068. <tr>
  2069. <td class="bold">Format</td>
  2070. <td>text.item(itemstack)</td>
  2071. </tr>
  2072. </table>
  2073. <table>
  2074. <tr>
  2075. <th class="command">text.location</th>
  2076. <th class="desc">returns a string from a location</th>
  2077. </tr>
  2078. <tr>
  2079. <td class="bold">Format</td>
  2080. <td>text.location(location)</td>
  2081. </tr>
  2082. </table>
  2083. <table>
  2084. <tr>
  2085. <th class="command">text.locationBlock</th>
  2086. <th class="desc">returns a string with rounded coordinates from a location</th>
  2087. </tr>
  2088. <tr>
  2089. <td class="bold">Format</td>
  2090. <td>text.locationBlock(location)</td>
  2091. </tr>
  2092. </table>
  2093. <table>
  2094. <tr>
  2095. <th class="command">text.entity</th>
  2096. <th class="desc">returns a string from a entity</th>
  2097. </tr>
  2098. <tr>
  2099. <td class="bold">Format</td>
  2100. <td>text.entity(entity)</td>
  2101. </tr>
  2102. </table>
  2103. <table>
  2104. <tr>
  2105. <th class="command">removeFormat</th>
  2106. <th class="desc">removes formatting</th>
  2107. </tr>
  2108. <tr>
  2109. <td class="bold">Format</td>
  2110. <td>removeFormat(string)</td>
  2111. </tr>
  2112. </table>
  2113. <table>
  2114. <tr>
  2115. <th class="command">text.click</th>
  2116. <th class="desc">returns a clickable text object</th>
  2117. </tr>
  2118. <tr>
  2119. <td class="bold">Format</td>
  2120. <td>text.click(show_text, execute_text)</td>
  2121. </tr>
  2122. <tr>
  2123. <td class="bold">Examples</td>
  2124. <td>
  2125. msg(player, text.click("Click me", "and i will appear in the player's text screen"));<br>
  2126. <br>
  2127. msg(player, text.click("Click me", "/wusi"));<br>
  2128. </td>
  2129. </tr>
  2130. </table>
  2131. <table>
  2132. <tr>
  2133. <th class="command">text.hover</th>
  2134. <th class="desc">returns a hoverable text object</th>
  2135. </tr>
  2136. <tr>
  2137. <td class="bold">Format</td>
  2138. <td>text.hover(show_text, execute_text)</td>
  2139. </tr>
  2140. <tr>
  2141. <td class="bold">Examples</td>
  2142. <td>
  2143. msg(player, text.hover("Move over this text", "to see this text"));<br>
  2144. <br>
  2145. msg(player, text.hover(text.click("Click or move over me", "to print text or execute a command like /wusi"), "or to show this hover_text"));<br>
  2146. </td>
  2147. </tr>
  2148. </table>
  2149. <table>
  2150. <tr>
  2151. <th class="command">text.link</th>
  2152. <th class="desc">returns a clickable message for links</th>
  2153. </tr>
  2154. <tr>
  2155. <td class="bold">Format</td>
  2156. <td>text.link(message, link)</td>
  2157. </tr>
  2158. </table>
  2159. <table>
  2160. <tr>
  2161. <th class="command">text.copyText</th>
  2162. <th class="desc">returns a clickable message to copy text from a website</th>
  2163. </tr>
  2164. <tr>
  2165. <td class="bold">Format</td>
  2166. <td>text.copyText(message, string)</td>
  2167. </tr>
  2168. </table>
  2169. <table>
  2170. <tr>
  2171. <th class="command">text.clipBoard</th>
  2172. <th class="desc">returns a clickable message to set text to the clipboard</th>
  2173. </tr>
  2174. <tr>
  2175. <td class="bold">Format</td>
  2176. <td>text.clipBoard(message, string)</td>
  2177. </tr>
  2178. </table>
  2179. <table>
  2180. <tr>
  2181. <th class="command">text.concat2</th>
  2182. <th class="desc">connects all given arguments and returns a string object</th>
  2183. </tr>
  2184. <tr>
  2185. <td class="bold">Format</td>
  2186. <td>text.concat2(arg, ...)</td>
  2187. </tr>
  2188. <tr>
  2189. <td class="bold">Info</td>
  2190. <td>Colorcodes gets lost with this.</td>
  2191. </tr>
  2192. </table>
  2193. </section>
  2194. <section id="Plot">
  2195. <table>
  2196. <tr>
  2197. <th class="command">plot.add</th>
  2198. <th class="desc">returns the created plot</th>
  2199. </tr>
  2200. <tr>
  2201. <td class="bold">Format</td>
  2202. <td>plot.add(location1, location2)</td>
  2203. </tr>
  2204. </table>
  2205. <table>
  2206. <tr>
  2207. <th class="command">plot.remove</th>
  2208. <th class="desc">removes a plot from a world</th>
  2209. </tr>
  2210. <tr>
  2211. <td class="bold">Format</td>
  2212. <td>plot.remove(plot, world)</td>
  2213. </tr>
  2214. </table>
  2215. <table>
  2216. <tr>
  2217. <th class="command">plot.getId</th>
  2218. <th class="desc">returns the plot_id</th>
  2219. </tr>
  2220. <tr>
  2221. <td class="bold">Format</td>
  2222. <td>plot.getId(plot)</td>
  2223. </tr>
  2224. </table>
  2225. <table>
  2226. <tr>
  2227. <th class="command">plot.setName</th>
  2228. <th class="desc">sets the name of a plot</th>
  2229. </tr>
  2230. <tr>
  2231. <td class="bold">Format</td>
  2232. <td>plot.setName(plot, name)</td>
  2233. </tr>
  2234. </table>
  2235. <table>
  2236. <tr>
  2237. <th class="command">plot.getName</th>
  2238. <th class="desc">returns the name of a plot</th>
  2239. </tr>
  2240. <tr>
  2241. <td class="bold">Format</td>
  2242. <td>plot.getName(plot)</td>
  2243. </tr>
  2244. </table>
  2245. <table>
  2246. <tr>
  2247. <th class="command">plot.get</th>
  2248. <th class="desc">returns a list with all plots at a location</th>
  2249. </tr>
  2250. <tr>
  2251. <td class="bold">Format</td>
  2252. <td>plot.get(location)</td>
  2253. </tr>
  2254. </table>
  2255. <table>
  2256. <tr>
  2257. <th class="command">plot.getMinX</th>
  2258. <th class="desc">returns the lowest x coordinate of a plot</th>
  2259. </tr>
  2260. <tr>
  2261. <td class="bold">Format</td>
  2262. <td>plot.getMinX(plot)</td>
  2263. </tr>
  2264. </table>
  2265. <table>
  2266. <tr>
  2267. <th class="command">plot.getMinY</th>
  2268. <th class="desc">returns the lowest y coordinate of a plot</th>
  2269. </tr>
  2270. <tr>
  2271. <td class="bold">Format</td>
  2272. <td>plot.getMinY(plot)</td>
  2273. </tr>
  2274. </table>
  2275. <table>
  2276. <tr>
  2277. <th class="command">plot.getMinZ</th>
  2278. <th class="desc">returns the lowest z coordinate of a plot</th>
  2279. </tr>
  2280. <tr>
  2281. <td class="bold">Format</td>
  2282. <td>plot.getMinZ(plot)</td>
  2283. </tr>
  2284. </table>
  2285. <table>
  2286. <tr>
  2287. <th class="command">plot.getMaxX</th>
  2288. <th class="desc">returns the lowest x coordinate of a plot</th>
  2289. </tr>
  2290. <tr>
  2291. <td class="bold">Format</td>
  2292. <td>plot.getMaxX(plot)</td>
  2293. </tr>
  2294. </table>
  2295. <table>
  2296. <tr>
  2297. <th class="command">plot.getMaxY</th>
  2298. <th class="desc">returns the lowest y coordinate of a plot</th>
  2299. </tr>
  2300. <tr>
  2301. <td class="bold">Format</td>
  2302. <td>plot.getMaxY(plot)</td>
  2303. </tr>
  2304. </table>
  2305. <table>
  2306. <tr>
  2307. <th class="command">plot.getMaxZ</th>
  2308. <th class="desc">returns the lowest z coordinate of a plot</th>
  2309. </tr>
  2310. <tr>
  2311. <td class="bold">Format</td>
  2312. <td>plot.getMaxZ(plot)</td>
  2313. </tr>
  2314. </table>
  2315. <table>
  2316. <tr>
  2317. <th class="command">plot.intersecting</th>
  2318. <th class="desc">returns a list with all intersecting plots</th>
  2319. </tr>
  2320. <tr>
  2321. <td class="bold">Format</td>
  2322. <td>plot.intersecting(world, x1, y1, z1, x2, y2, z2)</td>
  2323. </tr>
  2324. </table>
  2325. <table>
  2326. <tr>
  2327. <th class="command">plot.setFlags</th>
  2328. <th class="desc">sets all flags to the boolean</th>
  2329. </tr>
  2330. <tr>
  2331. <td class="bold">Format</td>
  2332. <td>plot.setFlags(plot, flags, boolean)</td>
  2333. </tr>
  2334. </table>
  2335. <table>
  2336. <tr>
  2337. <th class="command">plot.getFlags</th>
  2338. <th class="desc">returns all flags as double</th>
  2339. </tr>
  2340. <tr>
  2341. <td class="bold">Format</td>
  2342. <td>plot.getFlags(plot)</td>
  2343. </tr>
  2344. </table>
  2345. <table>
  2346. <tr>
  2347. <th class="command">plot.hasFlags</th>
  2348. <th class="desc">returns true if all flags existing</th>
  2349. </tr>
  2350. <tr>
  2351. <td class="bold">Format</td>
  2352. <td>plot.hasFlags(plot, flags)</td>
  2353. </tr>
  2354. </table>
  2355. <table>
  2356. <tr>
  2357. <th class="command">plot.getOwners</th>
  2358. <th class="desc">returns a list with all owners as uuid (modifying the list changes the owners)</th>
  2359. </tr>
  2360. <tr>
  2361. <td class="bold">Format</td>
  2362. <td>plot.getOwners(plot)</td>
  2363. </tr>
  2364. </table>
  2365. <table>
  2366. <tr>
  2367. <th class="command">plot.check</th>
  2368. <th class="desc">returns true if the player is owner of any plot from that location OR if any plot contains all given flags. returns empty if there is no plot</th>
  2369. </tr>
  2370. <tr>
  2371. <td class="bold">Format</td>
  2372. <td>plot.check(location, player, Int flags, Boolean empty)</td>
  2373. </tr>
  2374. <tr>
  2375. <td class="bold">Arguments</td>
  2376. <td>player can be null<br>flags: 0 if not desired<br>1 PLACE_FLAG<br>2 BREAK_FLAG<br>4 BUCKET_FLAG<br>8 HIT_AMBIENT_FLAG<br>16 BLOCK_INTERACT_FLAG<br>32 ENTITY_INTERACT_FLAG</td>
  2377. </tr>
  2378. <tr>
  2379. <td class="bold">Examples</td>
  2380. <td>
  2381. plot.check(loc, null, 1, false) ==> true if place_flag existing<br>
  2382. plot.check(loc, null, 2, false) ==> true if break_flag existing<br>
  2383. plot.check(loc, null, 3, false) ==> true if break_flag and place_flag existing<br>
  2384. plot.check(loc, player, 0, false) ==> true if player is owner<br>
  2385. plot.check(loc, player, 0, true) ==> true if player is owner or if there is no plot
  2386. </td>
  2387. </tr>
  2388. </table>
  2389. <table>
  2390. <tr>
  2391. <th class="command">plot.iterator</th>
  2392. <th class="desc">returns the iterator for the plots in a world [for a player]</th>
  2393. </tr>
  2394. <tr>
  2395. <td class="bold">Format</td>
  2396. <td>plot.iterator(world, [uuid])</td>
  2397. </tr>
  2398. </table>
  2399. </section>
  2400. <section id="Table">
  2401. <table>
  2402. <tr>
  2403. <th class="command">table.new</th>
  2404. <th class="desc">returns a table object</th>
  2405. </tr>
  2406. <tr>
  2407. <td class="bold">Format</td>
  2408. <td>table.new(color, width, width, width, ...)</td>
  2409. </tr>
  2410. </table>
  2411. <table>
  2412. <tr>
  2413. <th class="command">table.getStart</th>
  2414. <th class="desc">returns the tables head</th>
  2415. </tr>
  2416. <tr>
  2417. <td class="bold">Format</td>
  2418. <td>table.getStart(table)</td>
  2419. </tr>
  2420. </table>
  2421. <table>
  2422. <tr>
  2423. <th class="command">table.getMiddle</th>
  2424. <th class="desc">returns a tables middle</th>
  2425. </tr>
  2426. <tr>
  2427. <td class="bold">Format</td>
  2428. <td>table.getMiddle(table)</td>
  2429. </tr>
  2430. </table>
  2431. <table>
  2432. <tr>
  2433. <th class="command">table.getEnd</th>
  2434. <th class="desc">returns the tables end</th>
  2435. </tr>
  2436. <tr>
  2437. <td class="bold">Format</td>
  2438. <td>table.getEnd(table)</td>
  2439. </tr>
  2440. </table>
  2441. <table>
  2442. <tr>
  2443. <th class="command">table.get</th>
  2444. <th class="desc">returns a tables line</th>
  2445. </tr>
  2446. <tr>
  2447. <td class="bold">Format</td>
  2448. <td>table.get(table, args...)</td>
  2449. </tr>
  2450. </table>
  2451. <table>
  2452. <tr>
  2453. <th class="command">table.setSize</th>
  2454. <th class="desc">defines the pixel size of a character</th>
  2455. </tr>
  2456. <tr>
  2457. <td class="bold">Format</td>
  2458. <td>table.setSize("character", pixel_int)</td>
  2459. </tr>
  2460. </table>
  2461. </section>
  2462. <section id="Command">
  2463. <table>
  2464. <tr>
  2465. <th class="command">command.add</th>
  2466. <th class="desc">registers a custom command</th>
  2467. </tr>
  2468. <tr>
  2469. <td class="bold">Format</td>
  2470. <td>command.add(string)</td>
  2471. </tr>
  2472. </table>
  2473. <table>
  2474. <tr>
  2475. <th class="command">command.remove</th>
  2476. <th class="desc">removes a custom command</th>
  2477. </tr>
  2478. <tr>
  2479. <td class="bold">Format</td>
  2480. <td>command.remove(string)</td>
  2481. </tr>
  2482. </table>
  2483. <table>
  2484. <tr>
  2485. <th class="command">command.clear</th>
  2486. <th class="desc">removes all custom commands</th>
  2487. </tr>
  2488. <tr>
  2489. <td class="bold">Format</td>
  2490. <td>command.clear()</td>
  2491. </tr>
  2492. </table>
  2493. <table>
  2494. <tr>
  2495. <th class="command">command.exists</th>
  2496. <th class="desc">returns true if a custom command exists</th>
  2497. </tr>
  2498. <tr>
  2499. <td class="bold">Format</td>
  2500. <td>command.exists(string)</td>
  2501. </tr>
  2502. </table>
  2503. <table>
  2504. <tr>
  2505. <th class="command">command.addIgnored</th>
  2506. <th class="desc">ignores a (vanilla) command-help</th>
  2507. </tr>
  2508. <tr>
  2509. <td class="bold">Format</td>
  2510. <td>command.addIgnored(string)</td>
  2511. </tr>
  2512. </table>
  2513. <table>
  2514. <tr>
  2515. <th class="command">command.clearIgnored</th>
  2516. <th class="desc">removes all ignored command-helps</th>
  2517. </tr>
  2518. <tr>
  2519. <td class="bold">Format</td>
  2520. <td>command.clearIgnored()</td>
  2521. </tr>
  2522. </table>
  2523. <table>
  2524. <tr>
  2525. <th class="command">command.newHelp</th>
  2526. <th class="desc">returns a help-object</th>
  2527. </tr>
  2528. <tr>
  2529. <td class="bold">Format</td>
  2530. <td>command.newHelp(string, perm)</td>
  2531. </tr>
  2532. </table>
  2533. <table>
  2534. <tr>
  2535. <th class="command">command.newHelpLiteral</th>
  2536. <th class="desc">returns a help-sub-object</th>
  2537. </tr>
  2538. <tr>
  2539. <td class="bold">Format</td>
  2540. <td>command.newHelpLiteral(string, [perm])</td>
  2541. </tr>
  2542. </table>
  2543. <table>
  2544. <tr>
  2545. <th class="command">command.newHelpBool</th>
  2546. <th class="desc">returns a help-sub-object</th>
  2547. </tr>
  2548. <tr>
  2549. <td class="bold">Format</td>
  2550. <td>command.newHelpBool(string, [perm])</td>
  2551. </tr>
  2552. </table>
  2553. <table>
  2554. <tr>
  2555. <th class="command">command.newHelpDouble</th>
  2556. <th class="desc">returns a help-sub-object</th>
  2557. </tr>
  2558. <tr>
  2559. <td class="bold">Format</td>
  2560. <td>command.newHelpDouble(string, min, max, [perm])</td>
  2561. </tr>
  2562. </table>
  2563. <table>
  2564. <tr>
  2565. <th class="command">command.newHelpFloat</th>
  2566. <th class="desc">returns a help-sub-object</th>
  2567. </tr>
  2568. <tr>
  2569. <td class="bold">Format</td>
  2570. <td>command.newHelpFloat(string, min, max, [perm])</td>
  2571. </tr>
  2572. </table>
  2573. <table>
  2574. <tr>
  2575. <th class="command">command.newHelpInt</th>
  2576. <th class="desc">returns a help-sub-object</th>
  2577. </tr>
  2578. <tr>
  2579. <td class="bold">Format</td>
  2580. <td>command.newHelpInt(string, min, max, [perm])</td>
  2581. </tr>
  2582. </table>
  2583. <table>
  2584. <tr>
  2585. <th class="command">command.newHelpLong</th>
  2586. <th class="desc">returns a help-sub-object</th>
  2587. </tr>
  2588. <tr>
  2589. <td class="bold">Format</td>
  2590. <td>command.newHelpLong(string, min, max, [perm])</td>
  2591. </tr>
  2592. </table>
  2593. <table>
  2594. <tr>
  2595. <th class="command">command.newHelpString</th>
  2596. <th class="desc">returns a help-sub-object</th>
  2597. </tr>
  2598. <tr>
  2599. <td class="bold">Format</td>
  2600. <td>command.newHelpString(string, boolean, [perm])</td>
  2601. </tr>
  2602. <tr>
  2603. <td class="bold">Arguments</td>
  2604. <td>boolean true means greedy</td>
  2605. </tr>
  2606. </table>
  2607. <table>
  2608. <tr>
  2609. <th class="command">command.newHelpSpecial</th>
  2610. <th class="desc">returns a help-sub-object</th>
  2611. </tr>
  2612. <tr>
  2613. <td class="bold">Format</td>
  2614. <td>command.newHelpSpecial(type, string, [perm])</td>
  2615. </tr>
  2616. <tr>
  2617. <td class="bold">Arguments</td>
  2618. <td>type = "Item", "Block", "Potion", "Enchantment", "Player"</td>
  2619. </tr>
  2620. </table>
  2621. <table>
  2622. <tr>
  2623. <th class="command">command.addHelp</th>
  2624. <th class="desc">registers a command-help</th>
  2625. </tr>
  2626. <tr>
  2627. <td class="bold">Format</td>
  2628. <td>command.addHelp(help-object)</td>
  2629. </tr>
  2630. </table>
  2631. <table>
  2632. <tr>
  2633. <th class="command">command.addHelpChild</th>
  2634. <th class="desc">help-sub-object2 is added tp help-(sub-)object1 as a new argument</th>
  2635. </tr>
  2636. <tr>
  2637. <td class="bold">Format</td>
  2638. <td>command.addHelpChild(help-(sub-)object1, help-sub-object2)</td>
  2639. </tr>
  2640. </table>
  2641. <table>
  2642. <tr>
  2643. <th class="command">command.addHelpAlias</th>
  2644. <th class="desc">help-object1 refers to help-object2</th>
  2645. </tr>
  2646. <tr>
  2647. <td class="bold">Format</td>
  2648. <td>command.addHelpAlias(help-object1, help-object2)</td>
  2649. </tr>
  2650. </table>
  2651. <table>
  2652. <tr>
  2653. <th class="command">command.sendHelp</th>
  2654. <th class="desc">sends all registered command-helps to all players</th>
  2655. </tr>
  2656. <tr>
  2657. <td class="bold">Format</td>
  2658. <td>command.sendHelp()</td>
  2659. </tr>
  2660. </table>
  2661. <table>
  2662. <tr>
  2663. <th class="command">command.clearHelp</th>
  2664. <th class="desc">removes all registered command-helps</th>
  2665. </tr>
  2666. <tr>
  2667. <td class="bold">Format</td>
  2668. <td>command.clearHelp()</td>
  2669. </tr>
  2670. </table>
  2671. </section>
  2672. <section id="Scoreboard">
  2673. <table>
  2674. <tr>
  2675. <th class="command">sb.add</th>
  2676. <th class="desc">add text to the scoreboard</th>
  2677. </tr>
  2678. <tr>
  2679. <td class="bold">Format</td>
  2680. <td>sb.add(receiver, index, string)</td>
  2681. </tr>
  2682. <tr>
  2683. <td class="bold">Arguments</td>
  2684. <td>index as number from 1 to 99</td>
  2685. </tr>
  2686. <tr>
  2687. <td class="bold">Info</td>
  2688. <td>vanilla handling:<br>
  2689. maximum 12 rows<br>
  2690. rows with the same content are only shown once<br>
  2691. </td>
  2692. </tr>
  2693. </table>
  2694. <table>
  2695. <tr>
  2696. <th class="command">sb.remove</th>
  2697. <th class="desc">removes a row from the scoreboard</th>
  2698. </tr>
  2699. <tr>
  2700. <td class="bold">Format</td>
  2701. <td>sb.remove(receiver, index)</td>
  2702. </tr>
  2703. <tr>
  2704. <td class="bold">Arguments</td>
  2705. <td>index as number from 1 to 99</td>
  2706. </tr>
  2707. </table>
  2708. <table>
  2709. <tr>
  2710. <th class="command">sb.reset</th>
  2711. <th class="desc">removes the whole scoreboard</th>
  2712. </tr>
  2713. <tr>
  2714. <td class="bold">Format</td>
  2715. <td>sb.reset(receiver)</td>
  2716. </tr>
  2717. </table>
  2718. </section>
  2719. <section id="Display">
  2720. <table>
  2721. <tr>
  2722. <th class="command">display.add</th>
  2723. <th class="desc">add icons or text to the players display</th>
  2724. </tr>
  2725. <tr>
  2726. <td class="bold">Format</td>
  2727. <td>display.add(receiver, index, string)</td>
  2728. </tr>
  2729. <tr>
  2730. <td class="bold">Arguments</td>
  2731. <td>index as number from 1 to 99</td>
  2732. </tr>
  2733. <tr>
  2734. <td class="bold">Info</td>
  2735. <td>maximum 32 characters each row<br>
  2736. you will find all icons in the mod file .minecraft/mods/km-x.xx/assets/km/textures/gui/icons<br>
  2737. every icon has an id beginning with 1 in the left upper corner<br>
  2738. you show icons in this format: "#id-amount-" e.g. "#3-1-"<br>
  2739. fallback id is 0 (shows nothing)
  2740. </td>
  2741. </tr>
  2742. </table>
  2743. <table>
  2744. <tr>
  2745. <th class="command">display.remove</th>
  2746. <th class="desc">removes a row from the display</th>
  2747. </tr>
  2748. <tr>
  2749. <td class="bold">Format</td>
  2750. <td>display.remove(receiver, index)</td>
  2751. </tr>
  2752. <tr>
  2753. <td class="bold">Arguments</td>
  2754. <td>index as number from 1 to 99</td>
  2755. </tr>
  2756. </table>
  2757. <table>
  2758. <tr>
  2759. <th class="command">display.reset</th>
  2760. <th class="desc">removes the whole display</th>
  2761. </tr>
  2762. <tr>
  2763. <td class="bold">Format</td>
  2764. <td>display.reset(receiver)</td>
  2765. </tr>
  2766. </table>
  2767. </section>
  2768. <section id="Stacks">
  2769. <table>
  2770. <tr>
  2771. <th class="command">stacks.set</th>
  2772. <th class="desc">fills a slot of the stacks-display with an icon</th>
  2773. </tr>
  2774. <tr>
  2775. <td class="bold">Format</td>
  2776. <td>stacks.set(receiver, index, item_name)</td>
  2777. </tr>
  2778. <tr>
  2779. <td class="bold">Arguments</td>
  2780. <td>index as number from 0 to 8</td>
  2781. </tr>
  2782. </table>
  2783. <table>
  2784. <tr>
  2785. <th class="command">stacks.setActive</th>
  2786. <th class="desc">shows/removes the stacks-display</th>
  2787. </tr>
  2788. <tr>
  2789. <td class="bold">Format</td>
  2790. <td>stacks.setActive(receiver, boolean)</td>
  2791. </tr>
  2792. </table>
  2793. <table>
  2794. <tr>
  2795. <th class="command">stacks.clearIndex</th>
  2796. <th class="desc">clears a slot from the stacks-display</th>
  2797. </tr>
  2798. <tr>
  2799. <td class="bold">Format</td>
  2800. <td>stacks.clearIndex(receiver, index)</td>
  2801. </tr>
  2802. <tr>
  2803. <td class="bold">Arguments</td>
  2804. <td>index as number from 0 to 8</td>
  2805. </tr>
  2806. </table>
  2807. <table>
  2808. <tr>
  2809. <th class="command">stacks.clear</th>
  2810. <th class="desc">clears the whole stacks-display</th>
  2811. </tr>
  2812. <tr>
  2813. <td class="bold">Format</td>
  2814. <td>stacks.clear(receiver)</td>
  2815. </tr>
  2816. </table>
  2817. </section>
  2818. <section id="Script">
  2819. <table>
  2820. <tr>
  2821. <th class="command">script.start</th>
  2822. <th class="desc">connects all scripts, starts them as one script and returns the script</th>
  2823. </tr>
  2824. <tr>
  2825. <td class="bold">Format</td>
  2826. <td>script.start(scriptpath1, scriptpath2, ...)</td>
  2827. </tr>
  2828. </table>
  2829. <table>
  2830. <tr>
  2831. <th class="command">script.startNamed</th>
  2832. <th class="desc">connects all scripts, starts them as one script and returns the script</th>
  2833. </tr>
  2834. <tr>
  2835. <td class="bold">Format</td>
  2836. <td>script.startNamed(custom_name, scriptpath1, scriptpath2, ...)</td>
  2837. </tr>
  2838. <td class="bold">Info</td>
  2839. <td>named scripts can be selected with script.get by their custom_name</td>
  2840. <tr>
  2841. </tr>
  2842. </table>
  2843. <table>
  2844. <tr>
  2845. <th class="command">script.callEvent</th>
  2846. <th class="desc">calls an event</th>
  2847. </tr>
  2848. <tr>
  2849. <td class="bold">Format</td>
  2850. <td>script.callEvent(event, [script])</td>
  2851. </tr>
  2852. </table>
  2853. </section>
  2854. <section id="Head">
  2855. <table>
  2856. <tr>
  2857. <th class="command">head.add</th>
  2858. <th class="desc">shows a player's head on the screen</th>
  2859. </tr>
  2860. <tr>
  2861. <td class="bold">Format</td>
  2862. <td>head.add(receiver, id, head_player_name, x, y, width, height)</td>
  2863. </tr>
  2864. <tr>
  2865. <td class="bold">Arguments</td>
  2866. <td>
  2867. id: free selectable, non-global, per-player<br>
  2868. x/y/width/height: scale from 0 to 1<br>
  2869. </td>
  2870. </tr>
  2871. </table>
  2872. <table>
  2873. <tr>
  2874. <th class="command">head.remove</th>
  2875. <th class="desc">removes a shown head</th>
  2876. </tr>
  2877. <tr>
  2878. <td class="bold">Format</td>
  2879. <td>head.remove(receiver, id)</td>
  2880. </tr>
  2881. </table>
  2882. <table>
  2883. <tr>
  2884. <th class="command">head.reset</th>
  2885. <th class="desc">Removes all shown heads</th>
  2886. </tr>
  2887. <tr>
  2888. <td class="bold">Format</td>
  2889. <td>head.reset(receiver)</td>
  2890. </tr>
  2891. </table>
  2892. </section>
  2893. <section id="Title">
  2894. <table>
  2895. <tr>
  2896. <th class="command">title.send</th>
  2897. <th class="desc">shows a player a title (and subtitle if set)</th>
  2898. </tr>
  2899. <tr>
  2900. <td class="bold">Format</td>
  2901. <td>title.send(player, title)</td>
  2902. </tr>
  2903. </table>
  2904. <table>
  2905. <tr>
  2906. <th class="command">title.setSub</th>
  2907. <th class="desc">sets a subtitle</th>
  2908. </tr>
  2909. <tr>
  2910. <td class="bold">Format</td>
  2911. <td>title.setSub(player, subtitle)</td>
  2912. </tr>
  2913. </table>
  2914. <table>
  2915. <tr>
  2916. <th class="command">title.setTime</th>
  2917. <th class="desc">sets the times for title</th>
  2918. </tr>
  2919. <tr>
  2920. <td class="bold">Format</td>
  2921. <td>title.setTime(player, fadeIn|20, show|60, fadeOut|20)</td>
  2922. </tr>
  2923. <tr>
  2924. <td class="bold">Arguments</td>
  2925. <td>times in ticks</td>
  2926. </tr>
  2927. </table>
  2928. <table>
  2929. <tr>
  2930. <th class="command">title.reset</th>
  2931. <th class="desc">resets the times for title to default</th>
  2932. </tr>
  2933. <tr>
  2934. <td class="bold">Format</td>
  2935. <td>title.reset(player)</td>
  2936. </tr>
  2937. </table>
  2938. <table>
  2939. <tr>
  2940. <th class="command">title.clear</th>
  2941. <th class="desc">removes the shown title</th>
  2942. </tr>
  2943. <tr>
  2944. <td class="bold">Format</td>
  2945. <td>title.clear(player)</td>
  2946. </tr>
  2947. </table>
  2948. </section>
  2949. <section id="Permission">
  2950. <table>
  2951. <tr>
  2952. <th class="command">perm.clear</th>
  2953. <th class="desc">removes all permissions</th>
  2954. </tr>
  2955. <tr>
  2956. <td class="bold">Format</td>
  2957. <td>perm.clear()</td>
  2958. </tr>
  2959. </table>
  2960. <table>
  2961. <tr>
  2962. <th class="command">perm.registerGroup</th>
  2963. <th class="desc">adds a permission to a permission-group</th>
  2964. </tr>
  2965. <tr>
  2966. <td class="bold">Format</td>
  2967. <td>perm.registerGroup(id, permission)</td>
  2968. </tr>
  2969. <tr>
  2970. <td class="bold">Info</td>
  2971. <td>id 0 = default<br>id 1 = worldedit</td>
  2972. </tr>
  2973. </table>
  2974. <table>
  2975. <tr>
  2976. <th class="command">perm.registerPlayer</th>
  2977. <th class="desc">adds a permission-group to a a player</th>
  2978. </tr>
  2979. <tr>
  2980. <td class="bold">Format</td>
  2981. <td>perm.registerPlayer(uuid / string_uuid / player, id)</td>
  2982. </tr>
  2983. </table>
  2984. <table>
  2985. <tr>
  2986. <th class="command">perm.unregisterPlayer</th>
  2987. <th class="desc">removes a permission-group from a player</th>
  2988. </tr>
  2989. <tr>
  2990. <td class="bold">Format</td>
  2991. <td>perm.unregisterPlayer(uuid / string_uuid / player, id)</td>
  2992. </tr>
  2993. </table>
  2994. <table>
  2995. <tr>
  2996. <th class="command">perm.has</th>
  2997. <th class="desc">returns true if the player has the permission</th>
  2998. </tr>
  2999. <tr>
  3000. <td class="bold">Format</td>
  3001. <td>perm.has(player, permission)</td>
  3002. </tr>
  3003. </table>
  3004. </section>
  3005. <section id="Player">
  3006. <table>
  3007. <tr>
  3008. <th class="command">players.toList</th>
  3009. <th class="desc">returns a list with all players online</th>
  3010. </tr>
  3011. <tr>
  3012. <td class="bold">Format</td>
  3013. <td>players.toList()</td>
  3014. </tr>
  3015. </table>
  3016. <table>
  3017. <tr>
  3018. <th class="command">players.toWorldList</th>
  3019. <th class="desc">returns a list with all players in a world</th>
  3020. </tr>
  3021. <tr>
  3022. <td class="bold">Format</td>
  3023. <td>players.toWorldList(World)</td>
  3024. </tr>
  3025. <tr>
  3026. <td class="bold">Alias</td>
  3027. <td>world.getPlayers(World)</td>
  3028. </tr>
  3029. </table>
  3030. <table>
  3031. <tr>
  3032. <th class="command">players.near</th>
  3033. <th class="desc">returns a list with all players within a radius of a location</th>
  3034. </tr>
  3035. <tr>
  3036. <td class="bold">Format</td>
  3037. <td>players.near(location, radius)</td>
  3038. </tr>
  3039. </table>
  3040. <table>
  3041. <tr>
  3042. <th class="command">player.damageArmor</th>
  3043. <th class="desc">damages an players armor, portioned on all armor parts</th>
  3044. </tr>
  3045. <tr>
  3046. <td class="bold">Format</td>
  3047. <td>player.damageArmor(player, damage_float, damage_source)</td>
  3048. </tr>
  3049. </table>
  3050. <table>
  3051. <tr>
  3052. <th class="command">player.near</th>
  3053. <th class="desc">returns a list with all players within a radius of a player (without that player)</th>
  3054. </tr>
  3055. <tr>
  3056. <td class="bold">Format</td>
  3057. <td>player.near(player, radius)</td>
  3058. </tr>
  3059. </table>
  3060. <table>
  3061. <tr>
  3062. <th class="command">players.getAmount</th>
  3063. <th class="desc">returns the number of online players</th>
  3064. </tr>
  3065. <tr>
  3066. <td class="bold">Format</td>
  3067. <td>players.getAmount()</td>
  3068. </tr>
  3069. </table>
  3070. <table>
  3071. <tr>
  3072. <th class="command">player.getHead</th>
  3073. <th class="desc">returns a players head as an itemstack</th>
  3074. </tr>
  3075. <tr>
  3076. <td class="bold">Format</td>
  3077. <td>player.getHead(uuid, name)</td>
  3078. </tr>
  3079. <tr>
  3080. <td class="bold">Arguments</td>
  3081. <td>uuid and(!) name of the player</td>
  3082. </tr>
  3083. </table>
  3084. <table>
  3085. <tr>
  3086. <th class="command">player.getNearest</th>
  3087. <th class="desc">returns the next player to a location</th>
  3088. </tr>
  3089. <tr>
  3090. <td class="bold">Format</td>
  3091. <td>player.getNearest(location)</td>
  3092. </tr>
  3093. </table>
  3094. <table>
  3095. <tr>
  3096. <th class="command">player.setDisplayName</th>
  3097. <th class="desc">set the name over players head</th>
  3098. </tr>
  3099. <tr>
  3100. <td class="bold">Format</td>
  3101. <td>player.setDisplayName(player, display_name)</td>
  3102. </tr>
  3103. </table>
  3104. <table>
  3105. <tr>
  3106. <th class="command">player.speak (deprecated)</th>
  3107. <th class="desc">sends a message with prefix</th>
  3108. </tr>
  3109. <tr>
  3110. <td class="bold">Format</td>
  3111. <td>player.speak(receiver, präfix, text)</td>
  3112. </tr>
  3113. </table>
  3114. <table>
  3115. <tr>
  3116. <th class="command">player.action</th>
  3117. <th class="desc">shows a message in the action bar</th>
  3118. </tr>
  3119. <tr>
  3120. <td class="bold">Format</td>
  3121. <td>player.action(receiver, text)</td>
  3122. </tr>
  3123. </table>
  3124. <table>
  3125. <tr>
  3126. <th class="command">player.getTarget</th>
  3127. <th class="desc">returns the location from the block the player is looking at</th>
  3128. </tr>
  3129. <tr>
  3130. <td class="bold">Format</td>
  3131. <td>player.getTarget(player, radius|5, [blockmode|true], [fluidmode|true])</td>
  3132. </tr>
  3133. <tr>
  3134. <td class="bold">Arguments</td>
  3135. <td>blockmode: true ignores blocks without player collision<br>fluidmode: true does not ignores water</td>
  3136. </tr>
  3137. </table>
  3138. <table>
  3139. <tr>
  3140. <th class="command">player.inventoryToList</th>
  3141. <th class="desc">returns a list with the inventory of a player</th>
  3142. </tr>
  3143. <tr>
  3144. <td class="bold">Format</td>
  3145. <td>player.inventoryToList(player)</td>
  3146. </tr>
  3147. <tr>
  3148. <td class="bold">Info</td>
  3149. <td>an empty slot is null<br>changes effects the player inventory directly</td>
  3150. </tr>
  3151. </table>
  3152. <table>
  3153. <tr>
  3154. <th class="command">player.getName</th>
  3155. <th class="desc">returns the name of a player</th>
  3156. </tr>
  3157. <tr>
  3158. <td class="bold">Format</td>
  3159. <td>player.getName(uuid / string_uuid / player)</td>
  3160. </tr>
  3161. </table>
  3162. <table>
  3163. <tr>
  3164. <th class="command">player.getUuid</th>
  3165. <th class="desc">returns the uuid of a player</th>
  3166. </tr>
  3167. <tr>
  3168. <td class="bold">Format</td>
  3169. <td>player.getUuid(player / player_name)</td>
  3170. </tr>
  3171. </table>
  3172. <table>
  3173. <tr>
  3174. <th class="command">player.getUuidFromId</th>
  3175. <th class="desc">returns the uuid of a player from his id</th>
  3176. </tr>
  3177. <tr>
  3178. <td class="bold">Format</td>
  3179. <td>player.getUuidFromId(player_id)</td>
  3180. </tr>
  3181. </table>
  3182. <table>
  3183. <tr>
  3184. <th class="command">player.getNameFromId</th>
  3185. <th class="desc">returns the name of a player from his id</th>
  3186. </tr>
  3187. <tr>
  3188. <td class="bold">Format</td>
  3189. <td>player.getNameFromId(player_id)</td>
  3190. </tr>
  3191. </table>
  3192. <table>
  3193. <tr>
  3194. <th class="command">player.getId</th>
  3195. <th class="desc">returns the id of a player</th>
  3196. </tr>
  3197. <tr>
  3198. <td class="bold">Format</td>
  3199. <td>player.getId(player / uuid / string_uuid)</td>
  3200. </tr>
  3201. </table>
  3202. <table>
  3203. <tr>
  3204. <th class="command">player.get</th>
  3205. <th class="desc">returns the player</th>
  3206. </tr>
  3207. <tr>
  3208. <td class="bold">Format</td>
  3209. <td>player.get(uuid / string_uuid)</td>
  3210. </tr>
  3211. </table>
  3212. <table>
  3213. <tr>
  3214. <th class="command">player.respawn</th>
  3215. <th class="desc">awakes a player from death if the parser reaches wait() and activates the respawn events</th>
  3216. </tr>
  3217. <tr>
  3218. <td class="bold">Format</td>
  3219. <td>player.respawn(player)</td>
  3220. </tr>
  3221. </table>
  3222. <table>
  3223. <tr>
  3224. <th class="command">player.setCompass</th>
  3225. <th class="desc">set the direction for a players compass</th>
  3226. </tr>
  3227. <tr>
  3228. <td class="bold">Format</td>
  3229. <td>player.setCompass(player, location)</td>
  3230. </tr>
  3231. </table>
  3232. <table>
  3233. <tr>
  3234. <th class="command">player.setHunger</th>
  3235. <th class="desc">set the players hunger (vanilla default: 0-20)</th>
  3236. </tr>
  3237. <tr>
  3238. <td class="bold">Format</td>
  3239. <td>player.setHunger(player, number)</td>
  3240. </tr>
  3241. </table>
  3242. <table>
  3243. <tr>
  3244. <th class="command">player.getHunger</th>
  3245. <th class="desc">returns the players hunger as number</th>
  3246. </tr>
  3247. <tr>
  3248. <td class="bold">Format</td>
  3249. <td>player.getHunger(player)</td>
  3250. </tr>
  3251. </table>
  3252. <table>
  3253. <tr>
  3254. <th class="command">player.setSaturation</th>
  3255. <th class="desc">set the players saturation (vanilla default: 0-20)</th>
  3256. </tr>
  3257. <tr>
  3258. <td class="bold">Format</td>
  3259. <td>player.setSaturation(player, number)</td>
  3260. </tr>
  3261. </table>
  3262. <table>
  3263. <tr>
  3264. <th class="command">player.getSaturation</th>
  3265. <th class="desc">returns the players saturation as number</th>
  3266. </tr>
  3267. <tr>
  3268. <td class="bold">Format</td>
  3269. <td>player.getSaturation(player)</td>
  3270. </tr>
  3271. </table>
  3272. <table>
  3273. <tr>
  3274. <th class="command">player.setGamemode</th>
  3275. <th class="desc">set the gamemode for a player</th>
  3276. </tr>
  3277. <tr>
  3278. <td class="bold">Format</td>
  3279. <td>player.setGamemode(player, gamemode)</td>
  3280. </tr>
  3281. <tr>
  3282. <td class="bold">Arguments</td>
  3283. <td>gamemode as "survival" / "creative" / "adventure" / "spectator"</td>
  3284. </tr>
  3285. </table>
  3286. <table>
  3287. <tr>
  3288. <th class="command">player.isSurvival</th>
  3289. <th class="desc">returns true if the player is in gamemode survival or adventure</th>
  3290. </tr>
  3291. <tr>
  3292. <td class="bold">Format</td>
  3293. <td>player.isSurvival(player)</td>
  3294. </tr>
  3295. </table>
  3296. <table>
  3297. <tr>
  3298. <th class="command">player.isCreative</th>
  3299. <th class="desc">returns true if the player is in gamemode creative</th>
  3300. </tr>
  3301. <tr>
  3302. <td class="bold">Format</td>
  3303. <td>player.isCreative(player)</td>
  3304. </tr>
  3305. </table>
  3306. <table>
  3307. <tr>
  3308. <th class="command">player.isAdventure</th>
  3309. <th class="desc">returns true if the player is in gamemode adventure or spectator</th>
  3310. </tr>
  3311. <tr>
  3312. <td class="bold">Format</td>
  3313. <td>player.isAdventure(player)</td>
  3314. </tr>
  3315. </table>
  3316. <table>
  3317. <tr>
  3318. <th class="command">player.isSpectator</th>
  3319. <th class="desc">returns true if the player is in gamemode spectator</th>
  3320. </tr>
  3321. <tr>
  3322. <td class="bold">Format</td>
  3323. <td>player.isSpectator(player)</td>
  3324. </tr>
  3325. </table>
  3326. <table>
  3327. <tr>
  3328. <th class="command">player.hasFly</th>
  3329. <th class="desc">returns true if the player can fly</th>
  3330. </tr>
  3331. <tr>
  3332. <td class="bold">Format</td>
  3333. <td>player.hasFly(player)</td>
  3334. </tr>
  3335. </table>
  3336. <table>
  3337. <tr>
  3338. <th class="command">player.setFly</th>
  3339. <th class="desc">set true for a flying player</th>
  3340. </tr>
  3341. <tr>
  3342. <td class="bold">Format</td>
  3343. <td>player.setFly(player, boolean)</td>
  3344. </tr>
  3345. </table>
  3346. <table>
  3347. <tr>
  3348. <th class="command">player.getLastDamager</th>
  3349. <th class="desc">returns the entity which harmed the player the last time</th>
  3350. </tr>
  3351. <tr>
  3352. <td class="bold">Format</td>
  3353. <td>player.getLastDamager(player)</td>
  3354. </tr>
  3355. </table>
  3356. <table>
  3357. <tr>
  3358. <th class="command">player.dropInventory</th>
  3359. <th class="desc">drops the inventory from a player at a location</th>
  3360. </tr>
  3361. <tr>
  3362. <td class="bold">Format</td>
  3363. <td>player.dropInventory(player, location)</td>
  3364. </tr>
  3365. </table>
  3366. <table>
  3367. <tr>
  3368. <th class="command">player.getItemAmount</th>
  3369. <th class="desc">returns the amount of an item-type from a players inventory</th>
  3370. </tr>
  3371. <tr>
  3372. <td class="bold">Format</td>
  3373. <td>player.getItemAmount(player, boolean, itemstack)</td>
  3374. </tr>
  3375. <tr>
  3376. <td class="bold">Arguments</td>
  3377. <td>true means exact itemstack</td>
  3378. </tr>
  3379. </table>
  3380. <table>
  3381. <tr>
  3382. <th class="command">player.damageItem</th>
  3383. <th class="desc">damages the item in a player's hand and returns true if the item breaks</th>
  3384. </tr>
  3385. <tr>
  3386. <td class="bold">Format</td>
  3387. <td>player.damageItem(player, damage_amount)</td>
  3388. </tr>
  3389. <tr>
  3390. <td class="bold">Info</td>
  3391. <td>unbreaking (and more) is considered</td>
  3392. </tr>
  3393. </table>
  3394. <table>
  3395. <tr>
  3396. <th class="command">player.setBedSpawn</th>
  3397. <th class="desc">sets the spawn-location for a player</th>
  3398. </tr>
  3399. <tr>
  3400. <td class="bold">Format</td>
  3401. <td>
  3402. player.setBedSpawn(player, location, [yaw])<br>
  3403. player.setSpawn(player, location, [yaw])
  3404. </td>
  3405. </tr>
  3406. </table>
  3407. <table>
  3408. <tr>
  3409. <th class="command">player.getBedSpawn</th>
  3410. <th class="desc">returns the spawn-location for a player</th>
  3411. </tr>
  3412. <tr>
  3413. <td class="bold">Format</td>
  3414. <td>
  3415. player.getBedSpawn(player)<br>
  3416. player.getSpawn(player)
  3417. </td>
  3418. </tr>
  3419. </table>
  3420. <table>
  3421. <tr>
  3422. <th class="command">player.giveItem</th>
  3423. <th class="desc">gives an itemstack to a player and returns the itemstack which didn't fit in the players inventory</th>
  3424. </tr>
  3425. <tr>
  3426. <td class="bold">Format</td>
  3427. <td>player.giveItem(player, itemstack)</td>
  3428. </tr>
  3429. </table>
  3430. <table>
  3431. <tr>
  3432. <th class="command">player.removeItem</th>
  3433. <th class="desc">removes an itemstack from a player and returns the itemstack which couldn't be removed from the players inventory</th>
  3434. </tr>
  3435. <tr>
  3436. <td class="bold">Format</td>
  3437. <td>player.removeItem(player, itemstack)</td>
  3438. </tr>
  3439. </table>
  3440. <table>
  3441. <tr>
  3442. <th class="command">player.say</th>
  3443. <th class="desc">send a message to global chat, like a player has written the message by himself</th>
  3444. </tr>
  3445. <tr>
  3446. <td class="bold">Format</td>
  3447. <td>player.say(player, text)</td>
  3448. </tr>
  3449. </table>
  3450. <table>
  3451. <tr>
  3452. <th class="command">player.getIP</th>
  3453. <th class="desc">returns the ip-address of a player as string</th>
  3454. </tr>
  3455. <tr>
  3456. <td class="bold">Format</td>
  3457. <td>player.getIp(player)</td>
  3458. </tr>
  3459. </table>
  3460. <table>
  3461. <tr>
  3462. <th class="command">entity.shootProjectile</th>
  3463. <th class="desc">returns the shooten entity. A projectile is shooten into viewing direction of the player</th>
  3464. </tr>
  3465. <tr>
  3466. <td class="bold">Format</td>
  3467. <td>entity.shootProjectile(player, String entity_class, Number power, [data])</td>
  3468. </tr>
  3469. <tr>
  3470. <td class="bold">Arguments</td>
  3471. <td>
  3472. data: always null, except for arrows and potions use itemstacks<br>
  3473. <br>
  3474. entity_classes:<br>
  3475. <br>
  3476. me.km.entities.EntityItemProjectile<br>
  3477. net.minecraft.entity.projectile.SnowballEntity<br>
  3478. net.minecraft.entity.projectile.EggEntity<br>
  3479. net.minecraft.entity.item.EnderPearlEntity<br>
  3480. net.minecraft.entity.projectile.PotionEntity<br>
  3481. net.minecraft.entity.item.ExpBottleEntity<br>
  3482. net.minecraft.entity.projectile.ArrowEntity<br>
  3483. net.minecraft.entity.projectile.TippedArrowEntity<br>
  3484. net.minecraft.entity.projectile.SpectralArrowEntity<br>
  3485. net.minecraft.entity.projectile.ArrowEntity<br>
  3486. net.minecraft.entity.projectile.SmallFireballEntity<br>
  3487. net.minecraft.entity.projectile.WitherSkullEntity<br>
  3488. net.minecraft.entity.projectile.DragonFireballEntity<br>
  3489. net.minecraft.entity.projectile.FireballEntity
  3490. </td>
  3491. </tr>
  3492. </table>
  3493. <table>
  3494. <tr>
  3495. <th class="command">player.clearInventory</th>
  3496. <th class="desc">clears the inventory of a player</th>
  3497. </tr>
  3498. <tr>
  3499. <td class="bold">Format</td>
  3500. <td>player.clearInventory(player)</td>
  3501. </tr>
  3502. </table>
  3503. <table>
  3504. <tr>
  3505. <th class="command">player.openEnderchest</th>
  3506. <th class="desc">opens the enderchest from a player and shows it to a player</th>
  3507. </tr>
  3508. <tr>
  3509. <td class="bold">Format</td>
  3510. <td>player.openEnderchest(from_player, to_player)</td>
  3511. </tr>
  3512. </table>
  3513. <table>
  3514. <tr>
  3515. <th class="command">player.getInv</th>
  3516. <th class="desc">returns the (non-copy) players inventory</th>
  3517. </tr>
  3518. <tr>
  3519. <td class="bold">Format</td>
  3520. <td>player.getInv(player)</td>
  3521. </tr>
  3522. </table>
  3523. <table>
  3524. <tr>
  3525. <th class="command">player.getEnderInv</th>
  3526. <th class="desc">returns the (non-copy) players ender inventory</th>
  3527. </tr>
  3528. <tr>
  3529. <td class="bold">Format</td>
  3530. <td>player.getEnderInv(player)</td>
  3531. </tr>
  3532. </table>
  3533. <table>
  3534. <tr>
  3535. <th class="command">player.getInvSlot (deprecated)</th>
  3536. <th class="desc">returns an (non-copy) itemstack from a players inventory</th>
  3537. </tr>
  3538. <tr>
  3539. <td class="bold">Format</td>
  3540. <td>player.getInvSlot(player, slot)</td>
  3541. </tr>
  3542. </table>
  3543. <table>
  3544. <tr>
  3545. <th class="command">player.setInvSlot (deprecated)</th>
  3546. <th class="desc">set an itemstack to a players inventory</th>
  3547. </tr>
  3548. <tr>
  3549. <td class="bold">Format</td>
  3550. <td>player.setInvSlot(player, slot, itemstack)</td>
  3551. </tr>
  3552. </table>
  3553. <table>
  3554. <tr>
  3555. <th class="command">player.getEnderSlot (deprecated)</th>
  3556. <th class="desc">returns an (non-copy) itemstack from a players enderchest</th>
  3557. </tr>
  3558. <tr>
  3559. <td class="bold">Format</td>
  3560. <td>player.getEnderSlot(player, slot)</td>
  3561. </tr>
  3562. </table>
  3563. <table>
  3564. <tr>
  3565. <th class="command">player.setEnderSlot (deprecated)</th>
  3566. <th class="desc">set an itemstack to a players enderchest</th>
  3567. </tr>
  3568. <tr>
  3569. <td class="bold">Format</td>
  3570. <td>player.setEnderSlot(player, slot, itemstack)</td>
  3571. </tr>
  3572. </table>
  3573. <table>
  3574. <tr>
  3575. <th class="command">player.getTargetEntity</th>
  3576. <th class="desc">returns the targeted entity</th>
  3577. </tr>
  3578. <tr>
  3579. <td class="bold">Format</td>
  3580. <td>player.getTargetEntity(player, radius, class)</td>
  3581. </tr>
  3582. <tr>
  3583. <td class="bold">Examples</td>
  3584. <td>player.getTargetEntity(player, 4, "net.minecraft.entity.player.EntityPlayer")</td>
  3585. </tr>
  3586. </table>
  3587. <table>
  3588. <tr>
  3589. <th class="command">player.getLevel</th>
  3590. <th class="desc">returns the level of a player</th>
  3591. </tr>
  3592. <tr>
  3593. <td class="bold">Format</td>
  3594. <td>player.getLevel(player)</td>
  3595. </tr>
  3596. </table>
  3597. <table>
  3598. <tr>
  3599. <th class="command">player.setLevel</th>
  3600. <th class="desc">sets the level of a player</th>
  3601. </tr>
  3602. <tr>
  3603. <td class="bold">Format</td>
  3604. <td>player.setLevel(player, level)</td>
  3605. </tr>
  3606. </table>
  3607. <table>
  3608. <tr>
  3609. <th class="command">player.getExp</th>
  3610. <th class="desc">returns the exp of a player</th>
  3611. </tr>
  3612. <tr>
  3613. <td class="bold">Format</td>
  3614. <td>player.getExp(player)</td>
  3615. </tr>
  3616. </table>
  3617. <table>
  3618. <tr>
  3619. <th class="command">player.setExp</th>
  3620. <th class="desc">sets the exp of a player</th>
  3621. </tr>
  3622. <tr>
  3623. <td class="bold">Format</td>
  3624. <td>player.setExp(player, exp)</td>
  3625. </tr>
  3626. </table>
  3627. <table>
  3628. <tr>
  3629. <th class="command">player.addTotalExp</th>
  3630. <th class="desc">modifies the exp of a player</th>
  3631. </tr>
  3632. <tr>
  3633. <td class="bold">Format</td>
  3634. <td>player.addTotalExp(player, exp)</td>
  3635. </tr>
  3636. </table>
  3637. <table>
  3638. <tr>
  3639. <th class="command">player.hide</th>
  3640. <th class="desc">hides a player</th>
  3641. </tr>
  3642. <tr>
  3643. <td class="bold">Format</td>
  3644. <td>player.hide(player)</td>
  3645. </tr>
  3646. <tr>
  3647. <td class="bold">Info</td>
  3648. <td>bug: effects show the player</td>
  3649. </tr>
  3650. </table>
  3651. <table>
  3652. <tr>
  3653. <th class="command">player.show</th>
  3654. <th class="desc">shows a player</th>
  3655. </tr>
  3656. <tr>
  3657. <td class="bold">Format</td>
  3658. <td>player.show(player)</td>
  3659. </tr>
  3660. </table>
  3661. </section>
  3662. <section id="Inventory">
  3663. <table>
  3664. <tr>
  3665. <th class="command">inv.new</th>
  3666. <th class="desc">returns a new created custom-inventory</th>
  3667. </tr>
  3668. <tr>
  3669. <td class="bold">Format</td>
  3670. <td>inv.new(String slotdata)</td>
  3671. </tr>
  3672. <tr>
  3673. <td class="bold">Arguments</td>
  3674. <td>slotdata: 0 = no slot / 1 = normal slot / 2 = button throws inv_click event, backgroundcolor like frame / 3 = button throws inv_click event, backgroundcolor different to frame</td>
  3675. </tr>
  3676. <tr>
  3677. <td class="bold">Examples</td>
  3678. <td>inv.new("002133")</td>
  3679. </tr>
  3680. </table>
  3681. </table>
  3682. <table>
  3683. <tr>
  3684. <th class="command">inv.getSize</th>
  3685. <th class="desc">returns the size of an inventory</th>
  3686. </tr>
  3687. <tr>
  3688. <td class="bold">Format</td>
  3689. <td>inv.getSize(inventory)</td>
  3690. </tr>
  3691. <table>
  3692. <tr>
  3693. <th class="command">inv.setItem</th>
  3694. <th class="desc">sets an itemstack on a specific slot in an inventory</th>
  3695. </tr>
  3696. <tr>
  3697. <td class="bold">Format</td>
  3698. <td>inv.setItem(inventory, slotindex, itemstack)</td>
  3699. </tr>
  3700. </table>
  3701. <table>
  3702. <tr>
  3703. <th class="command">inv.getItem</th>
  3704. <th class="desc">returns an itemstack from a specific slot of an inventory</th>
  3705. </tr>
  3706. <tr>
  3707. <td class="bold">Format</td>
  3708. <td>inv.getItem(inventory, slotindex)</td>
  3709. </tr>
  3710. </table>
  3711. <table>
  3712. <tr>
  3713. <th class="command">inv.open</th>
  3714. <th class="desc">shows an custom-inventory to a player</th>
  3715. </tr>
  3716. <tr>
  3717. <td class="bold">Format</td>
  3718. <td>inv.open(inventory, player, inv_title)</td>
  3719. </tr>
  3720. </table>
  3721. <table>
  3722. <tr>
  3723. <th class="command">inv.close</th>
  3724. <th class="desc">closes an inventory from a player</th>
  3725. </tr>
  3726. <tr>
  3727. <td class="bold">Format</td>
  3728. <td>inv.close(player)</td>
  3729. </tr>
  3730. </table>
  3731. <table>
  3732. <tr>
  3733. <th class="command">inv.update</th>
  3734. <th class="desc">updates an inventory from a player</th>
  3735. </tr>
  3736. <tr>
  3737. <td class="bold">Format</td>
  3738. <td>inv.update(player)</td>
  3739. </tr>
  3740. </table>
  3741. <table>
  3742. <tr>
  3743. <th class="command">inv.loadChest</th>
  3744. <th class="desc">copies the content of a chest and put it into an inventory</th>
  3745. </tr>
  3746. <tr>
  3747. <td class="bold">Format</td>
  3748. <td>inv.loadChest(location)</td>
  3749. </tr>
  3750. </table>
  3751. <table>
  3752. <tr>
  3753. <th class="command">inv.getID</th>
  3754. <th class="desc">returns the id of an inventory</th>
  3755. </tr>
  3756. <tr>
  3757. <td class="bold">Format</td>
  3758. <td>inv.getID(inventory)</td>
  3759. </tr>
  3760. </table>
  3761. </section>
  3762. <section id="World">
  3763. <table>
  3764. <tr>
  3765. <th class="command">world.get</th>
  3766. <th class="desc">returns a world as object</th>
  3767. </tr>
  3768. <tr>
  3769. <td class="bold">Format</td>
  3770. <td>world.get(world_name_string)</td>
  3771. </tr>
  3772. </table>
  3773. <table>
  3774. <tr>
  3775. <th class="command">world.getName</th>
  3776. <th class="desc">returns the name of a world</th>
  3777. </tr>
  3778. <tr>
  3779. <td class="bold">Format</td>
  3780. <td>world.getName(World)</td>
  3781. </tr>
  3782. </table>
  3783. <table>
  3784. <tr>
  3785. <th class="command">world.setDifficulty</th>
  3786. <th class="desc">sets the difficulty of a world</th>
  3787. </tr>
  3788. <tr>
  3789. <td class="bold">Format</td>
  3790. <td>world.setDifficulty(difficulty_string)</td>
  3791. </tr>
  3792. <tr>
  3793. <td class="bold">Arguments</td>
  3794. <td>difficulty_string: PEACEFUL, EASY, NORMAL, HARD</td>
  3795. </tr>
  3796. </table>
  3797. <table>
  3798. <tr>
  3799. <th class="command">world.setSpawn</th>
  3800. <th class="desc">sets the world spawn</th>
  3801. </tr>
  3802. <tr>
  3803. <td class="bold">Format</td>
  3804. <td>world.setSpawn(World, Location, [yaw])</td>
  3805. </tr>
  3806. </table>
  3807. <table>
  3808. <tr>
  3809. <th class="command">world.getSpawn</th>
  3810. <th class="desc">returns the world spawn as location</th>
  3811. </tr>
  3812. <tr>
  3813. <td class="bold">Format</td>
  3814. <td>world.getSpawn(World)</td>
  3815. </tr>
  3816. </table>
  3817. <table>
  3818. <tr>
  3819. <th class="command">world.getAll</th>
  3820. <th class="desc">returns a list with all loaded worlds</th>
  3821. </tr>
  3822. <tr>
  3823. <td class="bold">Format</td>
  3824. <td>world.getAll()</td>
  3825. </tr>
  3826. </table>
  3827. <table>
  3828. <tr>
  3829. <th class="command">world.setTime</th>
  3830. <th class="desc">sets the time (0 - 24000) for a minecraft world</th>
  3831. </tr>
  3832. <tr>
  3833. <td class="bold">Format</td>
  3834. <td>world.setTime(World, time)</td>
  3835. </tr>
  3836. </table>
  3837. <table>
  3838. <tr>
  3839. <th class="command">world.getTime</th>
  3840. <th class="desc">returns the time (0 - 24000) of a minecraft world</th>
  3841. </tr>
  3842. <tr>
  3843. <td class="bold">Format</td>
  3844. <td>world.getTime(World)</td>
  3845. </tr>
  3846. </table>
  3847. <table>
  3848. <tr>
  3849. <th class="command">world.hasStorm</th>
  3850. <th class="desc">returns true if it is raining in the world</th>
  3851. </tr>
  3852. <tr>
  3853. <td class="bold">Format</td>
  3854. <td>world.hasStorm(World)</td>
  3855. </tr>
  3856. </table>
  3857. <table>
  3858. <tr>
  3859. <th class="command">world.clearWeather</th>
  3860. <th class="desc">clears the weather in a world</th>
  3861. </tr>
  3862. <tr>
  3863. <td class="bold">Format</td>
  3864. <td>world.clearWeather(World, time)</td>
  3865. </tr>
  3866. <tr>
  3867. <td class="bold">Info</td>
  3868. <td>effect of time unknown</td>
  3869. </tr>
  3870. </table>
  3871. <table>
  3872. <tr>
  3873. <th class="command">world.setRain</th>
  3874. <th class="desc">sets the weather in a world to rain</th>
  3875. </tr>
  3876. <tr>
  3877. <td class="bold">Format</td>
  3878. <td>world.setRain(World, time)</td>
  3879. </tr>
  3880. <tr>
  3881. <td class="bold">Info</td>
  3882. <td>effect of time unknown</td>
  3883. </tr>
  3884. </table>
  3885. <table>
  3886. <tr>
  3887. <th class="command">world.setThunder</th>
  3888. <th class="desc">sets the weather in a world to thunder</th>
  3889. </tr>
  3890. <tr>
  3891. <td class="bold">Format</td>
  3892. <td>world.setThunder(World, time)</td>
  3893. </tr>
  3894. <tr>
  3895. <td class="bold">Info</td>
  3896. <td>effect of time unknown</td>
  3897. </tr>
  3898. </table>
  3899. <table>
  3900. <tr>
  3901. <th class="command">world.getEntities</th>
  3902. <th class="desc">returns a list with all entities from a world</th>
  3903. </tr>
  3904. <tr>
  3905. <td class="bold">Format</td>
  3906. <td>world.getEntities(world)</td>
  3907. </tr>
  3908. </table>
  3909. </section>
  3910. <section id="Entity">
  3911. <table>
  3912. <tr>
  3913. <th class="command">entity.getType</th>
  3914. <th class="desc">returns the type of an entity</th>
  3915. </tr>
  3916. <tr>
  3917. <td class="bold">Format</td>
  3918. <td>entity.getType(entity)</td>
  3919. </tr>
  3920. </table>
  3921. <table>
  3922. <tr>
  3923. <th class="command">entity.setName</th>
  3924. <th class="desc">sets the name of an entity, true for an always visible name</th>
  3925. </tr>
  3926. <tr>
  3927. <td class="bold">Format</td>
  3928. <td>entity.setName(entity, name, nameVisibility|false)</td>
  3929. </tr>
  3930. </table>
  3931. <table>
  3932. <tr>
  3933. <th class="command">entity.getName</th>
  3934. <th class="desc">returns the name of an entity</th>
  3935. </tr>
  3936. <tr>
  3937. <td class="bold">Format</td>
  3938. <td>entity.getName(entity)</td>
  3939. </tr>
  3940. </table>
  3941. <table>
  3942. <tr>
  3943. <th class="command">entity.getLocation</th>
  3944. <th class="desc">returns the location of an entity</th>
  3945. </tr>
  3946. <tr>
  3947. <td class="bold">Format</td>
  3948. <td>entity.getLocation(entity / player)</td>
  3949. </tr>
  3950. </table>
  3951. <table>
  3952. <tr>
  3953. <th class="command">entity.setHealth</th>
  3954. <th class="desc">sets the health points for an entity</th>
  3955. </tr>
  3956. <tr>
  3957. <td class="bold">Format</td>
  3958. <td>entity.setHealth(entity / player, amount)</td>
  3959. </tr>
  3960. </table>
  3961. <table>
  3962. <tr>
  3963. <th class="command">entity.getHealth</th>
  3964. <th class="desc">returns the health points from an entity</th>
  3965. </tr>
  3966. <tr>
  3967. <td class="bold">Format</td>
  3968. <td>entity.getHealth(entity / player)</td>
  3969. </tr>
  3970. <table>
  3971. <tr>
  3972. <th class="command">entity.teleport</th>
  3973. <th class="desc">teleports an entity</th>
  3974. </tr>
  3975. <tr>
  3976. <td class="bold">Format</td>
  3977. <td>entity.teleport(entity / player, location)</td>
  3978. </tr>
  3979. </table>
  3980. <table>
  3981. <tr>
  3982. <th class="command">entity.setInvulnerable</th>
  3983. <th class="desc">sets an entity (in)vulverable</th>
  3984. </tr>
  3985. <tr>
  3986. <td class="bold">Format</td>
  3987. <td>entity.setInvulnerable(entity / player, boolean)</td>
  3988. </tr>
  3989. </table>
  3990. <table>
  3991. <tr>
  3992. <th class="command">entity.throw</th>
  3993. <th class="desc">throws an entity in relative direction to the entity</th>
  3994. </tr>
  3995. <tr>
  3996. <td class="bold">Format</td>
  3997. <td>entity.throw(entity / player, x, y, z)</td>
  3998. </tr>
  3999. <tr>
  4000. <td class="bold">Info</td>
  4001. <td>x/y/z is claimed in the interval from -3.9 to 3.9 by minecraft</td>
  4002. </tr>
  4003. </table>
  4004. <table>
  4005. <tr>
  4006. <th class="command">entity.setInvisible</th>
  4007. <th class="desc">sets an entity (in)visible</th>
  4008. </tr>
  4009. <tr>
  4010. <td class="bold">Format</td>
  4011. <td>entity.setInvisible(entity / player, boolean)</td>
  4012. </tr>
  4013. </table>
  4014. <table>
  4015. <tr>
  4016. <th class="command">entity.setEquip</th>
  4017. <th class="desc">set the equipment of an entity</th>
  4018. </tr>
  4019. <tr>
  4020. <td class="bold">Format</td>
  4021. <td>entity.setEquip(entity / player, bodypart, itemstack)</td>
  4022. </tr>
  4023. <tr>
  4024. <td class="bold">Info</td>
  4025. <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
  4026. </tr>
  4027. </table>
  4028. <table>
  4029. <tr>
  4030. <th class="command">entity.getEquip</th>
  4031. <th class="desc">returns the equipment of an entity</th>
  4032. </tr>
  4033. <tr>
  4034. <td class="bold">Format</td>
  4035. <td>entity.getEquip(entity / player, bodypart)</td>
  4036. </tr>
  4037. <tr>
  4038. <td class="bold">Arguments</td>
  4039. <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
  4040. </tr>
  4041. </table>
  4042. <table>
  4043. <tr>
  4044. <th class="command">entity.clearEffects</th>
  4045. <th class="desc">remove all effects from an entity</th>
  4046. </tr>
  4047. <tr>
  4048. <td class="bold">Format</td>
  4049. <td>entity.clearEffects(entity)</td>
  4050. </tr>
  4051. </table>
  4052. <table>
  4053. <tr>
  4054. <th class="command">entity.remove</th>
  4055. <th class="desc">removes an entity</th>
  4056. </tr>
  4057. <tr>
  4058. <td class="bold">Format</td>
  4059. <td>entity.remove(entity)</td>
  4060. </tr>
  4061. </table>
  4062. <table>
  4063. <tr>
  4064. <th class="command">entity.removeAll</th>
  4065. <th class="desc">remove specific entities from an area</th>
  4066. </tr>
  4067. <tr>
  4068. <td class="bold">Format</td>
  4069. <td>entity.removeAll(entity_class, location, radius)</td>
  4070. </tr>
  4071. <tr>
  4072. <td class="bold">Info</td>
  4073. <td>not all entity_classes are allowed (filtered and blocked)</td>
  4074. </tr>
  4075. <tr>
  4076. <td class="bold">Examples</td>
  4077. <td>entity.removeAll("net.minecraft.entity.passive.CowEntity", location, radius)</td>
  4078. </tr>
  4079. </table>
  4080. <table>
  4081. <tr>
  4082. <th class="command">entity.setSilent</th>
  4083. <th class="desc">true sets an entity silent</th>
  4084. </tr>
  4085. <tr>
  4086. <td class="bold">Format</td>
  4087. <td>entity.setSilent(entity, boolean)</td>
  4088. </tr>
  4089. </table>
  4090. <table>
  4091. <tr>
  4092. <th class="command">entity.mount</th>
  4093. <th class="desc">let an entity ride another entity (for any living entities)</th>
  4094. </tr>
  4095. <tr>
  4096. <td class="bold">Format</td>
  4097. <td>entity.mount(entity, horse_entity)</td>
  4098. </tr>
  4099. </table>
  4100. <table>
  4101. <tr>
  4102. <th class="command">entity.unmount</th>
  4103. <th class="desc">unmounts the rider</th>
  4104. </tr>
  4105. <tr>
  4106. <td class="bold">Format</td>
  4107. <td>entity.unmount(entity)</td>
  4108. </tr>
  4109. </table>
  4110. <table>
  4111. <tr>
  4112. <th class="command">entity.isWet</th>
  4113. <th class="desc">returns true if an entity is wet</th>
  4114. </tr>
  4115. <tr>
  4116. <td class="bold">Format</td>
  4117. <td>entity.isWet(entity)</td>
  4118. </tr>
  4119. </table>
  4120. <table>
  4121. <tr>
  4122. <th class="command">entity.isBlocking</th>
  4123. <th class="desc">returns true if an entity is blocking (e.g. activated shield)</th>
  4124. </tr>
  4125. <tr>
  4126. <td class="bold">Format</td>
  4127. <td>entity.isBlocking(entity)</td>
  4128. </tr>
  4129. </table>
  4130. <table>
  4131. <tr>
  4132. <th class="command">entity.isBurning</th>
  4133. <th class="desc">returns true if an entity burns</th>
  4134. </tr>
  4135. <tr>
  4136. <td class="bold">Format</td>
  4137. <td>entity.isBurning(entity)</td>
  4138. </tr>
  4139. </table>
  4140. <table>
  4141. <tr>
  4142. <th class="command">entity.setBurning</th>
  4143. <th class="desc">sets an entity on fire</th>
  4144. </tr>
  4145. <tr>
  4146. <td class="bold">Format</td>
  4147. <td>entity.setBurning(entity, seconds)</td>
  4148. </tr>
  4149. <tr>
  4150. <td class="bold">Info</td>
  4151. <td>0 seconds extinguish the entity</td>
  4152. </tr>
  4153. </table>
  4154. <table>
  4155. <tr>
  4156. <th class="command">entity.setNoPickup</th>
  4157. <th class="desc">this arrow-entity cannot be picked up</th>
  4158. </tr>
  4159. <tr>
  4160. <td class="bold">Format</td>
  4161. <td>entity.setNoPickup(arrow-entity)</td>
  4162. </tr>
  4163. </table>
  4164. <table>
  4165. <tr>
  4166. <th class="command">entity.get</th>
  4167. <th class="desc">returns the next entity to a location</th>
  4168. </tr>
  4169. <tr>
  4170. <td class="bold">Format</td>
  4171. <td>entity.get(location, radius, entity_class)</td>
  4172. </tr>
  4173. <tr>
  4174. <td class="bold">Examples</td>
  4175. <td>entity.get(location, radius, "net.minecraft.entity.passive.CowEntity")</td>
  4176. </tr>
  4177. </table>
  4178. <table>
  4179. <tr>
  4180. <th class="command">entity.getItemFromFrame</th>
  4181. <th class="desc">returns the itemstack of an itemframe</th>
  4182. </tr>
  4183. <tr>
  4184. <td class="bold">Format</td>
  4185. <td>entity.getItemFromFrame(itemframe-entity)</td>
  4186. </tr>
  4187. </table>
  4188. <table>
  4189. <tr>
  4190. <th class="command">entity.spawnItemFrame</th>
  4191. <th class="desc">sets an itemframe with an itemstack</th>
  4192. </tr>
  4193. <tr>
  4194. <td class="bold">Format</td>
  4195. <td>entity.spawnItemFrame(location, direction, itemstack)</td>
  4196. </tr>
  4197. <tr>
  4198. <td class="bold">Arguments</td>
  4199. <td>direction "north" / "east" / "south" / "west"</td>
  4200. </tr>
  4201. </table>
  4202. <table>
  4203. <tr>
  4204. <th class="command">entity.spawn</th>
  4205. <th class="desc">spawns an entity and returns the entity</th>
  4206. </tr>
  4207. <tr>
  4208. <td class="bold">Format</td>
  4209. <td>entity.spawn(type, location, [daten])</td>
  4210. </tr>
  4211. </table>
  4212. <table>
  4213. <tr>
  4214. <th class="command">entity.heal</th>
  4215. <th class="desc">heals an entity</th>
  4216. </tr>
  4217. <tr>
  4218. <td class="bold">Format</td>
  4219. <td>entity.heal(entity, heal_amount)</td>
  4220. </tr>
  4221. <tr>
  4222. <td class="bold">Info</td>
  4223. <td>triggers events on the next server tick</td>
  4224. </tr>
  4225. </table>
  4226. <table>
  4227. <tr>
  4228. <th class="command">entity.damage</th>
  4229. <th class="desc">damages an entity</th>
  4230. </tr>
  4231. <tr>
  4232. <td class="bold">Format</td>
  4233. <td>entity.damage(entity, damage_amount, [damagesource])</td>
  4234. </tr>
  4235. <tr>
  4236. <td class="bold">Info</td>
  4237. <td>triggers events on the next server tick</td>
  4238. </tr>
  4239. </table>
  4240. <table>
  4241. <tr>
  4242. <th class="command">entity.getEnchantmentModifier</th>
  4243. <th class="desc">returns the summarized enchantment modificator of the armor for the damagesource</th>
  4244. </tr>
  4245. <tr>
  4246. <td class="bold">Format</td>
  4247. <td>entity.getEnchantmentModifier(entity, damagesource)</td>
  4248. </tr>
  4249. </table>
  4250. <table>
  4251. <tr>
  4252. <th class="command">entity.setGravity</th>
  4253. <th class="desc">toggles the gravity of an entity</th>
  4254. </tr>
  4255. <tr>
  4256. <td class="bold">Format</td>
  4257. <td>entity.setGravity(entity, boolean)</td>
  4258. </tr>
  4259. <table>
  4260. <tr>
  4261. <th class="command">entity.setPickupDelay</th>
  4262. <th class="desc">unknown</th>
  4263. </tr>
  4264. <tr>
  4265. <td class="bold">Format</td>
  4266. <td>entity.setPickupDelay(item-entity, ticks)</td>
  4267. </tr>
  4268. </table>
  4269. <table>
  4270. <tr>
  4271. <th class="command">entity.setGrowingAge</th>
  4272. <th class="desc">sets the growing age of an entity</th>
  4273. </tr>
  4274. <tr>
  4275. <td class="bold">Format</td>
  4276. <td>entity.setGrowingAge(entity, age_int)</td>
  4277. </tr>
  4278. </table>
  4279. <table>
  4280. <tr>
  4281. <th class="command">entity.getEffectAmplifier</th>
  4282. <th class="desc">returns the amplifier (effect level), 0 if not existing</th>
  4283. </tr>
  4284. <tr>
  4285. <td class="bold">Format</td>
  4286. <td>entity.hasEffect(entity / player, effect)</td>
  4287. </tr>
  4288. <tr>
  4289. <td class="bold">Arguments</td>
  4290. <td>String <a href="https://minecraft-de.gamepedia.com/Statuseffekt" target="_blank">effect</a></td>
  4291. </tr>
  4292. </table>
  4293. <table>
  4294. <tr>
  4295. <th class="command">entity.addEffect</th>
  4296. <th class="desc">adds an effect to an entity</th>
  4297. </tr>
  4298. <tr>
  4299. <td class="bold">Format</td>
  4300. <td>entity.addEffect(entity / player, effect, ticks, amplifier, [particle|true])</td>
  4301. </tr>
  4302. <tr>
  4303. <td class="bold">Arguments</td>
  4304. <td>String <a href="https://minecraft-de.gamepedia.com/Statuseffekt" target="_blank">effect</a> / number ticks (infinite: 32760) / number amplifier (1 means potion-level 1)</td>
  4305. </tr>
  4306. </table>
  4307. <table>
  4308. <tr>
  4309. <th class="command">entity.getPotionType</th>
  4310. <th class="desc">returns the type of a potion</th>
  4311. </tr>
  4312. <tr>
  4313. <td class="bold">Format</td>
  4314. <td>entity.getPotionType(potion-entity)</td>
  4315. </tr>
  4316. </table>
  4317. <table>
  4318. <tr>
  4319. <th class="command">entity.near</th>
  4320. <th class="desc">returns a list with all entities within a location / a radius of an entity</th>
  4321. </tr>
  4322. <tr>
  4323. <td class="bold">Format</td>
  4324. <td>entity.near(location / entity, radius)</td>
  4325. </tr>
  4326. </table>
  4327. <table>
  4328. <tr>
  4329. <th class="command">entity.fromSource</th>
  4330. <th class="desc">returns the entity from a damagesource</th>
  4331. </tr>
  4332. <tr>
  4333. <td class="bold">Format</td>
  4334. <td>entity.fromSource(damagesource)</td>
  4335. </tr>
  4336. </table>
  4337. <table>
  4338. <tr>
  4339. <th class="command">entity.getLook</th>
  4340. <th class="desc">returns an array with vectors</th>
  4341. </tr>
  4342. <tr>
  4343. <td class="bold">Format</td>
  4344. <td>entity.getLook(entity / player)</td>
  4345. </tr>
  4346. <tr>
  4347. <td class="bold">Examples</td>
  4348. <td>array[0] = x<br>array[1] = y<br>array[2] = z</td>
  4349. </tr>
  4350. </table>
  4351. <table>
  4352. <tr>
  4353. <th class="command">entity.getMotion</th>
  4354. <th class="desc">returns an array with vectors</th>
  4355. </tr>
  4356. <tr>
  4357. <td class="bold">Format</td>
  4358. <td>entity.getMotion(entity)</td>
  4359. </tr>
  4360. </table>
  4361. <table>
  4362. <tr>
  4363. <th class="command">creeper.explode</th>
  4364. <th class="desc">let a creeper explode</th>
  4365. </tr>
  4366. <tr>
  4367. <td class="bold">Format</td>
  4368. <td>creeper.explode(entity)</td>
  4369. </tr>
  4370. </table>
  4371. <table>
  4372. <tr>
  4373. <th class="command">sheep.isSheared</th>
  4374. <th class="desc">returns true if a sheep is sheared</th>
  4375. </tr>
  4376. <tr>
  4377. <td class="bold">Format</td>
  4378. <td>sheep.isSheared(entity)</td>
  4379. </tr>
  4380. </table>
  4381. <table>
  4382. <tr>
  4383. <th class="command">sheep.getColor(entity)</th>
  4384. <th class="desc">returns the color of a sheep</th>
  4385. </tr>
  4386. <tr>
  4387. <td class="bold">Format</td>
  4388. <td>sheep.getColor(entity)</td>
  4389. </tr>
  4390. </table>
  4391. <table>
  4392. <tr>
  4393. <th class="command">pet.isTamed</th>
  4394. <th class="desc">returns true if a pet is tamed</th>
  4395. </tr>
  4396. <tr>
  4397. <td class="bold">Format</td>
  4398. <td>pet.isTamed(tamable_entity)</td>
  4399. </tr>
  4400. </table>
  4401. <table>
  4402. <tr>
  4403. <th class="command">pet.setTamed</th>
  4404. <th class="desc">set tame state for a tamable entity</th>
  4405. </tr>
  4406. <tr>
  4407. <td class="bold">Format</td>
  4408. <td>
  4409. pet.setTamed(tamable_entity, true, [owner])<br>
  4410. pet.setTamed(tamable_entity, false)
  4411. </td>
  4412. </tr>
  4413. </table>
  4414. <table>
  4415. <tr>
  4416. <th class="command">pet.getOwner</th>
  4417. <th class="desc">returns if a pet is tamed</th>
  4418. </tr>
  4419. <tr>
  4420. <td class="bold">Format</td>
  4421. <td>pet.getOwner(tamable_entity)</td>
  4422. </tr>
  4423. </table>
  4424. </section>
  4425. <section id="Living">
  4426. <table>
  4427. <tr>
  4428. <th class="command">living.near</th>
  4429. <th class="desc">returns a list with all living entities within a location / a radius of an entity</th>
  4430. </tr>
  4431. <tr>
  4432. <td class="bold">Format</td>
  4433. <td>living.near(location / entity, radius)</td>
  4434. </tr>
  4435. </table>
  4436. <table>
  4437. <tr>
  4438. <th class="command">living.removeAi</th>
  4439. <th class="desc">removes the AI of an entity</th>
  4440. </tr>
  4441. <tr>
  4442. <td class="bold">Format</td>
  4443. <td>living.removeAi(living_entity)</td>
  4444. </tr>
  4445. </table>
  4446. <table>
  4447. <tr>
  4448. <th class="command"></th>
  4449. <th class="desc">commands for living properties</th>
  4450. </tr>
  4451. <tr>
  4452. <td class="bold">Format</td>
  4453. <td>
  4454. living.get...(living_entity)<br>
  4455. living.getBase...(living_entity)<br>
  4456. living.set..(living_entity, value)<br>
  4457. living.setPersistent...(living_entity, value)
  4458. </td>
  4459. </tr>
  4460. <tr>
  4461. <td class="bold">Properties</td>
  4462. <td>
  4463. ...maxHealth<br>
  4464. ...AttackKnockback<br>
  4465. ...AttackDamage<br>
  4466. ...AttackSpeed<br>
  4467. ...FollowRange<br>
  4468. ...Luck<br>
  4469. ...Armor<br>
  4470. ...ArmorThoughness<br>
  4471. ...MovementSpeed<br>
  4472. ...FlyingSpeed<br>
  4473. ...KnockbackResistance
  4474. </td>
  4475. </tr>
  4476. </table>
  4477. </section>
  4478. <section id="Particle">
  4479. <table>
  4480. <tr>
  4481. <th class="command">particle.get</th>
  4482. <th class="desc">returns particle data</th>
  4483. </tr>
  4484. <tr>
  4485. <td class="bold">Format</td>
  4486. <td>particle.get(name, [data])</td>
  4487. </tr>
  4488. <tr>
  4489. <td class="bold">Arguments</td>
  4490. <td>block particle: data = block_name<br>dust particle: data = float red, float green, float blue, float alpha<br>item particle: data = item_name</td>
  4491. </tr>
  4492. </table>
  4493. <table>
  4494. <tr>
  4495. <th class="command">particle.getAll</th>
  4496. <th class="desc">returns a list with all particles</th>
  4497. </tr>
  4498. <tr>
  4499. <td class="bold">Format</td>
  4500. <td>particle.getAll()</td>
  4501. </tr>
  4502. </table>
  4503. <table>
  4504. <tr>
  4505. <th class="command">particle.spawn</th>
  4506. <th class="desc">spawns particle</th>
  4507. </tr>
  4508. <tr>
  4509. <td class="bold">Format</td>
  4510. <td>particle.spawn(location, particle_data, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
  4511. </tr>
  4512. </table>
  4513. <table>
  4514. <tr>
  4515. <th class="command">particle.spawnPlayer</th>
  4516. <th class="desc">spawns particle</th>
  4517. </tr>
  4518. <tr>
  4519. <td class="bold">Format</td>
  4520. <td>particle.spawnPlayer(location, particle_data, player, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
  4521. </tr>
  4522. </table>
  4523. <table>
  4524. <tr>
  4525. <th class="command">particle.spawnCircle</th>
  4526. <th class="desc">spawns particle</th>
  4527. </tr>
  4528. <tr>
  4529. <td class="bold">Format</td>
  4530. <td>particle.spawnCircle(location, particle_data, instances, radius, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])<br>particle.spawnCircle(location, particle_data, instances, stepX, stepY, stepZ, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
  4531. </tr>
  4532. </table>
  4533. </section>
  4534. <section id="Sound">
  4535. <table>
  4536. <tr>
  4537. <th class="command">sound.get</th>
  4538. <th class="desc">returns a sound</th>
  4539. </tr>
  4540. <tr>
  4541. <td class="bold">Format</td>
  4542. <td>sound.get(String sound_name)</td>
  4543. </tr>
  4544. </table>
  4545. <table>
  4546. <tr>
  4547. <th class="command">sound.getCategory</th>
  4548. <th class="desc">returns a sound category</th>
  4549. </tr>
  4550. <tr>
  4551. <td class="bold">Format</td>
  4552. <td>sound.getCategory(String sound_category|"master")</td>
  4553. </tr>
  4554. </table>
  4555. <table>
  4556. <tr>
  4557. <th class="command">sound.spawn</th>
  4558. <th class="desc">plays a sound</th>
  4559. </tr>
  4560. <tr>
  4561. <td class="bold">Format</td>
  4562. <td>sound.spawn(location, sound, soundCategory, [volume|1.0], [pitch|random von 0.9 - 1.0])</td>
  4563. </tr>
  4564. </table>
  4565. <table>
  4566. <tr>
  4567. <th class="command">sound.spawnForPlayer</th>
  4568. <th class="desc">plays a sound for a player (not hearable for that one player!)</th>
  4569. </tr>
  4570. <tr>
  4571. <td class="bold">Format</td>
  4572. <td>sound.spawnForPlayer(player, sound, soundCategory, [volume|1.0], [pitch|random von 0.9 - 1.0])</td>
  4573. </tr>
  4574. </table>
  4575. </section>
  4576. <section id="Human">
  4577. <table>
  4578. <tr>
  4579. <th class="command">human.spawn</th>
  4580. <th class="desc">returns the new created human</th>
  4581. </tr>
  4582. <tr>
  4583. <td class="bold">Format</td>
  4584. <td>human.spawn(location)</td>
  4585. </tr>
  4586. </table>
  4587. <table>
  4588. <tr>
  4589. <th class="command">human.setSkin</th>
  4590. <th class="desc">sets the skin of a human</th>
  4591. </tr>
  4592. <tr>
  4593. <td class="bold">Format</td>
  4594. <td>human.setSkin(human, file_name OR uuid)</td>
  4595. </tr>
  4596. <tr>
  4597. <td class="bold">Info</td>
  4598. <td>file_name is for skins saved local on our own server. if file_name not found, global skin are searched via uuid</td>
  4599. </tr>
  4600. </table>
  4601. <table>
  4602. <tr>
  4603. <th class="command">human.setSlim</th>
  4604. <th class="desc">true makes the human slim (slim is for alex skins)</th>
  4605. </tr>
  4606. <tr>
  4607. <td class="bold">Format</td>
  4608. <td>human.setSlim(human, boolean)</td>
  4609. </tr>
  4610. </table>
  4611. <table>
  4612. <tr>
  4613. <th class="command">human.setScale</th>
  4614. <th class="desc">sets the size of the human</th>
  4615. </tr>
  4616. <tr>
  4617. <td class="bold">Format</td>
  4618. <td>human.setScale(human, value)</td>
  4619. </tr>
  4620. </table>
  4621. <table>
  4622. <tr>
  4623. <th class="command">human.setStatue</th>
  4624. <th class="desc">toggles between human and statue</th>
  4625. </tr>
  4626. <tr>
  4627. <td class="bold">Format</td>
  4628. <td>human.setStatue(human, bool)</td>
  4629. </tr>
  4630. </table>
  4631. </section>
  4632. <section id="Damage">
  4633. <table>
  4634. <tr>
  4635. <th class="command">damage.get</th>
  4636. <th class="desc">returns a damagesource</th>
  4637. </tr>
  4638. <tr>
  4639. <td class="bold">Format</td>
  4640. <td>
  4641. damage.get(String damage_name)<br><br>
  4642. damage.get("thorns", entity)<br><br>
  4643. damage.get(entity, creative, armor, absolute, explosion, fire, magic, projectile)
  4644. </td>
  4645. </tr>
  4646. <tr>
  4647. <td class="bold">Arguments</td>
  4648. <td>
  4649. damage_name = inFire, lightningBolt, onFire, lava, hot_floor, inWall, cramming, drown, starve, cactus, fall, fyIntoWall, outOfWorld, generic, magic, wither, anvil, falling_block, dragon_breath, dryout, sweet_berry_bush
  4650. <br><br>
  4651. creative: boolean, true also deals damage in creative mode<br>
  4652. armor: boolean, true ignores armor<br>
  4653. absolute: boolean, true ignores enchantments and potions<br>
  4654. explosion: boolean, tag for explosion enchantment<br>
  4655. fire: boolean, tag for fire enchantment<br>
  4656. magic: boolean, true makes the damage magic<br>
  4657. projectile: boolean, tag for projectile enchantment<br>
  4658. </td>
  4659. </tr>
  4660. </table>
  4661. <table>
  4662. <tr>
  4663. <th class="command">damage.getType</th>
  4664. <th class="desc">returns the type of a damagesource as string</th>
  4665. </tr>
  4666. <tr>
  4667. <td class="bold">Format</td>
  4668. <td>damage.getType(damagesource)</td>
  4669. </tr>
  4670. </table>
  4671. <table>
  4672. <tr>
  4673. <th class="command">damage.getImmediateSource</th>
  4674. <th class="desc">returns the direct damager entity of a damagesource</th>
  4675. </tr>
  4676. <tr>
  4677. <td class="bold">Format</td>
  4678. <td>damage.getImmediateSource(damagesource)</td>
  4679. </tr>
  4680. </table>
  4681. <table>
  4682. <tr>
  4683. <th class="command">damage.getTrueSource</th>
  4684. <th class="desc">returns the indirect damager entity of a damagesource</th>
  4685. </tr>
  4686. <tr>
  4687. <td class="bold">Format</td>
  4688. <td>damage.getTrueSource(damagesource)</td>
  4689. </tr>
  4690. </table>
  4691. <table>
  4692. <tr>
  4693. <th class="command">damage.isCreativePlayer</th>
  4694. <th class="desc">returns true if the damagesource can damage an creative player</th>
  4695. </tr>
  4696. <tr>
  4697. <td class="bold">Format</td>
  4698. <td>damage.isCreativePlayer(damagesource)</td>
  4699. </tr>
  4700. </table>
  4701. <table>
  4702. <tr>
  4703. <th class="command">damage.isAbsolute</th>
  4704. <th class="desc">returns true if the damage ignores modifications by potion effects or enchantments</th>
  4705. </tr>
  4706. <tr>
  4707. <td class="bold">Format</td>
  4708. <td>damage.isAbsolute(damagesource)</td>
  4709. </tr>
  4710. </table>
  4711. <table>
  4712. <tr>
  4713. <th class="command">damage.isDifficultyscaled</th>
  4714. <th class="desc">returns true if the damagesource will have its damageamount scaled based on the current difficulty</th>
  4715. </tr>
  4716. <tr>
  4717. <td class="bold">Format</td>
  4718. <td>damage.isDifficultyscaled(damagesource)</td>
  4719. </tr>
  4720. </table>
  4721. <table>
  4722. <tr>
  4723. <th class="command">damage.isExplosion</th>
  4724. <th class="desc">returns true if the damage is explosion based</th>
  4725. </tr>
  4726. <tr>
  4727. <td class="bold">Format</td>
  4728. <td>damage.isExplosion(damagesource)</td>
  4729. </tr>
  4730. </table>
  4731. <table>
  4732. <tr>
  4733. <th class="command">damage.isFire</th>
  4734. <th class="desc">returns true if the damage is fire based</th>
  4735. </tr>
  4736. <tr>
  4737. <td class="bold">Format</td>
  4738. <td>damage.isFire(damagesource)</td>
  4739. </tr>
  4740. </table>
  4741. <table>
  4742. <tr>
  4743. <th class="command">damage.isMagic</th>
  4744. <th class="desc">returns true if the damage is magic based</th>
  4745. </tr>
  4746. <tr>
  4747. <td class="bold">Format</td>
  4748. <td>damage.isMagic(damagesource)</td>
  4749. </tr>
  4750. </table>
  4751. <table>
  4752. <tr>
  4753. <th class="command">damage.isProjectile</th>
  4754. <th class="desc">returns true if the damage is projectile based</th>
  4755. </tr>
  4756. <tr>
  4757. <td class="bold">Format</td>
  4758. <td>damage.isProjectile(damagesource)</td>
  4759. </tr>
  4760. </table>
  4761. <table>
  4762. <tr>
  4763. <th class="command">damage.isUnblockable</th>
  4764. <th class="desc">returns true if the damage cannot be blocked by armor</th>
  4765. </tr>
  4766. <tr>
  4767. <td class="bold">Format</td>
  4768. <td>damage.isUnblockable(damagesource)</td>
  4769. </tr>
  4770. </table>
  4771. </section>
  4772. <section id="Data">
  4773. <table>
  4774. <tr>
  4775. <th class="command">data.set</th>
  4776. <th class="desc">sets data for a player (script-across)</th>
  4777. </tr>
  4778. <tr>
  4779. <td class="bold">Format</td>
  4780. <td>data.set(player, String varname, value)</td>
  4781. </tr>
  4782. </table>
  4783. <table>
  4784. <tr>
  4785. <th class="command">data.get</th>
  4786. <th class="desc">returns data from a player (script-across)</th>
  4787. </tr>
  4788. <tr>
  4789. <td class="bold">Format</td>
  4790. <td>data.get(player, String varname)</td>
  4791. </tr>
  4792. </table>
  4793. <table>
  4794. <tr>
  4795. <th class="command">data.setTimer</th>
  4796. <th class="desc">sets timed data for a player (script-across)</th>
  4797. </tr>
  4798. <tr>
  4799. <td class="bold">Format</td>
  4800. <td>data.setTimer(player, String varname, ticks)</td>
  4801. </tr>
  4802. <tr>
  4803. <td class="bold">Arguments</td>
  4804. <td>set ticks to -1 to delete the timer. after the timer expires the event player_data_tick is thrown</td>
  4805. </tr>
  4806. </table>
  4807. <table>
  4808. <tr>
  4809. <th class="command">data.getTimer</th>
  4810. <th class="desc">returns the remaining ticks of timed data (script-across)</th>
  4811. </tr>
  4812. <tr>
  4813. <td class="bold">Format</td>
  4814. <td>data.getTimer(player, String varname)</td>
  4815. </tr>
  4816. </table>
  4817. <table>
  4818. <tr>
  4819. <th class="command">data.clear</th>
  4820. <th class="desc">deletes all datas from a player (script-across)</th>
  4821. </tr>
  4822. <tr>
  4823. <td class="bold">Format</td>
  4824. <td>data.clear(player)</td>
  4825. </tr>
  4826. </table>
  4827. </section>
  4828. <section id="Shop">
  4829. <table>
  4830. <tr>
  4831. <th class="command">shop.new</th>
  4832. <th class="desc">returns a new shop</th>
  4833. </tr>
  4834. <tr>
  4835. <td class="bold">Format</td>
  4836. <td>shop.new()</td>
  4837. </tr>
  4838. </table>
  4839. <table>
  4840. <tr>
  4841. <th class="command">shop.addOffer</th>
  4842. <th class="desc">adds an offer to a shop</th>
  4843. </tr>
  4844. <tr>
  4845. <td class="bold">Format</td>
  4846. <td>shop.addOffer(shop, buy_item, sell_item, max_uses)</td>
  4847. </tr>
  4848. </table>
  4849. <table>
  4850. <tr>
  4851. <th class="command">shop.addDoubleOffer</th>
  4852. <th class="desc">adds a double offer to a shop</th>
  4853. </tr>
  4854. <tr>
  4855. <td class="bold">Format</td>
  4856. <td>shop.addDoubleOffer(shop, buy_item_1, buy_item_2, sell_item, max_uses)</td>
  4857. </tr>
  4858. </table>
  4859. <table>
  4860. <tr>
  4861. <th class="command">shop.open</th>
  4862. <th class="desc">shows a shop to a player</th>
  4863. </tr>
  4864. <tr>
  4865. <td class="bold">Format</td>
  4866. <td>shop.open(shop, player, shop_name)</td>
  4867. </tr>
  4868. </table>
  4869. </section>
  4870. <section id="Status">
  4871. <table>
  4872. <tr>
  4873. <th class="command">status.add</th>
  4874. <th class="desc">adds a message to the enchantment-display</th>
  4875. </tr>
  4876. <tr>
  4877. <td class="bold">Format</td>
  4878. <td>status.add(receiver, byte index, message)</td>
  4879. </tr>
  4880. </table>
  4881. <table>
  4882. <tr>
  4883. <th class="command">status.addTimed</th>
  4884. <th class="desc">adds a timed message to the enchantment-display</th>
  4885. </tr>
  4886. <tr>
  4887. <td class="bold">Format</td>
  4888. <td>status.addTimed(receiver, byte index, int time, message)</td>
  4889. </tr>
  4890. </table>
  4891. <table>
  4892. <tr>
  4893. <th class="command">status.remove</th>
  4894. <th class="desc">removes a single message from the enchantment-display</th>
  4895. </tr>
  4896. <tr>
  4897. <td class="bold">Format</td>
  4898. <td>status.remove(receiver, byte index)</td>
  4899. </tr>
  4900. </table>
  4901. <table>
  4902. <tr>
  4903. <th class="command">status.reset</th>
  4904. <th class="desc">removes all messages from the enchantment-display</th>
  4905. </tr>
  4906. <tr>
  4907. <td class="bold">Format</td>
  4908. <td>status.reset(receiver)</td>
  4909. </tr>
  4910. </table>
  4911. </section>
  4912. <section id="Boss">
  4913. <table>
  4914. <tr>
  4915. <th class="command">boss.setColor</th>
  4916. <th class="desc">sets the color for the bossbar</th>
  4917. </tr>
  4918. <tr>
  4919. <td class="bold">Format</td>
  4920. <td>boss.setColor("PINK" / "BLUE" / "RED" / "GREEN" / "YELLOW" / "PURPLE" / "WHITE")</td>
  4921. </tr>
  4922. </table>
  4923. <table>
  4924. <tr>
  4925. <th class="command">boss.setCreateFog</th>
  4926. <th class="desc">sets a property for the bossbar</th>
  4927. </tr>
  4928. <tr>
  4929. <td class="bold">Format</td>
  4930. <td>boss.setCreateFog(boolean)</td>
  4931. </tr>
  4932. </table>
  4933. <table>
  4934. <tr>
  4935. <th class="command">boss.setDarkenSky</th>
  4936. <th class="desc">sets a property for the bossbar</th>
  4937. </tr>
  4938. <tr>
  4939. <td class="bold">Format</td>
  4940. <td>boss.setDarkenSky(boolean)</td>
  4941. </tr>
  4942. </table>
  4943. <table>
  4944. <tr>
  4945. <th class="command">boss.setPlayEndbossmusic</th>
  4946. <th class="desc">sets a property for the bossbar</th>
  4947. </tr>
  4948. <tr>
  4949. <td class="bold">Format</td>
  4950. <td>boss.setPlayEndbossmusic(boolean)</td>
  4951. </tr>
  4952. </table>
  4953. <table>
  4954. <tr>
  4955. <th class="command">boss.setName</th>
  4956. <th class="desc">sets the name for the bossbar</th>
  4957. </tr>
  4958. <tr>
  4959. <td class="bold">Format</td>
  4960. <td>boss.setName(string)</td>
  4961. </tr>
  4962. </table>
  4963. <table>
  4964. <tr>
  4965. <th class="command">boss.setOverlay</th>
  4966. <th class="desc">sets an overlay to split the bossbar</th>
  4967. </tr>
  4968. <tr>
  4969. <td class="bold">Format</td>
  4970. <td>boss.setOverlay("PROGRESS" / "NOTCHED_6" / "NOTCHED_10" / "NOTCHED_12" / "NOTCHED_20")</td>
  4971. </tr>
  4972. </table>
  4973. <table>
  4974. <tr>
  4975. <th class="command">boss.setPercent</th>
  4976. <th class="desc">sets the progress of the bossbar</th>
  4977. </tr>
  4978. <tr>
  4979. <td class="bold">Format</td>
  4980. <td>boss.setPercent(0 - 1)</td>
  4981. </tr>
  4982. </table>
  4983. <table>
  4984. <tr>
  4985. <th class="command">boss.send</th>
  4986. <th class="desc">sends the bossbar to the players</th>
  4987. </tr>
  4988. <tr>
  4989. <td class="bold">Format</td>
  4990. <td>boss.send(receiver, "ADD" / "REMOVE" / "UPDATE_PCT" / "UPDATE_NAME" / "UPDATE_STYLE" / "UPDATE_PROPERTIES")</td>
  4991. </tr>
  4992. <tr>
  4993. <td class="bold">Arguments</td>
  4994. <td>
  4995. ADD sends name, percent, color, overlay, properties(booleans)<br>
  4996. UPDATE_PCT sends percent<br>
  4997. UPDATE_NAME sends name<br>
  4998. UPDATE_STYLE sends color, overlay<br>
  4999. UPDATE_PROPERTIES sends properties(booleans)<br>
  5000. </td>
  5001. </tr>
  5002. </table>
  5003. </section>