docu_minecraft.php 157 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131
  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(block)</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. </table>
  4361. <table>
  4362. <tr>
  4363. <th class="command">creeper.explode</th>
  4364. <th class="desc">let a creeper explode</th>
  4365. </tr>
  4366. <tr>
  4367. <td class="bold">Format</td>
  4368. <td>creeper.explode(entity)</td>
  4369. </tr>
  4370. </table>
  4371. <table>
  4372. <tr>
  4373. <th class="command">sheep.isSheared</th>
  4374. <th class="desc">returns true if a sheep is sheared</th>
  4375. </tr>
  4376. <tr>
  4377. <td class="bold">Format</td>
  4378. <td>sheep.isSheared(entity)</td>
  4379. </tr>
  4380. </table>
  4381. <table>
  4382. <tr>
  4383. <th class="command">sheep.getColor(entity)</th>
  4384. <th class="desc">returns the color of a sheep</th>
  4385. </tr>
  4386. <tr>
  4387. <td class="bold">Format</td>
  4388. <td>sheep.getColor(entity)</td>
  4389. </tr>
  4390. </table>
  4391. <table>
  4392. <tr>
  4393. <th class="command">pet.isTamed</th>
  4394. <th class="desc">returns true if a pet is tamed</th>
  4395. </tr>
  4396. <tr>
  4397. <td class="bold">Format</td>
  4398. <td>pet.isTamed(tamable_entity)</td>
  4399. </tr>
  4400. </table>
  4401. <table>
  4402. <tr>
  4403. <th class="command">pet.setTamed</th>
  4404. <th class="desc">set tame state for a tamable entity</th>
  4405. </tr>
  4406. <tr>
  4407. <td class="bold">Format</td>
  4408. <td>
  4409. pet.setTamed(tamable_entity, boolean, [owner])
  4410. </td>
  4411. </tr>
  4412. <tr>
  4413. <td class="bold">Example</td>
  4414. <td>
  4415. pet.setTamed(horse, true)<br>
  4416. pet.setTamed(horse, false)<br>
  4417. pet.setTamed(horse, true, owner)<br>
  4418. pet.setTamed(horse, false, owner)<br>
  4419. </td>
  4420. </tr>
  4421. </table>
  4422. <table>
  4423. <tr>
  4424. <th class="command">pet.getOwner</th>
  4425. <th class="desc">returns the owner's uuid from an pet</th>
  4426. </tr>
  4427. <tr>
  4428. <td class="bold">Format</td>
  4429. <td>pet.getOwner(tamable_entity)</td>
  4430. </tr>
  4431. </table>
  4432. </section>
  4433. <section id="Living">
  4434. <table>
  4435. <tr>
  4436. <th class="command">living.setHealth</th>
  4437. <th class="desc">sets the health points for an living_entity</th>
  4438. </tr>
  4439. <tr>
  4440. <td class="bold">Format</td>
  4441. <td>living.setHealth(living_entity, amount)</td>
  4442. </tr>
  4443. </table>
  4444. <table>
  4445. <tr>
  4446. <th class="command">living.getHealth</th>
  4447. <th class="desc">returns the health points from an living_entity</th>
  4448. </tr>
  4449. <tr>
  4450. <td class="bold">Format</td>
  4451. <td>living.getHealth(living_entity)</td>
  4452. </tr>
  4453. </table>
  4454. <table>
  4455. <tr>
  4456. <th class="command">living.damage</th>
  4457. <th class="desc">damages an living_entity</th>
  4458. </tr>
  4459. <tr>
  4460. <td class="bold">Format</td>
  4461. <td>living.damage(living_entity, damage_amount, [damagesource])</td>
  4462. </tr>
  4463. <tr>
  4464. <td class="bold">Info</td>
  4465. <td>triggers events on the next server tick</td>
  4466. </tr>
  4467. </table>
  4468. <table>
  4469. <tr>
  4470. <th class="command">living.heal</th>
  4471. <th class="desc">heals an living_entity</th>
  4472. </tr>
  4473. <tr>
  4474. <td class="bold">Format</td>
  4475. <td>living.heal(living_entity, heal_amount)</td>
  4476. </tr>
  4477. <tr>
  4478. <td class="bold">Info</td>
  4479. <td>triggers events on the next server tick</td>
  4480. </tr>
  4481. </table>
  4482. <table>
  4483. <tr>
  4484. <th class="command">living.setEquip</th>
  4485. <th class="desc">set the equipment of an living_entity</th>
  4486. </tr>
  4487. <tr>
  4488. <td class="bold">Format</td>
  4489. <td>living.setEquip(living_entity, bodypart, itemstack)</td>
  4490. </tr>
  4491. <tr>
  4492. <td class="bold">Info</td>
  4493. <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
  4494. </tr>
  4495. </table>
  4496. <table>
  4497. <tr>
  4498. <th class="command">living.getEquip</th>
  4499. <th class="desc">returns the equipment of an living_entity</th>
  4500. </tr>
  4501. <tr>
  4502. <td class="bold">Format</td>
  4503. <td>living.getEquip(living_entity, bodypart)</td>
  4504. </tr>
  4505. <tr>
  4506. <td class="bold">Arguments</td>
  4507. <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
  4508. </tr>
  4509. </table>
  4510. <table>
  4511. <tr>
  4512. <th class="command">living.near</th>
  4513. <th class="desc">returns a list with all living entities within a location / a radius of an entity</th>
  4514. </tr>
  4515. <tr>
  4516. <td class="bold">Format</td>
  4517. <td>living.near(location / entity, radius)</td>
  4518. </tr>
  4519. </table>
  4520. <table>
  4521. <tr>
  4522. <th class="command">living.removeAi</th>
  4523. <th class="desc">removes the AI of an entity</th>
  4524. </tr>
  4525. <tr>
  4526. <td class="bold">Format</td>
  4527. <td>living.removeAi(living_entity)</td>
  4528. </tr>
  4529. </table>
  4530. <table>
  4531. <tr>
  4532. <th class="command"></th>
  4533. <th class="desc">commands for living properties</th>
  4534. </tr>
  4535. <tr>
  4536. <td class="bold">Format</td>
  4537. <td>
  4538. living.get...(living_entity)<br>
  4539. living.getBase...(living_entity)<br>
  4540. living.set..(living_entity, value)<br>
  4541. living.setPersistent...(living_entity, value)
  4542. </td>
  4543. </tr>
  4544. <tr>
  4545. <td class="bold">Properties</td>
  4546. <td>
  4547. ...maxHealth<br>
  4548. ...AttackKnockback<br>
  4549. ...AttackDamage<br>
  4550. ...AttackSpeed<br>
  4551. ...FollowRange<br>
  4552. ...Luck<br>
  4553. ...Armor<br>
  4554. ...ArmorThoughness<br>
  4555. ...MovementSpeed<br>
  4556. ...FlyingSpeed<br>
  4557. ...KnockbackResistance
  4558. </td>
  4559. </tr>
  4560. </table>
  4561. <table>
  4562. <tr>
  4563. <th class="command">living.shootProjectile</th>
  4564. <th class="desc">returns the shooten entity. A projectile is shooten into viewing direction of the player</th>
  4565. </tr>
  4566. <tr>
  4567. <td class="bold">Format</td>
  4568. <td>living.shootProjectile(living_entity, String entity_class, Number power, [data])</td>
  4569. </tr>
  4570. <tr>
  4571. <td class="bold">Arguments</td>
  4572. <td>
  4573. data: always null, except for arrows and potions use itemstacks<br>
  4574. <br>
  4575. entity_classes:<br>
  4576. <br>
  4577. me.km.entities.EntityItemProjectile<br>
  4578. net.minecraft.entity.projectile.SnowballEntity<br>
  4579. net.minecraft.entity.projectile.EggEntity<br>
  4580. net.minecraft.entity.item.EnderPearlEntity<br>
  4581. net.minecraft.entity.projectile.PotionEntity<br>
  4582. net.minecraft.entity.item.ExpBottleEntity<br>
  4583. net.minecraft.entity.projectile.ArrowEntity<br>
  4584. net.minecraft.entity.projectile.TippedArrowEntity<br>
  4585. net.minecraft.entity.projectile.SpectralArrowEntity<br>
  4586. net.minecraft.entity.projectile.ArrowEntity<br>
  4587. net.minecraft.entity.projectile.SmallFireballEntity<br>
  4588. net.minecraft.entity.projectile.WitherSkullEntity<br>
  4589. net.minecraft.entity.projectile.DragonFireballEntity<br>
  4590. net.minecraft.entity.projectile.FireballEntity
  4591. </td>
  4592. </tr>
  4593. </table>
  4594. <table>
  4595. <tr>
  4596. <th class="command">living.isBlocking</th>
  4597. <th class="desc">returns true if an entity is blocking (e.g. activated shield)</th>
  4598. </tr>
  4599. <tr>
  4600. <td class="bold">Format</td>
  4601. <td>living.isBlocking(entity)</td>
  4602. </tr>
  4603. </table>
  4604. </section>
  4605. <section id="Particle">
  4606. <table>
  4607. <tr>
  4608. <th class="command">particle.get</th>
  4609. <th class="desc">returns particle data</th>
  4610. </tr>
  4611. <tr>
  4612. <td class="bold">Format</td>
  4613. <td>particle.get(name, [data])</td>
  4614. </tr>
  4615. <tr>
  4616. <td class="bold">Arguments</td>
  4617. <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>
  4618. </tr>
  4619. </table>
  4620. <table>
  4621. <tr>
  4622. <th class="command">particle.getAll</th>
  4623. <th class="desc">returns a list with all particles</th>
  4624. </tr>
  4625. <tr>
  4626. <td class="bold">Format</td>
  4627. <td>particle.getAll()</td>
  4628. </tr>
  4629. </table>
  4630. <table>
  4631. <tr>
  4632. <th class="command">particle.spawn</th>
  4633. <th class="desc">spawns particle</th>
  4634. </tr>
  4635. <tr>
  4636. <td class="bold">Format</td>
  4637. <td>particle.spawn(location, particle_data, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
  4638. </tr>
  4639. </table>
  4640. <table>
  4641. <tr>
  4642. <th class="command">particle.spawnPlayer</th>
  4643. <th class="desc">spawns particle</th>
  4644. </tr>
  4645. <tr>
  4646. <td class="bold">Format</td>
  4647. <td>particle.spawnPlayer(location, particle_data, player, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
  4648. </tr>
  4649. </table>
  4650. <table>
  4651. <tr>
  4652. <th class="command">particle.spawnCircle</th>
  4653. <th class="desc">spawns particle</th>
  4654. </tr>
  4655. <tr>
  4656. <td class="bold">Format</td>
  4657. <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>
  4658. </tr>
  4659. </table>
  4660. </section>
  4661. <section id="Sound">
  4662. <table>
  4663. <tr>
  4664. <th class="command">sound.get</th>
  4665. <th class="desc">returns a sound</th>
  4666. </tr>
  4667. <tr>
  4668. <td class="bold">Format</td>
  4669. <td>sound.get(String sound_name)</td>
  4670. </tr>
  4671. </table>
  4672. <table>
  4673. <tr>
  4674. <th class="command">sound.getCategory</th>
  4675. <th class="desc">returns a sound category</th>
  4676. </tr>
  4677. <tr>
  4678. <td class="bold">Format</td>
  4679. <td>sound.getCategory(String sound_category|"master")</td>
  4680. </tr>
  4681. </table>
  4682. <table>
  4683. <tr>
  4684. <th class="command">sound.spawn</th>
  4685. <th class="desc">plays a sound</th>
  4686. </tr>
  4687. <tr>
  4688. <td class="bold">Format</td>
  4689. <td>sound.spawn(location, sound, soundCategory, [volume|1.0], [pitch|random von 0.9 - 1.0])</td>
  4690. </tr>
  4691. </table>
  4692. <table>
  4693. <tr>
  4694. <th class="command">sound.spawnForPlayer</th>
  4695. <th class="desc">plays a sound for a player (not hearable for that one player!)</th>
  4696. </tr>
  4697. <tr>
  4698. <td class="bold">Format</td>
  4699. <td>sound.spawnForPlayer(player, sound, soundCategory, [volume|1.0], [pitch|random von 0.9 - 1.0])</td>
  4700. </tr>
  4701. </table>
  4702. </section>
  4703. <section id="Human">
  4704. <table>
  4705. <tr>
  4706. <th class="command">human.spawn</th>
  4707. <th class="desc">returns the new created human</th>
  4708. </tr>
  4709. <tr>
  4710. <td class="bold">Format</td>
  4711. <td>human.spawn(location)</td>
  4712. </tr>
  4713. </table>
  4714. <table>
  4715. <tr>
  4716. <th class="command">human.setSkin</th>
  4717. <th class="desc">sets the skin of a human</th>
  4718. </tr>
  4719. <tr>
  4720. <td class="bold">Format</td>
  4721. <td>human.setSkin(human, file_name OR uuid)</td>
  4722. </tr>
  4723. <tr>
  4724. <td class="bold">Info</td>
  4725. <td>file_name is for skins saved local on our own server. if file_name not found, global skin are searched via uuid</td>
  4726. </tr>
  4727. </table>
  4728. <table>
  4729. <tr>
  4730. <th class="command">human.setSlim</th>
  4731. <th class="desc">true makes the human slim (slim is for alex skins)</th>
  4732. </tr>
  4733. <tr>
  4734. <td class="bold">Format</td>
  4735. <td>human.setSlim(human, boolean)</td>
  4736. </tr>
  4737. </table>
  4738. <table>
  4739. <tr>
  4740. <th class="command">human.setScale</th>
  4741. <th class="desc">sets the size of the human</th>
  4742. </tr>
  4743. <tr>
  4744. <td class="bold">Format</td>
  4745. <td>human.setScale(human, value)</td>
  4746. </tr>
  4747. </table>
  4748. <table>
  4749. <tr>
  4750. <th class="command">human.setStatue</th>
  4751. <th class="desc">toggles between human and statue</th>
  4752. </tr>
  4753. <tr>
  4754. <td class="bold">Format</td>
  4755. <td>human.setStatue(human, bool)</td>
  4756. </tr>
  4757. </table>
  4758. </section>
  4759. <section id="Damage">
  4760. <table>
  4761. <tr>
  4762. <th class="command">damage.get</th>
  4763. <th class="desc">returns a damagesource</th>
  4764. </tr>
  4765. <tr>
  4766. <td class="bold">Format</td>
  4767. <td>
  4768. damage.get(String damage_name)<br><br>
  4769. damage.get("thorns", entity)<br><br>
  4770. damage.get(entity, creative, armor, absolute, explosion, fire, magic, projectile)
  4771. </td>
  4772. </tr>
  4773. <tr>
  4774. <td class="bold">Arguments</td>
  4775. <td>
  4776. 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
  4777. <br><br>
  4778. creative: boolean, true also deals damage in creative mode<br>
  4779. armor: boolean, true ignores armor<br>
  4780. absolute: boolean, true ignores enchantments and potions<br>
  4781. explosion: boolean, tag for explosion enchantment<br>
  4782. fire: boolean, tag for fire enchantment<br>
  4783. magic: boolean, true makes the damage magic<br>
  4784. projectile: boolean, tag for projectile enchantment<br>
  4785. </td>
  4786. </tr>
  4787. </table>
  4788. <table>
  4789. <tr>
  4790. <th class="command">damage.getType</th>
  4791. <th class="desc">returns the type of a damagesource as string</th>
  4792. </tr>
  4793. <tr>
  4794. <td class="bold">Format</td>
  4795. <td>damage.getType(damagesource)</td>
  4796. </tr>
  4797. </table>
  4798. <table>
  4799. <tr>
  4800. <th class="command">damage.getImmediateSource</th>
  4801. <th class="desc">returns the direct damager entity of a damagesource</th>
  4802. </tr>
  4803. <tr>
  4804. <td class="bold">Format</td>
  4805. <td>damage.getImmediateSource(damagesource)</td>
  4806. </tr>
  4807. </table>
  4808. <table>
  4809. <tr>
  4810. <th class="command">damage.getTrueSource</th>
  4811. <th class="desc">returns the indirect damager entity of a damagesource</th>
  4812. </tr>
  4813. <tr>
  4814. <td class="bold">Format</td>
  4815. <td>damage.getTrueSource(damagesource)</td>
  4816. </tr>
  4817. </table>
  4818. <table>
  4819. <tr>
  4820. <th class="command">damage.isCreativePlayer</th>
  4821. <th class="desc">returns true if the damagesource can damage an creative player</th>
  4822. </tr>
  4823. <tr>
  4824. <td class="bold">Format</td>
  4825. <td>damage.isCreativePlayer(damagesource)</td>
  4826. </tr>
  4827. </table>
  4828. <table>
  4829. <tr>
  4830. <th class="command">damage.isAbsolute</th>
  4831. <th class="desc">returns true if the damage ignores modifications by potion effects or enchantments</th>
  4832. </tr>
  4833. <tr>
  4834. <td class="bold">Format</td>
  4835. <td>damage.isAbsolute(damagesource)</td>
  4836. </tr>
  4837. </table>
  4838. <table>
  4839. <tr>
  4840. <th class="command">damage.isDifficultyscaled</th>
  4841. <th class="desc">returns true if the damagesource will have its damageamount scaled based on the current difficulty</th>
  4842. </tr>
  4843. <tr>
  4844. <td class="bold">Format</td>
  4845. <td>damage.isDifficultyscaled(damagesource)</td>
  4846. </tr>
  4847. </table>
  4848. <table>
  4849. <tr>
  4850. <th class="command">damage.isExplosion</th>
  4851. <th class="desc">returns true if the damage is explosion based</th>
  4852. </tr>
  4853. <tr>
  4854. <td class="bold">Format</td>
  4855. <td>damage.isExplosion(damagesource)</td>
  4856. </tr>
  4857. </table>
  4858. <table>
  4859. <tr>
  4860. <th class="command">damage.isFire</th>
  4861. <th class="desc">returns true if the damage is fire based</th>
  4862. </tr>
  4863. <tr>
  4864. <td class="bold">Format</td>
  4865. <td>damage.isFire(damagesource)</td>
  4866. </tr>
  4867. </table>
  4868. <table>
  4869. <tr>
  4870. <th class="command">damage.isMagic</th>
  4871. <th class="desc">returns true if the damage is magic based</th>
  4872. </tr>
  4873. <tr>
  4874. <td class="bold">Format</td>
  4875. <td>damage.isMagic(damagesource)</td>
  4876. </tr>
  4877. </table>
  4878. <table>
  4879. <tr>
  4880. <th class="command">damage.isProjectile</th>
  4881. <th class="desc">returns true if the damage is projectile based</th>
  4882. </tr>
  4883. <tr>
  4884. <td class="bold">Format</td>
  4885. <td>damage.isProjectile(damagesource)</td>
  4886. </tr>
  4887. </table>
  4888. <table>
  4889. <tr>
  4890. <th class="command">damage.isUnblockable</th>
  4891. <th class="desc">returns true if the damage cannot be blocked by armor</th>
  4892. </tr>
  4893. <tr>
  4894. <td class="bold">Format</td>
  4895. <td>damage.isUnblockable(damagesource)</td>
  4896. </tr>
  4897. </table>
  4898. </section>
  4899. <section id="Data">
  4900. <table>
  4901. <tr>
  4902. <th class="command">data.set</th>
  4903. <th class="desc">sets data for a player (script-across)</th>
  4904. </tr>
  4905. <tr>
  4906. <td class="bold">Format</td>
  4907. <td>data.set(player, String varname, value)</td>
  4908. </tr>
  4909. </table>
  4910. <table>
  4911. <tr>
  4912. <th class="command">data.get</th>
  4913. <th class="desc">returns data from a player (script-across)</th>
  4914. </tr>
  4915. <tr>
  4916. <td class="bold">Format</td>
  4917. <td>data.get(player, String varname)</td>
  4918. </tr>
  4919. </table>
  4920. <table>
  4921. <tr>
  4922. <th class="command">data.setTimer</th>
  4923. <th class="desc">sets timed data for a player (script-across)</th>
  4924. </tr>
  4925. <tr>
  4926. <td class="bold">Format</td>
  4927. <td>data.setTimer(player, String varname, ticks)</td>
  4928. </tr>
  4929. <tr>
  4930. <td class="bold">Arguments</td>
  4931. <td>set ticks to -1 to delete the timer. after the timer expires the event player_data_tick is thrown</td>
  4932. </tr>
  4933. </table>
  4934. <table>
  4935. <tr>
  4936. <th class="command">data.getTimer</th>
  4937. <th class="desc">returns the remaining ticks of timed data (script-across)</th>
  4938. </tr>
  4939. <tr>
  4940. <td class="bold">Format</td>
  4941. <td>data.getTimer(player, String varname)</td>
  4942. </tr>
  4943. </table>
  4944. <table>
  4945. <tr>
  4946. <th class="command">data.clear</th>
  4947. <th class="desc">deletes all datas from a player (script-across)</th>
  4948. </tr>
  4949. <tr>
  4950. <td class="bold">Format</td>
  4951. <td>data.clear(player)</td>
  4952. </tr>
  4953. </table>
  4954. </section>
  4955. <section id="Shop">
  4956. <table>
  4957. <tr>
  4958. <th class="command">shop.new</th>
  4959. <th class="desc">returns a new shop</th>
  4960. </tr>
  4961. <tr>
  4962. <td class="bold">Format</td>
  4963. <td>shop.new()</td>
  4964. </tr>
  4965. </table>
  4966. <table>
  4967. <tr>
  4968. <th class="command">shop.addOffer</th>
  4969. <th class="desc">adds an offer to a shop</th>
  4970. </tr>
  4971. <tr>
  4972. <td class="bold">Format</td>
  4973. <td>shop.addOffer(shop, buy_item, sell_item, max_uses)</td>
  4974. </tr>
  4975. </table>
  4976. <table>
  4977. <tr>
  4978. <th class="command">shop.addDoubleOffer</th>
  4979. <th class="desc">adds a double offer to a shop</th>
  4980. </tr>
  4981. <tr>
  4982. <td class="bold">Format</td>
  4983. <td>shop.addDoubleOffer(shop, buy_item_1, buy_item_2, sell_item, max_uses)</td>
  4984. </tr>
  4985. </table>
  4986. <table>
  4987. <tr>
  4988. <th class="command">shop.open</th>
  4989. <th class="desc">shows a shop to a player</th>
  4990. </tr>
  4991. <tr>
  4992. <td class="bold">Format</td>
  4993. <td>shop.open(shop, player, shop_name)</td>
  4994. </tr>
  4995. </table>
  4996. </section>
  4997. <section id="Status">
  4998. <table>
  4999. <tr>
  5000. <th class="command">status.add</th>
  5001. <th class="desc">adds a message to the enchantment-display</th>
  5002. </tr>
  5003. <tr>
  5004. <td class="bold">Format</td>
  5005. <td>status.add(receiver, byte index, message)</td>
  5006. </tr>
  5007. </table>
  5008. <table>
  5009. <tr>
  5010. <th class="command">status.addTimed</th>
  5011. <th class="desc">adds a timed message to the enchantment-display</th>
  5012. </tr>
  5013. <tr>
  5014. <td class="bold">Format</td>
  5015. <td>status.addTimed(receiver, byte index, int time, message)</td>
  5016. </tr>
  5017. </table>
  5018. <table>
  5019. <tr>
  5020. <th class="command">status.remove</th>
  5021. <th class="desc">removes a single message from the enchantment-display</th>
  5022. </tr>
  5023. <tr>
  5024. <td class="bold">Format</td>
  5025. <td>status.remove(receiver, byte index)</td>
  5026. </tr>
  5027. </table>
  5028. <table>
  5029. <tr>
  5030. <th class="command">status.reset</th>
  5031. <th class="desc">removes all messages from the enchantment-display</th>
  5032. </tr>
  5033. <tr>
  5034. <td class="bold">Format</td>
  5035. <td>status.reset(receiver)</td>
  5036. </tr>
  5037. </table>
  5038. </section>
  5039. <section id="Boss">
  5040. <table>
  5041. <tr>
  5042. <th class="command">boss.setColor</th>
  5043. <th class="desc">sets the color for the bossbar</th>
  5044. </tr>
  5045. <tr>
  5046. <td class="bold">Format</td>
  5047. <td>boss.setColor("PINK" / "BLUE" / "RED" / "GREEN" / "YELLOW" / "PURPLE" / "WHITE")</td>
  5048. </tr>
  5049. </table>
  5050. <table>
  5051. <tr>
  5052. <th class="command">boss.setCreateFog</th>
  5053. <th class="desc">sets a property for the bossbar</th>
  5054. </tr>
  5055. <tr>
  5056. <td class="bold">Format</td>
  5057. <td>boss.setCreateFog(boolean)</td>
  5058. </tr>
  5059. </table>
  5060. <table>
  5061. <tr>
  5062. <th class="command">boss.setDarkenSky</th>
  5063. <th class="desc">sets a property for the bossbar</th>
  5064. </tr>
  5065. <tr>
  5066. <td class="bold">Format</td>
  5067. <td>boss.setDarkenSky(boolean)</td>
  5068. </tr>
  5069. </table>
  5070. <table>
  5071. <tr>
  5072. <th class="command">boss.setPlayEndbossmusic</th>
  5073. <th class="desc">sets a property for the bossbar</th>
  5074. </tr>
  5075. <tr>
  5076. <td class="bold">Format</td>
  5077. <td>boss.setPlayEndbossmusic(boolean)</td>
  5078. </tr>
  5079. </table>
  5080. <table>
  5081. <tr>
  5082. <th class="command">boss.setName</th>
  5083. <th class="desc">sets the name for the bossbar</th>
  5084. </tr>
  5085. <tr>
  5086. <td class="bold">Format</td>
  5087. <td>boss.setName(string)</td>
  5088. </tr>
  5089. </table>
  5090. <table>
  5091. <tr>
  5092. <th class="command">boss.setOverlay</th>
  5093. <th class="desc">sets an overlay to split the bossbar</th>
  5094. </tr>
  5095. <tr>
  5096. <td class="bold">Format</td>
  5097. <td>boss.setOverlay("PROGRESS" / "NOTCHED_6" / "NOTCHED_10" / "NOTCHED_12" / "NOTCHED_20")</td>
  5098. </tr>
  5099. </table>
  5100. <table>
  5101. <tr>
  5102. <th class="command">boss.setPercent</th>
  5103. <th class="desc">sets the progress of the bossbar</th>
  5104. </tr>
  5105. <tr>
  5106. <td class="bold">Format</td>
  5107. <td>boss.setPercent(0 - 1)</td>
  5108. </tr>
  5109. </table>
  5110. <table>
  5111. <tr>
  5112. <th class="command">boss.send</th>
  5113. <th class="desc">sends the bossbar to the players</th>
  5114. </tr>
  5115. <tr>
  5116. <td class="bold">Format</td>
  5117. <td>boss.send(receiver, "ADD" / "REMOVE" / "UPDATE_PCT" / "UPDATE_NAME" / "UPDATE_STYLE" / "UPDATE_PROPERTIES")</td>
  5118. </tr>
  5119. <tr>
  5120. <td class="bold">Arguments</td>
  5121. <td>
  5122. ADD sends name, percent, color, overlay, properties(booleans)<br>
  5123. UPDATE_PCT sends percent<br>
  5124. UPDATE_NAME sends name<br>
  5125. UPDATE_STYLE sends color, overlay<br>
  5126. UPDATE_PROPERTIES sends properties(booleans)<br>
  5127. </td>
  5128. </tr>
  5129. </table>
  5130. </section>