docu_minecraft.php 154 KB

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