docu_minecraft_forge.php 157 KB

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