docu_minecraft.php 171 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624
  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. </table>
  16. <table>
  17. <tr>
  18. <th class="command">entity_change_block</th>
  19. <th class="desc">an entity changes a block</th>
  20. </tr>
  21. <tr>
  22. <td class="bold">Variables</td>
  23. <td>entity<br>block<br>change_data as blockdata for the new state<br>*cancel</td>
  24. </tr>
  25. </table>
  26. <table>
  27. <tr>
  28. <th class="command">entity_damage</th>
  29. <th class="desc">an entity gets damage</th>
  30. </tr>
  31. <tr>
  32. <td class="bold">Variables</td>
  33. <td>entity<br>damage_source<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html" target="_blank">cause</a> as string<br>**damager_block<br>**damager_entity<br>damage<br>raw_damage<br>*cancel</td>
  34. </tr>
  35. </table>
  36. <table>
  37. <tr>
  38. <th class="command">entity_heal</th>
  39. <th class="desc">an entity gets healed</th>
  40. </tr>
  41. <tr>
  42. <td class="bold">Variables</td>
  43. <td>entity<br>*heal<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/entity/EntityRegainHealthEvent.RegainReason.html" target="_blank">cause</a> as string<br>*cancel</td>
  44. </tr>
  45. </table>
  46. <table>
  47. <tr>
  48. <th class="command">living_death</th>
  49. <th class="desc">a living_entity dies</th>
  50. </tr>
  51. <tr>
  52. <td class="bold">Variables</td>
  53. <td>living_entity<br>damage_source<br>*drops as list of itemstacks<br>*experience<br>*cancel</td>
  54. </tr>
  55. </table>
  56. <table>
  57. <tr>
  58. <th class="command">block_drop</th>
  59. <th class="desc">a destroyed block drops something</th>
  60. </tr>
  61. <tr>
  62. <td class="bold">Variables</td>
  63. <td>player<br>block<br>old_material<br>*drops as list with ItemEntities</td>
  64. </tr>
  65. </table>
  66. <table>
  67. <tr>
  68. <th class="command">entity_click</th>
  69. <th class="desc">an entity gets right_clicked</th>
  70. </tr>
  71. <tr>
  72. <td class="bold">Variables</td>
  73. <td>player<br>entity<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
  74. </tr>
  75. </table>
  76. </table>
  77. <table>
  78. <tr>
  79. <th class="command">living_spawn</th>
  80. <th class="desc">a living entity spawns</th>
  81. </tr>
  82. <tr>
  83. <td class="bold">Variables</td>
  84. <td>living_entity<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html" target="_blank">cause</a> as string<br>location<br>*cancel</td>
  85. </tr>
  86. </table>
  87. <table>
  88. <tr>
  89. <th class="command">entity_spawn</th>
  90. <th class="desc">an entity spawns</th>
  91. </tr>
  92. <tr>
  93. <td class="bold">Variables</td>
  94. <td>entity<br>location<br>*cancel</td>
  95. </tr>
  96. </table>
  97. <table>
  98. <tr>
  99. <th class="command">entity_remove</th>
  100. <th class="desc">an entity is removed from a world</th>
  101. </tr>
  102. <tr>
  103. <td class="bold">Variables</td>
  104. <td>entity</td>
  105. </tr>
  106. </table>
  107. <table>
  108. <tr>
  109. <th class="command">living_tame</th>
  110. <th class="desc">a living entity gets tamed</th>
  111. </tr>
  112. <tr>
  113. <td class="bold">Variables</td>
  114. <td>living_entity<br>tamer<br>*cancel</td>
  115. </tr>
  116. </table>
  117. <table>
  118. <tr>
  119. <th class="command">entity_mount</th>
  120. <th class="desc">an entity mounts another entity</th>
  121. </tr>
  122. <tr>
  123. <td class="bold">Variables</td>
  124. <td>entity<br>mount as entity<br>*cancel</td>
  125. </tr>
  126. </table>
  127. <table>
  128. <tr>
  129. <th class="command">entity_dismount</th>
  130. <th class="desc">an entity dismounts another entity</th>
  131. </tr>
  132. <tr>
  133. <td class="bold">Variables</td>
  134. <td>entity<br>mount as entity</td>
  135. </tr>
  136. </table>
  137. <table>
  138. <tr>
  139. <th class="command">player_login</th>
  140. <th class="desc">a player tries to connect to the server</th>
  141. </tr>
  142. <tr>
  143. <td class="bold">Variables</td>
  144. <td>player<br>result</td>
  145. </tr>
  146. </table>
  147. <table>
  148. <tr>
  149. <th class="command">player_join</th>
  150. <th class="desc">a player joins the server</th>
  151. </tr>
  152. <tr>
  153. <td class="bold">Variables</td>
  154. <td>player<br>*message as text</td>
  155. </tr>
  156. <tr>
  157. <td class="bold">Info</td>
  158. <td>message = null means no message</td>
  159. </tr>
  160. </table>
  161. <table>
  162. <tr>
  163. <th class="command">player_quit</th>
  164. <th class="desc">a player leaves the server</th>
  165. </tr>
  166. <tr>
  167. <td class="bold">Variables</td>
  168. <td>player<br>*message as text</td>
  169. </tr>
  170. <tr>
  171. <td class="bold">Info</td>
  172. <td>message = null means no message</td>
  173. </tr>
  174. </table>
  175. <table>
  176. <tr>
  177. <th class="command">player_pre_respawn</th>
  178. <th class="desc">a player will respawn</th>
  179. </tr>
  180. <tr>
  181. <td class="bold">Variables</td>
  182. <td>player</td>
  183. </tr>
  184. <tr>
  185. <td class="bold">Info</td>
  186. <td>devs can set the spawn-location on this event</td>
  187. </tr>
  188. </table>
  189. <table>
  190. <tr>
  191. <th class="command">player_post_respawn</th>
  192. <th class="desc">a player has respawned</th>
  193. </tr>
  194. <tr>
  195. <td class="bold">Variables</td>
  196. <td>player</td>
  197. </tr>
  198. <tr>
  199. <td class="bold">Info</td>
  200. <td>devs can refill the inventory on this event</td>
  201. </tr>
  202. </table>
  203. <table>
  204. <tr>
  205. <th class="command">player_toggle_sneak</th>
  206. <th class="desc">a player toggles sneak</th>
  207. </tr>
  208. <tr>
  209. <td class="bold">Variables</td>
  210. <td>player<br>sneak as boolean<br>*cancel</td>
  211. </tr>
  212. </table>
  213. <table>
  214. <tr>
  215. <th class="command">player_drop</th>
  216. <th class="desc">a player drops an item</th>
  217. </tr>
  218. <tr>
  219. <td class="bold">Variables</td>
  220. <td>player<br>item_entity<br>*cancel</td>
  221. </tr>
  222. </table>
  223. <table>
  224. <tr>
  225. <th class="command">living_pickup</th>
  226. <th class="desc">a living entity picks up an item</th>
  227. </tr>
  228. <tr>
  229. <td class="bold">Variables</td>
  230. <td>living_entity<br>item_entity<br>*cancel</td>
  231. </tr>
  232. </table>
  233. <table>
  234. <tr>
  235. <th class="command">player_move</th>
  236. <th class="desc">a player moves in a before defined area</th>
  237. </tr>
  238. <tr>
  239. <td class="bold">Variables</td>
  240. <td>player<br>id</td>
  241. </tr>
  242. </table>
  243. <table>
  244. <tr>
  245. <th class="command">block_break</th>
  246. <th class="desc">a block is broken by a player</th>
  247. </tr>
  248. <tr>
  249. <td class="bold">Variables</td>
  250. <td>player<br>block<br>*cancel</td>
  251. </tr>
  252. </table>
  253. <table>
  254. <tr>
  255. <th class="command">block_place</th>
  256. <th class="desc">a block is placed by a player</th>
  257. </tr>
  258. <tr>
  259. <td class="bold">Variables</td>
  260. <td>player<br>block<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
  261. </tr>
  262. </table>
  263. <table>
  264. <tr>
  265. <th class="command">block_click</th>
  266. <th class="desc">a block gets clicked by a player</th>
  267. </tr>
  268. <tr>
  269. <td class="bold">Variables</td>
  270. <td>player<br>**block<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/block/Action.html" target="_blank">action</a> as string<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
  271. </tr>
  272. </table>
  273. <table>
  274. <tr>
  275. <th class="command">block_burn</th>
  276. <th class="desc">a block is burned</th>
  277. </tr>
  278. <tr>
  279. <td class="bold">Variables</td>
  280. <td>block<br>block_source<br>*cancel</td>
  281. </tr>
  282. </table>
  283. <table>
  284. <tr>
  285. <th class="command">block_spread</th>
  286. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/org/bukkit/event/block/BlockSpreadEvent.html" target="_blank">Paper API#BlockSpreadEvent</a></th>
  287. </tr>
  288. <tr>
  289. <td class="bold">Variables</td>
  290. <td>block<br>block_source<br>*cancel</td>
  291. </tr>
  292. </table>
  293. <table>
  294. <tr>
  295. <th class="command">block_fade</th>
  296. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/org/bukkit/event/block/BlockFadeEvent.html" target="_blank">Paper API#BlockFadeEvent</a></th>
  297. </tr>
  298. <tr>
  299. <td class="bold">Variables</td>
  300. <td>block<br>*cancel</td>
  301. </tr>
  302. </table>
  303. <table>
  304. <tr>
  305. <th class="command">bucket_use</th>
  306. <th class="desc">a bucket is filled / vacated</th>
  307. </tr>
  308. <tr>
  309. <td class="bold">Variables</td>
  310. <td>player<br>block<br>bucket as material<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
  311. </tr>
  312. </table>
  313. <table>
  314. <tr>
  315. <th class="command">inv_click</th>
  316. <th class="desc">a slot in an container gets clicked</th>
  317. </tr>
  318. <tr>
  319. <td class="bold">Variables</td>
  320. <td>player<br>inv<br>**inv_clicked<br>inv_title as text<br>inv_slot as double<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/ClickType.html" target="_blank">click</a> as string<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/InventoryAction.html" target="_blank">action</a> as string<br>*cancel</td>
  321. </tr>
  322. </table>
  323. <table>
  324. <tr>
  325. <th class="command">snuvi_click</th>
  326. <th class="desc">a slot in an custom inventory gets clicked</th>
  327. </tr>
  328. <tr>
  329. <td class="bold">Variables</td>
  330. <td>player<br>inv<br>inv_title as text<br>inv_slot as double<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/ClickType.html" target="_blank">click</a> as string<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/InventoryAction.html" target="_blank">action</a> as string</td>
  331. </tr>
  332. <tr>
  333. <td class="bold">Info</td>
  334. <td>Custom inventories are not script-across.</td>
  335. </tr>
  336. </table>
  337. <table>
  338. <tr>
  339. <th class="command">inv_close</th>
  340. <th class="desc">an inventory gets closed</th>
  341. </tr>
  342. <tr>
  343. <td class="bold">Variables</td>
  344. <td>player<br>inv<br>inv_title as text</td>
  345. </tr>
  346. </table>
  347. <table>
  348. <tr>
  349. <th class="command">item_consume</th>
  350. <th class="desc">an item gets consumed by a player</th>
  351. </tr>
  352. <tr>
  353. <td class="bold">Variables</td>
  354. <td>player<br>item<br>*cancel</td>
  355. </tr>
  356. </table>
  357. <table>
  358. <tr>
  359. <th class="command">pre_craft</th>
  360. <th class="desc">a player crafts an item</th>
  361. </tr>
  362. <tr>
  363. <td class="bold">Variables</td>
  364. <td>players as list with players<br>*item<br>*inv</td>
  365. </tr>
  366. <tr>
  367. <td class="bold">Info</td>
  368. <td>item can be set to null</td>
  369. </tr>
  370. </table>
  371. <table>
  372. <tr>
  373. <th class="command">craft</th>
  374. <th class="desc">a player takes the result item out of craft inventory</th>
  375. </tr>
  376. <tr>
  377. <td class="bold">Variables</td>
  378. <td>player<br>item<br>*cancel</td>
  379. </tr>
  380. </table>
  381. <table>
  382. <tr>
  383. <th class="command">player_change_world</th>
  384. <th class="desc">a player changes the world</th>
  385. </tr>
  386. <tr>
  387. <td class="bold">Variables</td>
  388. <td>player<br>from world as string</td>
  389. </tr>
  390. </table>
  391. <table>
  392. <tr>
  393. <th class="command">player_teleport</th>
  394. <th class="desc">a player teleports</th>
  395. </tr>
  396. <tr>
  397. <td class="bold">Variables</td>
  398. <td>player<br>from as location<br>to as location<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/player/PlayerTeleportEvent.TeleportCause.html" target="_blank">cause</a> as string<br>*cancel</td>
  399. </tr>
  400. </table>
  401. <table>
  402. <tr>
  403. <th class="command">fishing</th>
  404. <th class="desc">a player fishes something</th>
  405. </tr>
  406. <tr>
  407. <td class="bold">Variables</td>
  408. <td>player<br>**entity<br>*experience<br>hook as entity<br>*cancel</td>
  409. </tr>
  410. </table>
  411. <table>
  412. <tr>
  413. <th class="command">command</th>
  414. <th class="desc">a player uses a non custom-command</th>
  415. </tr>
  416. <tr>
  417. <td class="bold">Variables</td>
  418. <td>player<br>command as string<br>permission as string<br>command_class as string<br>*cancel</td>
  419. </tr>
  420. </table>
  421. <table>
  422. <tr>
  423. <th class="command">custom_command</th>
  424. <th class="desc">something uses a custom-command</th>
  425. </tr>
  426. <tr>
  427. <td class="bold">Variables</td>
  428. <td>sender<br>command as string<br>args as list<br>string_args as list with strings only</td>
  429. </tr>
  430. <tr>
  431. <td class="bold">Info</td>
  432. <td>sender can be a player, console...<br></td>
  433. </tr>
  434. </table>
  435. <table>
  436. <tr>
  437. <th class="command">chat</th>
  438. <th class="desc">a player writes into chat</th>
  439. </tr>
  440. <tr>
  441. <td class="bold">Variables</td>
  442. <td>player<br>*message as text<br>*cancel</td>
  443. </tr>
  444. </table>
  445. <table>
  446. <tr>
  447. <th class="command">projectile_hit</th>
  448. <th class="desc">a thrown projectile hits a block or an entity</th>
  449. </tr>
  450. <tr>
  451. <td class="bold">Variables</td>
  452. <td>**shooter<br>projectile<br>**entity_hit<br>**block_hit<br>*cancel</td>
  453. </tr>
  454. </table>
  455. <table>
  456. <tr>
  457. <th class="command">arm_swing</th>
  458. <th class="desc">a player makes an arm_swing (might be a leftclick into air)</th>
  459. </tr>
  460. <tr>
  461. <td class="bold">Variables</td>
  462. <td>player<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
  463. </tr>
  464. </table>
  465. <table>
  466. <tr>
  467. <th class="command">explosion</th>
  468. <th class="desc">explosions are cancelled on default</th>
  469. </tr>
  470. <tr>
  471. <td class="bold">Variables</td>
  472. <td>entity<br>*fire as boolean<br>*radius<br>*cancel | true</td>
  473. </tr>
  474. </table>
  475. <table>
  476. <tr>
  477. <th class="command">missing_command</th>
  478. <th class="desc">a sender uses a non-existing command</th>
  479. </tr>
  480. <tr>
  481. <td class="bold">Variables</td>
  482. <td>sender<br>command</td>
  483. </tr>
  484. </table>
  485. <table>
  486. <tr>
  487. <th class="command">missing_perm</th>
  488. <th class="desc">a sender has no permissions for a used command</th>
  489. </tr>
  490. <tr>
  491. <td class="bold">Variables</td>
  492. <td>sender<br>command<br>perm</td>
  493. </tr>
  494. </table>
  495. <table>
  496. <tr>
  497. <th class="command">player_data_tick</th>
  498. <th class="desc">thrown if a timer from data.setTimer reached 0</th>
  499. </tr>
  500. <tr>
  501. <td class="bold">Variables</td>
  502. <td>player<br>var</td>
  503. </tr>
  504. </table>
  505. <table>
  506. <tr>
  507. <th class="command">player_elytra_start</th>
  508. <th class="desc">thrown if a player starts using an elytra</th>
  509. </tr>
  510. <tr>
  511. <td class="bold">Variables</td>
  512. <td>player</td>
  513. </tr>
  514. </table>
  515. <table>
  516. <tr>
  517. <th class="command">player_elytra_stop</th>
  518. <th class="desc">thrown if a player stops using an elytra</th>
  519. </tr>
  520. <tr>
  521. <td class="bold">Variables</td>
  522. <td>player</td>
  523. </tr>
  524. </table>
  525. <table>
  526. <tr>
  527. <th class="command">player_item_held</th>
  528. <th class="desc">a player changes their hotbar slot</th>
  529. </tr>
  530. <tr>
  531. <td class="bold">Variables</td>
  532. <td>player<br>from as double<br>to as double<br>*cancel</td>
  533. </tr>
  534. </table>
  535. <table>
  536. <tr>
  537. <th class="command">player_swap_hand_items</th>
  538. <th class="desc">a player swaps their items in their hands</th>
  539. </tr>
  540. <tr>
  541. <td class="bold">Variables</td>
  542. <td>player<br>*cancel</td>
  543. </tr>
  544. </table>
  545. <table>
  546. <tr>
  547. <th class="command">player_jump</th>
  548. <th class="desc">a player jumps</th>
  549. </tr>
  550. <tr>
  551. <td class="bold">Variables</td>
  552. <td>player</td>
  553. </tr>
  554. </table>
  555. <table>
  556. <tr>
  557. <th class="command">world_load</th>
  558. <th class="desc">a world gets loaded</th>
  559. </tr>
  560. <tr>
  561. <td class="bold">Variables</td>
  562. <td>world</td>
  563. </tr>
  564. </table>
  565. <table>
  566. <tr>
  567. <th class="command">vote</th>
  568. <th class="desc">a vote gets received</th>
  569. </tr>
  570. <tr>
  571. <td class="bold">Variables</td>
  572. <td>from as string<br>name as string<br>ip as string<br>timestamp as double</td>
  573. </tr>
  574. </table>
  575. <table>
  576. <tr>
  577. <th class="command">vehicle_enter</th>
  578. <th class="desc">an entity enters a vehicle</th>
  579. </tr>
  580. <tr>
  581. <td class="bold">Variables</td>
  582. <td>vehicle<br>entity</td>
  583. </tr>
  584. </table>
  585. <table>
  586. <tr>
  587. <th class="command">vehicle_exit</th>
  588. <th class="desc">an living_entity exits a vehicle</th>
  589. </tr>
  590. <tr>
  591. <td class="bold">Variables</td>
  592. <td>vehicle<br>living_entity</td>
  593. </tr>
  594. </table>
  595. <table>
  596. <tr>
  597. <th class="command">block_shear</th>
  598. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/io/papermc/paper/event/block/PlayerShearBlockEvent.html" target="_blank">a player uses shears on a block</a></th>
  599. </tr>
  600. <tr>
  601. <td class="bold">Variables</td>
  602. <td>player<br>block<br>hand<br>*drops<br>*cancel</td>
  603. </tr>
  604. </table>
  605. <table>
  606. <tr>
  607. <th class="command">bell_ring</th>
  608. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/org/bukkit/event/block/BellRingEvent.html" target="_blank">a bell is rung</a></th>
  609. </tr>
  610. <tr>
  611. <td class="bold">Variables</td>
  612. <td>block<br>**entity<br>direction<br>*cancel</td>
  613. </tr>
  614. </table>
  615. <table>
  616. <tr>
  617. <th class="command">spectation_start</th>
  618. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerStartSpectatingEntityEvent.html" target="_blank">a player starts spectating</a></th>
  619. </tr>
  620. <tr>
  621. <td class="bold">Variables</td>
  622. <td>player<br>entity<br>*cancel</td>
  623. </tr>
  624. </table>
  625. <table>
  626. <tr>
  627. <th class="command">spectation_stop</th>
  628. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerStopSpectatingEntityEvent.html" target="_blank">a player stops spectating</a></th>
  629. </tr>
  630. <tr>
  631. <td class="bold">Variables</td>
  632. <td>player<br>entity<br>*cancel</td>
  633. </tr>
  634. </table>
  635. <table>
  636. <tr>
  637. <th class="command">player_pickup_exp</th>
  638. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerPickupExperienceEvent.html" target="_blank">a player picks up XP</a></th>
  639. </tr>
  640. <tr>
  641. <td class="bold">Variables</td>
  642. <td>player<br>*cancel</td>
  643. </tr>
  644. </table>
  645. <table>
  646. <tr>
  647. <th class="command">elytra_boost</th>
  648. <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerElytraBoostEvent.html" target="_blank">a player boosts using elytra</a></th>
  649. </tr>
  650. <tr>
  651. <td class="bold">Variables</td>
  652. <td>player<br>hand<br>firework as entity<br>*consume as boolean<br>*cancel</td>
  653. </tr>
  654. </table>
  655. </section>
  656. <section id="Event">
  657. <table>
  658. <tr>
  659. <th class="command">event.addMoveData</th>
  660. <th class="desc">creates an area for player_move events and returns the id</th>
  661. </tr>
  662. <tr>
  663. <td class="bold">Format</td>
  664. <td>event.addMoveData(location1, location2, cooldown, livingtime, [uuid / uuid_string / player])</td>
  665. </tr>
  666. <tr>
  667. <td class="bold">Arguments</td>
  668. <td>
  669. cooldown: -1 terminated after a single trigger<br>
  670. cooldown: > 0 clock rate in ticks, no termination<br>
  671. livingtime: -1 area lives forever<br>
  672. livingtime: > 0 stays amount of ticks alive<br>
  673. uuid / uuid_string / player: event only triggers for this player
  674. </td>
  675. </tr>
  676. <tr>
  677. <td class="bold">Info</td>
  678. <td>on script termination this area will be removed</td>
  679. </tr>
  680. </table>
  681. <table>
  682. <tr>
  683. <th class="command"event.removeMoveData</th>
  684. <th class="desc">removes an area for player_move events by id</th>
  685. </tr>
  686. <tr>
  687. <td class="bold">Format</td>
  688. <td>event.removeMoveData(id)</td>
  689. </tr>
  690. </table>
  691. </section>
  692. <section id="Ban">
  693. <table>
  694. <tr>
  695. <th class="command">ban.add</th>
  696. <th class="desc">bans a player from the server</th>
  697. </tr>
  698. <tr>
  699. <td class="bold">Format</td>
  700. <td>ban.add(player_name, reason, banner, [end_date])</td>
  701. </tr>
  702. <tr>
  703. <td class="bold">Arguments</td>
  704. <td>
  705. reason as string<br>
  706. banner as string (the person who bans, write what you want)<br>
  707. end_date as calendar object
  708. </td>
  709. </tr>
  710. </table>
  711. <table>
  712. <tr>
  713. <th class="command">ban.remove</th>
  714. <th class="desc">unbans a player from the server</th>
  715. </tr>
  716. <tr>
  717. <td class="bold">Format</td>
  718. <td>ban.remove(player_uuid)</td>
  719. </tr>
  720. </table>
  721. <table>
  722. <tr>
  723. <th class="command">ban.addIp</th>
  724. <th class="desc">bans an IP from the server</th>
  725. </tr>
  726. <tr>
  727. <td class="bold">Format</td>
  728. <td>ban.addIp(ip, reason, banner, [end_date])</td>
  729. </tr>
  730. <tr>
  731. <td class="bold">Arguments</td>
  732. <td>
  733. reason as string<br>
  734. banner as string (the person who bans, write what you want)<br>
  735. end_date as calendar object
  736. </td>
  737. </tr>
  738. </table>
  739. <table>
  740. <tr>
  741. <th class="command">ban.removeIp</th>
  742. <th class="desc">unbans an IP from the server</th>
  743. </tr>
  744. <tr>
  745. <td class="bold">Format</td>
  746. <td>ban.removeIp(ip)</td>
  747. </tr>
  748. </table>
  749. <table>
  750. <tr>
  751. <th class="command">ban.kick</th>
  752. <th class="desc">kicks a player from the server</th>
  753. </tr>
  754. <tr>
  755. <td class="bold">Format</td>
  756. <td>ban.kick(player, reason)</td>
  757. </tr>
  758. <tr>
  759. <td class="bold">Arguments</td>
  760. <td>reason as text</td>
  761. </tr>
  762. </table>
  763. </section>
  764. <section id="Block">
  765. <table>
  766. <tr>
  767. <th class="command">block.setData</th>
  768. <th class="desc">set a block</th>
  769. </tr>
  770. <tr>
  771. <td class="bold">Format</td>
  772. <td>block.setData(block, blockdata, [boolean | false])</td>
  773. </tr>
  774. <tr>
  775. <td class="bold">Arguments</td>
  776. <td>boolean true places with block update</td>
  777. </tr>
  778. </table>
  779. <table>
  780. <tr>
  781. <th class="command">block.setMaterial</th>
  782. <th class="desc">set a block</th>
  783. </tr>
  784. <tr>
  785. <td class="bold">Format</td>
  786. <td>block.setMaterial(block, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material</a>, [boolean | false])</td>
  787. </tr>
  788. <tr>
  789. <td class="bold">Arguments</td>
  790. <td>boolean true places with block update</td>
  791. </tr>
  792. </table>
  793. <table>
  794. <tr>
  795. <th class="command">block.clone</th>
  796. <th class="desc">clone a block to a location</th>
  797. </tr>
  798. <tr>
  799. <td class="bold">Format</td>
  800. <td>block.clone(block, location, [boolean | false])</td>
  801. </tr>
  802. <tr>
  803. <td class="bold">Arguments</td>
  804. <td>boolean true places with block update</td>
  805. </tr>
  806. </table>
  807. <table>
  808. <tr>
  809. <th class="command">block.setSign</th>
  810. <th class="desc">set text on a sign</th>
  811. </tr>
  812. <tr>
  813. <td class="bold">Format</td>
  814. <td>block.setSign(block, side, row, text)</td>
  815. </tr>
  816. <tr>
  817. <td class="bold">Arguments</td>
  818. <td>row from 0 to 3<br>side: "FRONT"/"BACK"</td>
  819. </tr>
  820. </table>
  821. <table>
  822. <tr>
  823. <th class="command">block.getSign</th>
  824. <th class="desc">returns the text of a sign from a specific row</th>
  825. </tr>
  826. <tr>
  827. <td class="bold">Format</td>
  828. <td>block.getSign(block, side, row)</td>
  829. </tr>
  830. <tr>
  831. <td class="bold">Arguments</td>
  832. <td>row from 0 to 3<br>side: "FRONT"/"BACK"</td>
  833. </tr>
  834. </table>
  835. <table>
  836. <tr>
  837. <th class="command">block.signSetWaxed</th>
  838. <th class="desc">wax/unwax a sign</th>
  839. </tr>
  840. <tr>
  841. <td class="bold">Format</td>
  842. <td>block.signSetWaxed(block, boolean)</td>
  843. </tr>
  844. </table>
  845. <table>
  846. <tr>
  847. <th class="command">block.get</th>
  848. <th class="desc">returns a block</th>
  849. </tr>
  850. <tr>
  851. <td class="bold">Format</td>
  852. <td>block.get(location)</td>
  853. </tr>
  854. </table>
  855. <table>
  856. <tr>
  857. <th class="command">block.getData</th>
  858. <th class="desc">returns the blockdata of a block</th>
  859. </tr>
  860. <tr>
  861. <td class="bold">Format</td>
  862. <td>block.getData(block)</td>
  863. </tr>
  864. </table>
  865. <table>
  866. <tr>
  867. <th class="command">block.getInventory</th>
  868. <th class="desc">returns the inventory of a block or null if it is not a container</th>
  869. </tr>
  870. <tr>
  871. <td class="bold">Format</td>
  872. <td>block.getInventory(block)</td>
  873. </tr>
  874. </table>
  875. <table>
  876. <tr>
  877. <th class="command">block.getType</th>
  878. <th class="desc">returns the <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material</a> of a block</th>
  879. </tr>
  880. <tr>
  881. <td class="bold">Format</td>
  882. <td>block.getType(block)</td>
  883. </tr>
  884. </table>
  885. <table>
  886. <tr>
  887. <th class="command">block.getLocation</th>
  888. <th class="desc">returns the location of a block</th>
  889. </tr>
  890. <tr>
  891. <td class="bold">Format</td>
  892. <td>block.getLocation(block)</td>
  893. </tr>
  894. </table>
  895. <table>
  896. <tr>
  897. <th class="command">block.setOpen</th>
  898. <th class="desc">set the open property for a block</th>
  899. </tr>
  900. <tr>
  901. <td class="bold">Format</td>
  902. <td>block.setOpen(block, boolean)</td>
  903. </tr>
  904. </table>
  905. <table>
  906. <tr>
  907. <th class="command">block.isOpen</th>
  908. <th class="desc">returns true if the block is open</th>
  909. </tr>
  910. <tr>
  911. <td class="bold">Format</td>
  912. <td>block.isOpen(block)</td>
  913. </tr>
  914. </table>
  915. <table>
  916. <tr>
  917. <th class="command">block.getTag</th>
  918. <th class="desc">returns a tag</th>
  919. </tr>
  920. <tr>
  921. <td class="bold">Format</td>
  922. <td>block.getTag(String tag_name)</td>
  923. </tr>
  924. </table>
  925. <table>
  926. <tr>
  927. <th class="command">block.hasTag</th>
  928. <th class="desc">returns true if a block has a tag</th>
  929. </tr>
  930. <tr>
  931. <td class="bold">Format</td>
  932. <td>block.hasTag(block, tag)</td>
  933. </tr>
  934. </table>
  935. <table>
  936. <tr>
  937. <th class="command">block.break</th>
  938. <th class="desc">breaks a block and drops the item</th>
  939. </tr>
  940. <tr>
  941. <td class="bold">Format</td>
  942. <td>block.break(block, [entity])</td>
  943. </tr>
  944. </table>
  945. <table>
  946. <tr>
  947. <th class="command">block.isOpenable</th>
  948. <th class="desc">returns true if a block is openable</th>
  949. </tr>
  950. <tr>
  951. <td class="bold">Format</td>
  952. <td>block.isOpenable(block)</td>
  953. </tr>
  954. </table>
  955. <table>
  956. <tr>
  957. <th class="command">block.isDoor</th>
  958. <th class="desc">returns true if a block is a door</th>
  959. </tr>
  960. <tr>
  961. <td class="bold">Format</td>
  962. <td>block.isDoor(block)</td>
  963. </tr>
  964. </table>
  965. <table>
  966. <tr>
  967. <th class="command">block.setDoorHinge</th>
  968. <th class="desc">sets the door hinge of a block</th>
  969. </tr>
  970. <tr>
  971. <td class="bold">Format</td>
  972. <td>block.setDoorHinge(block, door_hinge_string)</td>
  973. </tr>
  974. </table>
  975. <table>
  976. <tr>
  977. <th class="command">block.getDoorHinge</th>
  978. <th class="desc">returns the door hinge of a block as string</th>
  979. </tr>
  980. <tr>
  981. <td class="bold">Format</td>
  982. <td>block.getDoorHinge(block)</td>
  983. </tr>
  984. </table>
  985. <table>
  986. <tr>
  987. <th class="command">block.setBisectedHalf</th>
  988. <th class="desc">sets the bisected half of a block</th>
  989. </tr>
  990. <tr>
  991. <td class="bold">Format</td>
  992. <td>block.setBisectedHalf(block, bisected_half_string)</td>
  993. </tr>
  994. </table>
  995. <table>
  996. <tr>
  997. <th class="command">block.getBisectedHalf</th>
  998. <th class="desc">returns the bisected half of a block as string</th>
  999. </tr>
  1000. <tr>
  1001. <td class="bold">Format</td>
  1002. <td>block.getBisectedHalf(block)</td>
  1003. </tr>
  1004. </table>
  1005. <table>
  1006. <tr>
  1007. <th class="command">block.isBisected</th>
  1008. <th class="desc">returns true if a block is bisected</th>
  1009. </tr>
  1010. <tr>
  1011. <td class="bold">Format</td>
  1012. <td>block.isBisected(block)</td>
  1013. </tr>
  1014. </table>
  1015. <table>
  1016. <tr>
  1017. <th class="command">block.setDirectionalFace</th>
  1018. <th class="desc">sets the directional face of a block</th>
  1019. </tr>
  1020. <tr>
  1021. <td class="bold">Format</td>
  1022. <td>block.setDirectionalFace(block, directional_face_string)</td>
  1023. </tr>
  1024. </table>
  1025. <table>
  1026. <tr>
  1027. <th class="command">block.getDirectionalFace</th>
  1028. <th class="desc">returns the directional face of a block as string</th>
  1029. </tr>
  1030. <tr>
  1031. <td class="bold">Format</td>
  1032. <td>block.getDirectionalFace(block)</td>
  1033. </tr>
  1034. </table>
  1035. <table>
  1036. <tr>
  1037. <th class="command">block.getDirectionalFaces</th>
  1038. <th class="desc">returns a list with directional faces as string of a block</th>
  1039. </tr>
  1040. <tr>
  1041. <td class="bold">Format</td>
  1042. <td>block.getDirectionalFaces(block)</td>
  1043. </tr>
  1044. </table>
  1045. <table>
  1046. <tr>
  1047. <th class="command">block.isDirectional</th>
  1048. <th class="desc">returns true if a block is directional</th>
  1049. </tr>
  1050. <tr>
  1051. <td class="bold">Format</td>
  1052. <td>block.isDirectional(block)</td>
  1053. </tr>
  1054. </table>
  1055. <table>
  1056. <tr>
  1057. <th class="command">block.setPersistent</th>
  1058. <th class="desc">sets the persistence of a block</th>
  1059. </tr>
  1060. <tr>
  1061. <td class="bold">Format</td>
  1062. <td>block.setPersistent(block, boolean)</td>
  1063. </tr>
  1064. </table>
  1065. <table>
  1066. <tr>
  1067. <th class="command">block.isPersistent</th>
  1068. <th class="desc">returns true if a block is persistent</th>
  1069. </tr>
  1070. <tr>
  1071. <td class="bold">Format</td>
  1072. <td>block.isPersistent(block)</td>
  1073. </tr>
  1074. </table>
  1075. <table>
  1076. <tr>
  1077. <th class="command">block.isLeaves</th>
  1078. <th class="desc">returns true if a block is a leaf</th>
  1079. </tr>
  1080. <tr>
  1081. <td class="bold">Format</td>
  1082. <td>block.isLeaves(block)</td>
  1083. </tr>
  1084. </table>
  1085. <table>
  1086. <tr>
  1087. <th class="command">block.canHaveWater</th>
  1088. <th class="desc">returns true if a block can have water</th>
  1089. </tr>
  1090. <tr>
  1091. <td class="bold">Format</td>
  1092. <td>block.canHaveWater(block)</td>
  1093. </tr>
  1094. </table>
  1095. <table>
  1096. <tr>
  1097. <th class="command">block.isWaterLogged</th>
  1098. <th class="desc">returns true if a block is waterlogged</th>
  1099. </tr>
  1100. <tr>
  1101. <td class="bold">Format</td>
  1102. <td>block.isWaterLogged(block)</td>
  1103. </tr>
  1104. </table>
  1105. <table>
  1106. <tr>
  1107. <th class="command">block.setWaterLogged</th>
  1108. <th class="desc">set the waterlogged property of a block</th>
  1109. </tr>
  1110. <tr>
  1111. <td class="bold">Format</td>
  1112. <td>block.setWaterLogged(block, boolean)</td>
  1113. </tr>
  1114. </table>
  1115. </section>
  1116. <section id="Databank">
  1117. <table>
  1118. <tr>
  1119. <th class="command">databank.prepare</th>
  1120. <th class="desc">returns the prepared statement</th>
  1121. </tr>
  1122. <tr>
  1123. <td class="bold">Format</td>
  1124. <td>databank.prepare(sql-query, [boolean autoclose | true])</td>
  1125. </tr>
  1126. </table>
  1127. <table>
  1128. <tr>
  1129. <th class="command">databank.setInt</th>
  1130. <th class="desc">sets an int in a statement</th>
  1131. </tr>
  1132. <tr>
  1133. <td class="bold">Format</td>
  1134. <td>databank.setInt(statement, index, int)</td>
  1135. </tr>
  1136. </table>
  1137. <table>
  1138. <tr>
  1139. <th class="command">databank.setDouble</th>
  1140. <th class="desc">sets a double in a statement</th>
  1141. </tr>
  1142. <tr>
  1143. <td class="bold">Format</td>
  1144. <td>databank.setDouble(statement, index, double)</td>
  1145. </tr>
  1146. </table>
  1147. <table>
  1148. <tr>
  1149. <th class="command">databank.setLong</th>
  1150. <th class="desc">sets a long in a statement</th>
  1151. </tr>
  1152. <tr>
  1153. <td class="bold">Format</td>
  1154. <td>databank.setLong(statement, index, long)</td>
  1155. </tr>
  1156. </table>
  1157. <table>
  1158. <tr>
  1159. <th class="command">databank.setString</th>
  1160. <th class="desc">sets a string in a statement</th>
  1161. </tr>
  1162. <tr>
  1163. <td class="bold">Format</td>
  1164. <td>databank.setString(statement, index, string)</td>
  1165. </tr>
  1166. </table>
  1167. <table>
  1168. <tr>
  1169. <th class="command">databank.setBool</th>
  1170. <th class="desc">sets a boolean in a statement</th>
  1171. </tr>
  1172. <tr>
  1173. <td class="bold">Format</td>
  1174. <td>databank.setBool(statement, index, boolean)</td>
  1175. </tr>
  1176. </table>
  1177. <table>
  1178. <tr>
  1179. <th class="command">databank.getInt</th>
  1180. <th class="desc">returns an int from a result set</th>
  1181. </tr>
  1182. <tr>
  1183. <td class="bold">Format</td>
  1184. <td>databank.getInt(result-set, index)</td>
  1185. </tr>
  1186. </table>
  1187. <table>
  1188. <tr>
  1189. <th class="command">databank.getDouble</th>
  1190. <th class="desc">returns a double from a result set</th>
  1191. </tr>
  1192. <tr>
  1193. <td class="bold">Format</td>
  1194. <td>databank.getDouble(result-set, index)</td>
  1195. </tr>
  1196. </table>
  1197. <table>
  1198. <tr>
  1199. <th class="command">databank.getLong</th>
  1200. <th class="desc">returns a long from a result set</th>
  1201. </tr>
  1202. <tr>
  1203. <td class="bold">Format</td>
  1204. <td>databank.getLong(result-set, index)</td>
  1205. </tr>
  1206. </table>
  1207. <table>
  1208. <tr>
  1209. <th class="command">databank.getString</th>
  1210. <th class="desc">returns a string from a result set</th>
  1211. </tr>
  1212. <tr>
  1213. <td class="bold">Format</td>
  1214. <td>databank.getString(result-set, index)</td>
  1215. </tr>
  1216. </table>
  1217. <table>
  1218. <tr>
  1219. <th class="command">databank.getBool</th>
  1220. <th class="desc">returns a boolean from a result set</th>
  1221. </tr>
  1222. <tr>
  1223. <td class="bold">Format</td>
  1224. <td>databank.getBool(result-set, index)</td>
  1225. </tr>
  1226. </table>
  1227. <table>
  1228. <tr>
  1229. <th class="command">databank.execute</th>
  1230. <th class="desc">returns a result-set after executing a reading statement</th>
  1231. </tr>
  1232. <tr>
  1233. <td class="bold">Format</td>
  1234. <td>databank.execute(statement)</td>
  1235. </tr>
  1236. </table>
  1237. <table>
  1238. <tr>
  1239. <th class="command">databank.workerExecute</th>
  1240. <th class="desc">executes a writing statement</th>
  1241. </tr>
  1242. <tr>
  1243. <td class="bold">Format</td>
  1244. <td>databank.workerExecute(statement)</td>
  1245. </tr>
  1246. </table>
  1247. <table>
  1248. <tr>
  1249. <th class="command">databank.next</th>
  1250. <th class="desc">returns true and jumps to the next entry if the result-set has a next entry</th>
  1251. </tr>
  1252. <tr>
  1253. <td class="bold">Format</td>
  1254. <td>databank.next(result-set)</td>
  1255. </tr>
  1256. </table>
  1257. <table>
  1258. <tr>
  1259. <th class="command">databank.close</th>
  1260. <th class="desc">manual closing of a result-set</th>
  1261. </tr>
  1262. <tr>
  1263. <td class="bold">Format</td>
  1264. <td>databank.close(result-set)</td>
  1265. </tr>
  1266. </table>
  1267. </section>
  1268. <section id="Citizen">
  1269. <table>
  1270. <tr>
  1271. <th class="command">citizen.spawn</th>
  1272. <th class="desc">returns the spawned citizen</th>
  1273. </tr>
  1274. <tr>
  1275. <td class="bold">Format</td>
  1276. <td>citizen.spawn(location, name)</td>
  1277. </tr>
  1278. </table>
  1279. <table>
  1280. <tr>
  1281. <th class="command">citizen.despawn</th>
  1282. <th class="desc">despawns a citizen</th>
  1283. </tr>
  1284. <tr>
  1285. <td class="bold">Format</td>
  1286. <td>citizen.despawn(citizen)</td>
  1287. </tr>
  1288. </table>
  1289. <table>
  1290. <tr>
  1291. <th class="command">citizen.destroy</th>
  1292. <th class="desc">destroys a citizen</th>
  1293. </tr>
  1294. <tr>
  1295. <td class="bold">Format</td>
  1296. <td>citizen.destroy(citizen)</td>
  1297. </tr>
  1298. </table>
  1299. <table>
  1300. <table>
  1301. <tr>
  1302. <th class="command">citizen.setSkin</th>
  1303. <th class="desc">sets the skin of a citizen</th>
  1304. </tr>
  1305. <tr>
  1306. <td class="bold">Format</td>
  1307. <td>citizen.setSkin(citizen, <a href="https://mineskin.org/gallery" target="_blank">texture_value</a>, <a href="https://mineskin.org/gallery" target="_blank">texture_signature</a>)</td>
  1308. </tr>
  1309. </table>
  1310. <table>
  1311. <tr>
  1312. <th class="command">citizen.setName</th>
  1313. <th class="desc">sets the name of a citizen</th>
  1314. </tr>
  1315. <tr>
  1316. <td class="bold">Format</td>
  1317. <td>citizen.setName(citizen, name)</td>
  1318. </tr>
  1319. </table>
  1320. <table>
  1321. <tr>
  1322. <th class="command">citizen.showNameplate</th>
  1323. <th class="desc">sets the nameplate visibility of a citizen</th>
  1324. </tr>
  1325. <tr>
  1326. <td class="bold">Format</td>
  1327. <td>citizen.showNameplate(citizen, boolean)</td>
  1328. </tr>
  1329. </table>
  1330. <table>
  1331. <tr>
  1332. <th class="command">citizen.setEquip</th>
  1333. <th class="desc">equips a citizen</th>
  1334. </tr>
  1335. <tr>
  1336. <td class="bold">Format</td>
  1337. <td>citizen.setEquip(citizen, <a href="https://jd.citizensnpcs.co/net/citizensnpcs/api/trait/trait/Equipment.EquipmentSlot.html" target="_blank">slot_name</a>, itemstack)</td>
  1338. </tr>
  1339. </table>
  1340. <table>
  1341. <tr>
  1342. <th class="command">citizen.getName</th>
  1343. <th class="desc">returns the name as string</th>
  1344. </tr>
  1345. <tr>
  1346. <td class="bold">Format</td>
  1347. <td>citizen.getName(citizen)</td>
  1348. </tr>
  1349. </table>
  1350. <table>
  1351. <tr>
  1352. <th class="command">citizen.lookclose</th>
  1353. <th class="desc">makes a citizen look at nearby players</th>
  1354. </tr>
  1355. <tr>
  1356. <td class="bold">Format</td>
  1357. <td>citizen.lookclose(citizen)</td>
  1358. </tr>
  1359. </table>
  1360. </section>
  1361. <section id="Config">
  1362. <table>
  1363. <tr>
  1364. <th class="command">config.saveAsync</th>
  1365. <th class="desc">saves a config asynchronous</th>
  1366. </tr>
  1367. <tr>
  1368. <td class="bold">Format</td>
  1369. <td>config.saveAsync(config)</td>
  1370. </tr>
  1371. </table>
  1372. </section>
  1373. <section id="Damage">
  1374. <table>
  1375. <tr>
  1376. <th class="command">damage.get</th>
  1377. <th class="desc">returns a damage_source</th>
  1378. </tr>
  1379. <tr>
  1380. <td class="bold">Format</td>
  1381. <td>damage.get(damage_name)</td>
  1382. </tr>
  1383. <tr>
  1384. <td class="bold">Arguments</td>
  1385. <td>
  1386. damage_name:
  1387. inFire, lightningBolt, onFire, lava, hotFloor, inWall, cramming, drown, starve, cactus, fall, flyIntoWall, outOfWorld, generic, magic, wither, anvil, fallingBlock, dragonBreath, dryout, sweetBerryBush, freeze, fallingStalactite, stalagmite, outsideBorder, genericKill
  1388. </td>
  1389. </tr>
  1390. </table>
  1391. <table>
  1392. <tr>
  1393. <th class="command">damage.getType</th>
  1394. <th class="desc">returns the type of a damage_source as string</th>
  1395. </tr>
  1396. <tr>
  1397. <td class="bold">Format</td>
  1398. <td>damage.getType(damage_source)</td>
  1399. </tr>
  1400. </table>
  1401. <table>
  1402. <tr>
  1403. <th class="command">damage.getImmediateSource</th>
  1404. <th class="desc">returns the direct damager entity of a damage_source</th>
  1405. </tr>
  1406. <tr>
  1407. <td class="bold">Format</td>
  1408. <td>damage.getImmediateSource(damage_source)</td>
  1409. </tr>
  1410. </table>
  1411. <table>
  1412. <tr>
  1413. <th class="command">damage.getTrueSource</th>
  1414. <th class="desc">returns the indirect damager entity of a damage_source</th>
  1415. </tr>
  1416. <tr>
  1417. <td class="bold">Format</td>
  1418. <td>damage.getTrueSource(damage_source)</td>
  1419. </tr>
  1420. </table>
  1421. <table>
  1422. <tr>
  1423. <th class="command">damage.isDifficultyscaled</th>
  1424. <th class="desc">returns true if the damage_source will have its damageamount scaled based on the current difficulty</th>
  1425. </tr>
  1426. <tr>
  1427. <td class="bold">Format</td>
  1428. <td>damage.isDifficultyscaled(damage_source)</td>
  1429. </tr>
  1430. </table>
  1431. <table>
  1432. <tr>
  1433. <th class="command">damage.isIndirect</th>
  1434. <th class="desc">returns true if the damage_source is indirect</th>
  1435. </tr>
  1436. <tr>
  1437. <td class="bold">Format</td>
  1438. <td>damage.isIndirect(damage_source)</td>
  1439. </tr>
  1440. </table>
  1441. </section>
  1442. <section id="Data">
  1443. <table>
  1444. <tr>
  1445. <th class="command">data.set</th>
  1446. <th class="desc">sets data for a player (script-across)</th>
  1447. </tr>
  1448. <tr>
  1449. <td class="bold">Format</td>
  1450. <td>data.set(player, key, value)</td>
  1451. </tr>
  1452. </table>
  1453. <table>
  1454. <tr>
  1455. <th class="command">data.get</th>
  1456. <th class="desc">returns data from a player (script-across)</th>
  1457. </tr>
  1458. <tr>
  1459. <td class="bold">Format</td>
  1460. <td>data.get(player, key)</td>
  1461. </tr>
  1462. </table>
  1463. <table>
  1464. <tr>
  1465. <th class="command">data.setTimer</th>
  1466. <th class="desc">sets timed data for a player (script-across)</th>
  1467. </tr>
  1468. <tr>
  1469. <td class="bold">Format</td>
  1470. <td>data.setTimer(player, key, ticks)</td>
  1471. </tr>
  1472. <tr>
  1473. <td class="bold">Arguments</td>
  1474. <td>set ticks to -1 to delete the timer<br>when the timer expires the event player_data_tick is thrown</td>
  1475. </tr>
  1476. </table>
  1477. <table>
  1478. <tr>
  1479. <th class="command">data.getTimer</th>
  1480. <th class="desc">returns the remaining ticks of timed data (script-across)</th>
  1481. </tr>
  1482. <tr>
  1483. <td class="bold">Format</td>
  1484. <td>data.getTimer(player, key)</td>
  1485. </tr>
  1486. </table>
  1487. <table>
  1488. <tr>
  1489. <th class="command">data.clear</th>
  1490. <th class="desc">deletes all data from a player (script-across)</th>
  1491. </tr>
  1492. <tr>
  1493. <td class="bold">Format</td>
  1494. <td>data.clear(player)</td>
  1495. </tr>
  1496. </table>
  1497. </section>
  1498. <section id="Gamerule">
  1499. <table>
  1500. <tr>
  1501. <th class="command">gamerule.getKey</th>
  1502. <th class="desc">returns a gamerule_key</th>
  1503. </tr>
  1504. <tr>
  1505. <td class="bold">Format</td>
  1506. <td>gamerule.getKey(gamerule_string)</td>
  1507. </tr>
  1508. </table>
  1509. <table>
  1510. <tr>
  1511. <th class="command">gamerule.getValue</th>
  1512. <th class="desc">return a gamerule_value from a world</th>
  1513. </tr>
  1514. <tr>
  1515. <td class="bold">Format</td>
  1516. <td>gamerule.getValue(world, gamerule_key)</td>
  1517. </tr>
  1518. </table>
  1519. <table>
  1520. <tr>
  1521. <th class="command">gamerule.setBool</th>
  1522. <th class="desc">sets a gamerule_value</th>
  1523. </tr>
  1524. <tr>
  1525. <td class="bold">Format</td>
  1526. <td>gamerule.setBool(world, gamerule_value, boolean)</td>
  1527. </tr>
  1528. </table>
  1529. <table>
  1530. <tr>
  1531. <th class="command">gamerule.setInt</th>
  1532. <th class="desc">sets a gamerule_key</th>
  1533. </tr>
  1534. <tr>
  1535. <td class="bold">Format</td>
  1536. <td>gamerule.setInt(world, gamerule_key, value)</td>
  1537. </tr>
  1538. </table>
  1539. </table>
  1540. </section>
  1541. <section id="General">
  1542. <table>
  1543. <tr>
  1544. <th class="command">msg</th>
  1545. <th class="desc">sends a message</th>
  1546. </tr>
  1547. <tr>
  1548. <td class="bold">Format</td>
  1549. <td>msg(receiver, text)</td>
  1550. </tr>
  1551. <tr>
  1552. <td class="bold">Info</td>
  1553. <td>receiver:<br>sender (player / console)<br>"dev" (perm "script.debug" needed)<br>"online"<br>"server"</td>
  1554. </tr>
  1555. </table>
  1556. <table>
  1557. <tr>
  1558. <th class="command">isPlayer</th>
  1559. <th class="desc">returns true if the argument is a player</th>
  1560. </tr>
  1561. <tr>
  1562. <td class="bold">Format</td>
  1563. <td>isPlayer(anything)</td>
  1564. </tr>
  1565. </table>
  1566. <table>
  1567. <tr>
  1568. <th class="command">isLiving</th>
  1569. <th class="desc">returns true if the argument is a living entity</th>
  1570. </tr>
  1571. <tr>
  1572. <td class="bold">Format</td>
  1573. <td>isLiving(anything)</td>
  1574. </tr>
  1575. </table>
  1576. <table>
  1577. <tr>
  1578. <th class="command">isCitizen</th>
  1579. <th class="desc">returns true if the argument is a citizen</th>
  1580. </tr>
  1581. <tr>
  1582. <td class="bold">Format</td>
  1583. <td>isCitizen(anything)</td>
  1584. </tr>
  1585. </table>
  1586. <table>
  1587. <tr>
  1588. <th class="command">setMOTD</th>
  1589. <th class="desc">sets the message of the day in the server list</th>
  1590. </tr>
  1591. <tr>
  1592. <td class="bold">Format</td>
  1593. <td>setMOTD(string)</td>
  1594. </tr>
  1595. </table>
  1596. <table>
  1597. <tr>
  1598. <th class="command">getMOTD</th>
  1599. <th class="desc">returns the message of the day as text</th>
  1600. </tr>
  1601. <tr>
  1602. <td class="bold">Format</td>
  1603. <td>getMOTD()</td>
  1604. </tr>
  1605. </table>
  1606. <table>
  1607. <tr>
  1608. <th class="command">stop</th>
  1609. <th class="desc">stops the server</th>
  1610. </tr>
  1611. <tr>
  1612. <td class="bold">Format</td>
  1613. <td>stop()</td>
  1614. </tr>
  1615. </table>
  1616. </section>
  1617. <section id="Material">
  1618. <table>
  1619. <tr>
  1620. <th class="command">material.get</th>
  1621. <th class="desc">returns a material</th>
  1622. </tr>
  1623. <tr>
  1624. <td class="bold">Format</td>
  1625. <td>material.get(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material_name</a>)</td>
  1626. </tr>
  1627. </table>
  1628. <table>
  1629. <tr>
  1630. <th class="command">material.getAll</th>
  1631. <th class="desc">returns an array with all materials</th>
  1632. </tr>
  1633. <tr>
  1634. <td class="bold">Format</td>
  1635. <td>material.getAll()</td>
  1636. </tr>
  1637. </table>
  1638. <table>
  1639. <tr>
  1640. <th class="command">material.isItem</th>
  1641. <th class="desc">returns true if a material is an holdable item</th>
  1642. </tr>
  1643. <tr>
  1644. <td class="bold">Format</td>
  1645. <td>material.isItem(material)</td>
  1646. </tr>
  1647. </table>
  1648. <table>
  1649. <tr>
  1650. <th class="command">material.isBlock</th>
  1651. <th class="desc">returns true if a material is an placeable block</th>
  1652. </tr>
  1653. <tr>
  1654. <td class="bold">Format</td>
  1655. <td>material.isBlock(material)</td>
  1656. </tr>
  1657. </table>
  1658. <table>
  1659. <tr>
  1660. <th class="command">material.isSolid</th>
  1661. <th class="desc">returns true if a material is a block and solid (can be built upon)</th>
  1662. </tr>
  1663. <tr>
  1664. <td class="bold">Format</td>
  1665. <td>material.isSolid(material)</td>
  1666. </tr>
  1667. </table>
  1668. <table>
  1669. <tr>
  1670. <th class="command">material.setCooldown</th>
  1671. <th class="desc">sets the cooldown of a material of a player</th>
  1672. </tr>
  1673. <tr>
  1674. <td class="bold">Format</td>
  1675. <td>material.setCooldown(material, player, ticks)</td>
  1676. </tr>
  1677. </table>
  1678. <table>
  1679. <tr>
  1680. <th class="command">material.getSlot</th>
  1681. <th class="desc">returns the slot to use for an item attribute</th>
  1682. </tr>
  1683. <tr>
  1684. <td class="bold">Format</td>
  1685. <td>material.getSlot(material)</td>
  1686. </tr>
  1687. </table>
  1688. </section>
  1689. <section id="Item">
  1690. <table>
  1691. <tr>
  1692. <th class="command">item.new</th>
  1693. <th class="desc">return an itemstack</th>
  1694. </tr>
  1695. <tr>
  1696. <td class="bold">Format</td>
  1697. <td>item.new(material, [amount | 1])</td>
  1698. </tr>
  1699. </table>
  1700. <table>
  1701. <tr>
  1702. <th class="command">item.drop</th>
  1703. <th class="desc">drops an itemstack at a location and returns the item_entity</th>
  1704. </tr>
  1705. <tr>
  1706. <td class="bold">Format</td>
  1707. <td>item.drop(itemstack, location)</td>
  1708. </tr>
  1709. </table>
  1710. <table>
  1711. <tr>
  1712. <th class="command">item.getType</th>
  1713. <th class="desc">returns the <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material</a> of an itemstack</th>
  1714. </tr>
  1715. <tr>
  1716. <td class="bold">Format</td>
  1717. <td>item.getType(itemstack)</td>
  1718. </tr>
  1719. </table>
  1720. <table>
  1721. <tr>
  1722. <th class="command">item.getMaxAmount</th>
  1723. <th class="desc">returns the maximum size of an itemstack</th>
  1724. </tr>
  1725. <tr>
  1726. <td class="bold">Format</td>
  1727. <td>item.getMaxAmount(itemstack)</td>
  1728. </tr>
  1729. </table>
  1730. <table>
  1731. <tr>
  1732. <th class="command">item.getAmount</th>
  1733. <th class="desc">returns the size of an itemstack</th>
  1734. </tr>
  1735. <tr>
  1736. <td class="bold">Format</td>
  1737. <td>item.getAmount(itemstack)</td>
  1738. </tr>
  1739. </table>
  1740. <table>
  1741. <tr>
  1742. <th class="command">item.setAmount</th>
  1743. <th class="desc">sets the size of an itemstack</th>
  1744. </tr>
  1745. <tr>
  1746. <td class="bold">Format</td>
  1747. <td>item.setAmount(itemstack, size)</td>
  1748. </tr>
  1749. </table>
  1750. <table>
  1751. <tr>
  1752. <th class="command">item.hasName</th>
  1753. <th class="desc">returns true if the itemstack has a modified name</th>
  1754. </tr>
  1755. <tr>
  1756. <td class="bold">Format</td>
  1757. <td>item.hasName(itemstack)</td>
  1758. </tr>
  1759. </table>
  1760. <table>
  1761. <tr>
  1762. <th class="command">item.getName</th>
  1763. <th class="desc">returns the name of an itemstack as text or null</th>
  1764. </tr>
  1765. <tr>
  1766. <td class="bold">Format</td>
  1767. <td>item.getName(itemstack)</td>
  1768. </tr>
  1769. </table>
  1770. <table>
  1771. <tr>
  1772. <th class="command">item.setName</th>
  1773. <th class="desc">sets the name of an itemstack</th>
  1774. </tr>
  1775. <tr>
  1776. <td class="bold">Format</td>
  1777. <td>item.setName(itemstack, text_name)</td>
  1778. </tr>
  1779. </table>
  1780. <table>
  1781. <tr>
  1782. <th class="command">item.getLore</th>
  1783. <th class="desc">returns a list of texts with all lores of an itemstack</th>
  1784. </tr>
  1785. <tr>
  1786. <td class="bold">Format</td>
  1787. <td>item.getLore(itemstack)</td>
  1788. </tr>
  1789. </table>
  1790. <table>
  1791. <tr>
  1792. <th class="command">item.setLore</th>
  1793. <th class="desc">sets the lore of an itemstack</th>
  1794. </tr>
  1795. <tr>
  1796. <td class="bold">Format</td>
  1797. <td>item.setLore(itemstack, list)</td>
  1798. </tr>
  1799. <tr>
  1800. <td class="bold">Arguments</td>
  1801. <td>list of texts</td>
  1802. </tr>
  1803. </table>
  1804. <table>
  1805. <tr>
  1806. <th class="command">item.addAttribute</th>
  1807. <th class="desc">adds an attribute to an itemstack</th>
  1808. </tr>
  1809. <tr>
  1810. <td class="bold">Format</td>
  1811. <td>item.addAttribute(itemstack, <a href="https://minecraft.fandom.com/wiki/Attribute#Attributes" target="_blank">attribute</a>, slot, double, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/attribute/AttributeModifier.Operation.html" target="_blank">operation</a>)</td>
  1812. </tr>
  1813. </table>
  1814. <table>
  1815. <tr>
  1816. <th class="command">item.clearAttributes</th>
  1817. <th class="desc">removes all custom attributes from an itemstack</th>
  1818. </tr>
  1819. <tr>
  1820. <td class="bold">Format</td>
  1821. <td>item.clearAttributes(itemstack)</td>
  1822. </tr>
  1823. </table>
  1824. <table>
  1825. <tr>
  1826. <th class="command">item.hasAttributes</th>
  1827. <th class="desc">returns true if an itemstack has attributes</th>
  1828. </tr>
  1829. <tr>
  1830. <td class="bold">Format</td>
  1831. <td>item.hasAttributes(itemstack)</td>
  1832. </tr>
  1833. </table>
  1834. <table>
  1835. <tr>
  1836. <th class="command">item.addDefaultTags</th>
  1837. <th class="desc">adds the default attributes to an itemstack</th>
  1838. </tr>
  1839. <tr>
  1840. <td class="bold">Format</td>
  1841. <td>item.addDefaultTags(itemstack)</td>
  1842. </tr>
  1843. </table>
  1844. <table>
  1845. <tr>
  1846. <th class="command">item.addFlag</th>
  1847. <th class="desc">adds a flag to an itemstack</th>
  1848. </tr>
  1849. <tr>
  1850. <td class="bold">Format</td>
  1851. <td>item.addFlag(itemstack, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/ItemFlag.html" target="_blank">flag</a>)</td>
  1852. </tr>
  1853. </table>
  1854. <table>
  1855. <tr>
  1856. <th class="command">item.removeFlag</th>
  1857. <th class="desc">removes a flag from an itemstack</th>
  1858. </tr>
  1859. <tr>
  1860. <td class="bold">Format</td>
  1861. <td>item.removeFlag(itemstack, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/ItemFlag.html" target="_blank">flag</a>)</td>
  1862. </tr>
  1863. </table>
  1864. <table>
  1865. <tr>
  1866. <th class="command">item.addPotion</th>
  1867. <th class="desc">adds a potion effect to an item</th>
  1868. </tr>
  1869. <tr>
  1870. <td class="bold">Format</td>
  1871. <td>item.addPotion(itemstack, <a href="https://minecraft.fandom.com/wiki/Potion#ID" target="_blank">potion_name</a>, duration, power)</td>
  1872. </tr>
  1873. </table>
  1874. <table>
  1875. <tr>
  1876. <th class="command">item.clone</th>
  1877. <th class="desc">returns a copy of an itemstack</th>
  1878. </tr>
  1879. <tr>
  1880. <td class="bold">Format</td>
  1881. <td>item.clone(itemstack)</td>
  1882. </tr>
  1883. </table>
  1884. <table>
  1885. <tr>
  1886. <th class="command">item.getTag</th>
  1887. <th class="desc">returns an item tag</th>
  1888. </tr>
  1889. <tr>
  1890. <td class="bold">Format</td>
  1891. <td>item.getTag(String tag_name)</td>
  1892. </tr>
  1893. </table>
  1894. <table>
  1895. <tr>
  1896. <th class="command">item.hasTag</th>
  1897. <th class="desc">returns true if an itemstack has an item tag</th>
  1898. </tr>
  1899. <tr>
  1900. <td class="bold">Format</td>
  1901. <td>item.hasTag(itemstack, tag)</td>
  1902. </tr>
  1903. </table>
  1904. <table>
  1905. <tr>
  1906. <th class="command">item.isDamageable</th>
  1907. <th class="desc">returns true if the itemstack is damageable</th>
  1908. </tr>
  1909. <tr>
  1910. <td class="bold">Format</td>
  1911. <td>item.isDamageable(itemstack)</td>
  1912. </tr>
  1913. </table>
  1914. <table>
  1915. <tr>
  1916. <th class="command">item.getMaxDamage</th>
  1917. <th class="desc">returns the maximum damage the itemstack can get</th>
  1918. </tr>
  1919. <tr>
  1920. <td class="bold">Format</td>
  1921. <td>item.getMaxDamage(itemstack)</td>
  1922. </tr>
  1923. </table>
  1924. <table>
  1925. <tr>
  1926. <th class="command">item.setDamage</th>
  1927. <th class="desc">sets the damage of the itemstack</th>
  1928. </tr>
  1929. <tr>
  1930. <td class="bold">Format</td>
  1931. <td>item.setDamage(itemstack, amount)</td>
  1932. </tr>
  1933. </table>
  1934. <table>
  1935. <tr>
  1936. <th class="command">item.getDamage</th>
  1937. <th class="desc">returns the damage of an itemstack</th>
  1938. </tr>
  1939. <tr>
  1940. <td class="bold">Format</td>
  1941. <td>item.getDamage(itemstack)</td>
  1942. </tr>
  1943. </table>
  1944. <table>
  1945. <tr>
  1946. <th class="command">item.entity.get</th>
  1947. <th class="desc">returns the itemstack of an item_entity</th>
  1948. </tr>
  1949. <tr>
  1950. <td class="bold">Format</td>
  1951. <td>item.entity.get(item_entity)</td>
  1952. </tr>
  1953. </table>
  1954. <table>
  1955. <tr>
  1956. <th class="command">item.entity.set</th>
  1957. <th class="desc">sets the itemstack of an item_entity</th>
  1958. </tr>
  1959. <tr>
  1960. <td class="bold">Format</td>
  1961. <td>item.entity.set(item_entity, itemstack)</td>
  1962. </tr>
  1963. </table>
  1964. <table>
  1965. <tr>
  1966. <th class="command">item.entity.setPickupDelay</th>
  1967. <th class="desc">sets the pickupdelay for an item_entity</th>
  1968. </tr>
  1969. <tr>
  1970. <td class="bold">Format</td>
  1971. <td>item.entity.setPickupDelay(item_entity, ticks)</td>
  1972. </tr>
  1973. </table>
  1974. </section>
  1975. <section id="Enchantment">
  1976. <table>
  1977. <tr>
  1978. <th class="command">enchantment.get</th>
  1979. <th class="desc">returns an enchantment</th>
  1980. </tr>
  1981. <tr>
  1982. <td class="bold">Format</td>
  1983. <td>enchantment.get(enchantment_string)</td>
  1984. </tr>
  1985. <tr>
  1986. <td class="bold">Arguments</td>
  1987. <td><a href="https://minecraft-de.gamepedia.com/Verzauberung#Verzauberungen" target="_blank">Minecraft Wiki Verzauberungen</a> (ID-Name verwenden)</td>
  1988. </tr>
  1989. </table>
  1990. <table>
  1991. <tr>
  1992. <th class="command">enchantment.getMaxLevel</th>
  1993. <th class="desc">returns the maximum level of an enchantment</th>
  1994. </tr>
  1995. <tr>
  1996. <td class="bold">Format</td>
  1997. <td>enchantment.getMaxLevel(enchantment)</td>
  1998. </tr>
  1999. </table>
  2000. <table>
  2001. <tr>
  2002. <th class="command">enchantment.add</th>
  2003. <th class="desc">adds an enchantment to an itemstack</th>
  2004. </tr>
  2005. <tr>
  2006. <td class="bold">Format</td>
  2007. <td>enchantment.add(enchantment, itemstack, level)</td>
  2008. </tr>
  2009. </table>
  2010. <table>
  2011. <tr>
  2012. <th class="command">enchantment.getLevel</th>
  2013. <th class="desc">returns the level of an enchantment an itemstack has</th>
  2014. </tr>
  2015. <tr>
  2016. <td class="bold">Format</td>
  2017. <td>enchantment.getLevel(enchantment, itemstack)</td>
  2018. </tr>
  2019. </table>
  2020. <table>
  2021. <tr>
  2022. <th class="command">enchantment.readFromItem</th>
  2023. <th class="desc">returns a map with all enchantments of an itemstack</th>
  2024. </tr>
  2025. <tr>
  2026. <td class="bold">Format</td>
  2027. <td>enchantment.readFromItem(itemstack)</td>
  2028. </tr>
  2029. <tr>
  2030. <td class="bold">Format</td>
  2031. <td>enchantment as key, level as value</td>
  2032. </tr>
  2033. </table>
  2034. <table>
  2035. <tr>
  2036. <th class="command">enchantment.writeToItem</th>
  2037. <th class="desc">writes all enchantments from the map on the itemstack</th>
  2038. </tr>
  2039. <tr>
  2040. <td class="bold">Format</td>
  2041. <td>enchantment.writeToItem(map, itemstack)</td>
  2042. </tr>
  2043. </table>
  2044. </section>
  2045. <section id="Debug">
  2046. <table>
  2047. <tr>
  2048. <th class="command">debug.clear</th>
  2049. <th class="desc">clears all cached debug messages</th>
  2050. </tr>
  2051. <tr>
  2052. <td class="bold">Format</td>
  2053. <td>debug.clear()</td>
  2054. </tr>
  2055. </table>
  2056. <table>
  2057. <tr>
  2058. <th class="command">debug.getSize</th>
  2059. <th class="desc">returns the amount of all cached debug messages</th>
  2060. </tr>
  2061. <tr>
  2062. <td class="bold">Format</td>
  2063. <td>debug.getSize()</td>
  2064. </tr>
  2065. </table>
  2066. <table>
  2067. <tr>
  2068. <th class="command">debug.getIndex</th>
  2069. <th class="desc">returns the debug message from an index</th>
  2070. </tr>
  2071. <tr>
  2072. <td class="bold">Format</td>
  2073. <td>debug.getIndex(index)</td>
  2074. </tr>
  2075. </table>
  2076. <table>
  2077. <tr>
  2078. <th class="command">debug.setConsolePrint</th>
  2079. <th class="desc">true prints snuvi debug messages on console (not stack traces)</th>
  2080. </tr>
  2081. <tr>
  2082. <td class="bold">Format</td>
  2083. <td>debug.setConsolePrint(boolean)</td>
  2084. </tr>
  2085. </table>
  2086. <table>
  2087. <tr>
  2088. <th class="command">debug.getIndexTime</th>
  2089. <th class="desc">returns the time of a debug message from an index</th>
  2090. </tr>
  2091. <tr>
  2092. <td class="bold">Format</td>
  2093. <td>debug.getIndexTime(index)</td>
  2094. </tr>
  2095. </table>
  2096. </section>
  2097. <section id="Error">
  2098. <table>
  2099. <tr>
  2100. <th class="command">error.clear</th>
  2101. <th class="desc">clears all cached errors</th>
  2102. </tr>
  2103. <tr>
  2104. <td class="bold">Format</td>
  2105. <td>error.clear()</td>
  2106. </tr>
  2107. </table>
  2108. <table>
  2109. <tr>
  2110. <th class="command">error.getSize</th>
  2111. <th class="desc">returns the amount of all cached errors</th>
  2112. </tr>
  2113. <tr>
  2114. <td class="bold">Format</td>
  2115. <td>error.getSize()</td>
  2116. </tr>
  2117. </table>
  2118. <table>
  2119. <tr>
  2120. <th class="command">error.getIndex</th>
  2121. <th class="desc">returns the error from an index</th>
  2122. </tr>
  2123. <tr>
  2124. <td class="bold">Format</td>
  2125. <td>error.getIndex(index)</td>
  2126. </tr>
  2127. </table>
  2128. <table>
  2129. <tr>
  2130. <th class="command">error.setConsolePrint</th>
  2131. <th class="desc">true prints snuvi errors on console (not stack traces)</th>
  2132. </tr>
  2133. <tr>
  2134. <td class="bold">Format</td>
  2135. <td>error.setConsolePrint(boolean)</td>
  2136. </tr>
  2137. </table>
  2138. <table>
  2139. <tr>
  2140. <th class="command">error.getIndexTime</th>
  2141. <th class="desc">returns the time of an error from an index</th>
  2142. </tr>
  2143. <tr>
  2144. <td class="bold">Format</td>
  2145. <td>error.getIndexTime(index)</td>
  2146. </tr>
  2147. </table>
  2148. </section>
  2149. <section id="Location">
  2150. <table>
  2151. <tr>
  2152. <th class="command">loc.new</th>
  2153. <th class="desc">creates a location</th>
  2154. </tr>
  2155. <tr>
  2156. <td class="bold">Format</td>
  2157. <td>loc.new(world, x, y, z)<br>loc.new(world, x, y, z, yaw, pitch)</td>
  2158. </tr>
  2159. </table>
  2160. <table>
  2161. <tr>
  2162. <th class="command">loc.getX</th>
  2163. <th class="desc">returns the x coordinate</th>
  2164. </tr>
  2165. <tr>
  2166. <td class="bold">Format</td>
  2167. <td>loc.getX(location)</td>
  2168. </tr>
  2169. </table>
  2170. <table>
  2171. <tr>
  2172. <th class="command">loc.setX</th>
  2173. <th class="desc">sets the x coordinate</th>
  2174. </tr>
  2175. <tr>
  2176. <td class="bold">Format</td>
  2177. <td>loc.setX(location, value)</td>
  2178. </tr>
  2179. </table>
  2180. <table>
  2181. <tr>
  2182. <th class="command">loc.addX</th>
  2183. <th class="desc">adds the value to the x coordinate</th>
  2184. </tr>
  2185. <tr>
  2186. <td class="bold">Format</td>
  2187. <td>loc.addX(location, value)</td>
  2188. </tr>
  2189. </table>
  2190. <table>
  2191. <tr>
  2192. <th class="command">loc.getBlockX</th>
  2193. <th class="desc">returns the x block coordinate</th>
  2194. </tr>
  2195. <tr>
  2196. <td class="bold">Format</td>
  2197. <td>loc.getBlockX(location)</td>
  2198. </tr>
  2199. </table>
  2200. <table>
  2201. <tr>
  2202. <th class="command">loc.getY</th>
  2203. <th class="desc">returns the y coordinate</th>
  2204. </tr>
  2205. <tr>
  2206. <td class="bold">Format</td>
  2207. <td>loc.getY(location)</td>
  2208. </tr>
  2209. </table>
  2210. <table>
  2211. <tr>
  2212. <th class="command">loc.setY</th>
  2213. <th class="desc">sets the y coordinate</th>
  2214. </tr>
  2215. <tr>
  2216. <td class="bold">Format</td>
  2217. <td>loc.setY(location, value)</td>
  2218. </tr>
  2219. </table>
  2220. <table>
  2221. <tr>
  2222. <th class="command">loc.addY</th>
  2223. <th class="desc">adds the value to the y coordinate</th>
  2224. </tr>
  2225. <tr>
  2226. <td class="bold">Format</td>
  2227. <td>loc.addY(location, value)</td>
  2228. </tr>
  2229. </table>
  2230. <table>
  2231. <tr>
  2232. <th class="command">loc.getBlockY</th>
  2233. <th class="desc">returns the y block coordinate</th>
  2234. </tr>
  2235. <tr>
  2236. <td class="bold">Format</td>
  2237. <td>loc.getBlockY(location)</td>
  2238. </tr>
  2239. </table>
  2240. <table>
  2241. <tr>
  2242. <th class="command">loc.getZ</th>
  2243. <th class="desc">returns the z coordinate</th>
  2244. </tr>
  2245. <tr>
  2246. <td class="bold">Format</td>
  2247. <td>loc.getZ(location)</td>
  2248. </tr>
  2249. </table>
  2250. <table>
  2251. <tr>
  2252. <th class="command">loc.setZ</th>
  2253. <th class="desc">sets the z coordinate</th>
  2254. </tr>
  2255. <tr>
  2256. <td class="bold">Format</td>
  2257. <td>loc.setZ(location, value)</td>
  2258. </tr>
  2259. </table>
  2260. <table>
  2261. <tr>
  2262. <th class="command">loc.addZ</th>
  2263. <th class="desc">adds the value to the z coordinate</th>
  2264. </tr>
  2265. <tr>
  2266. <td class="bold">Format</td>
  2267. <td>loc.addZ(location, value)</td>
  2268. </tr>
  2269. </table>
  2270. <table>
  2271. <tr>
  2272. <th class="command">loc.getBlockZ</th>
  2273. <th class="desc">returns the z block coordinate</th>
  2274. </tr>
  2275. <tr>
  2276. <td class="bold">Format</td>
  2277. <td>loc.getBlockZ(location)</td>
  2278. </tr>
  2279. </table>
  2280. <table>
  2281. <tr>
  2282. <th class="command">loc.setYaw</th>
  2283. <th class="desc">sets the yaw of a location</th>
  2284. </tr>
  2285. <tr>
  2286. <td class="bold">Format</td>
  2287. <td>loc.setYaw(location, Yaw)</td>
  2288. </tr>
  2289. </table>
  2290. <table>
  2291. <tr>
  2292. <th class="command">loc.getYaw</th>
  2293. <th class="desc">returns the yaw of a location</th>
  2294. </tr>
  2295. <tr>
  2296. <td class="bold">Format</td>
  2297. <td>loc.getYaw(location)</td>
  2298. </tr>
  2299. </table>
  2300. <table>
  2301. <tr>
  2302. <th class="command">loc.setPitch</th>
  2303. <th class="desc">sets the pitch of a location</th>
  2304. </tr>
  2305. <tr>
  2306. <td class="bold">Format</td>
  2307. <td>loc.setPitch(location, Pitch)</td>
  2308. </tr>
  2309. </table>
  2310. <table>
  2311. <tr>
  2312. <th class="command">loc.getPitch</th>
  2313. <th class="desc">returns the pitch of a location</th>
  2314. </tr>
  2315. <tr>
  2316. <td class="bold">Format</td>
  2317. <td>loc.getPitch(location)</td>
  2318. </tr>
  2319. </table>
  2320. <table>
  2321. <tr>
  2322. <th class="command">loc.getWorld</th>
  2323. <th class="desc">returns the world of a location as object</th>
  2324. </tr>
  2325. <tr>
  2326. <td class="bold">Format</td>
  2327. <td>loc.getWorld(location)</td>
  2328. </tr>
  2329. </table>
  2330. <table>
  2331. <tr>
  2332. <th class="command">loc.distance</th>
  2333. <th class="desc">returns the difference between two locations</th>
  2334. </tr>
  2335. <tr>
  2336. <td class="bold">Format</td>
  2337. <td>loc.distance(location1, location2)</td>
  2338. </tr>
  2339. <tr>
  2340. <td class="bold">Info</td>
  2341. <td>there is an error if the two locations have not the same world</td>
  2342. </tr>
  2343. </table>
  2344. <table>
  2345. <tr>
  2346. <th class="command">loc.isBetween</th>
  2347. <th class="desc">returns true if the location is between two other locations</th>
  2348. </tr>
  2349. <tr>
  2350. <td class="bold">Format</td>
  2351. <td>loc.isBetween(location, location1, location2)</td>
  2352. </tr>
  2353. </table>
  2354. <table>
  2355. <tr>
  2356. <th class="command">loc.mod</th>
  2357. <th class="desc">returns a modified copy of the location</th>
  2358. </tr>
  2359. <tr>
  2360. <td class="bold">Format</td>
  2361. <td>loc.mod(location, x, y, z)</td>
  2362. </tr>
  2363. </table>
  2364. <table>
  2365. <tr>
  2366. <th class="command">loc.add</th>
  2367. <th class="desc">modifies the original location</th>
  2368. </tr>
  2369. <tr>
  2370. <td class="bold">Format</td>
  2371. <td>loc.add(location, x, y, z)</td>
  2372. </tr>
  2373. </table>
  2374. <table>
  2375. <tr>
  2376. <th class="command">loc.set</th>
  2377. <th class="desc">modifies the original location</th>
  2378. </tr>
  2379. <tr>
  2380. <td class="bold">Format</td>
  2381. <td>loc.set(location, x, y, z)</td>
  2382. </tr>
  2383. </table>
  2384. <table>
  2385. <tr>
  2386. <th class="command">loc.sort</th>
  2387. <th class="desc">sort in lowest and highest coordinates</th>
  2388. </tr>
  2389. <tr>
  2390. <td class="bold">Format</td>
  2391. <td>loc.sort(location1, location2)</td>
  2392. </tr>
  2393. </table>
  2394. <table>
  2395. <tr>
  2396. <th class="command">loc.iterator</th>
  2397. <th class="desc">returns the iterator for the area</th>
  2398. </tr>
  2399. <tr>
  2400. <td class="bold">Format</td>
  2401. <td>loc.iterator(world, x1, y1, z1, x2, y2, z2)</td>
  2402. </tr>
  2403. </table>
  2404. <table>
  2405. <tr>
  2406. <th class="command">loc.explode</th>
  2407. <th class="desc">makes an explosion at a location</th>
  2408. </tr>
  2409. <tr>
  2410. <td class="bold">Format</td>
  2411. <td>loc.explode(location, entity, radius, fire_bool, block_damage_bool)</td>
  2412. </tr>
  2413. <tr>
  2414. <td class="bold">Info</td>
  2415. <td>entity can be null</td>
  2416. </tr>
  2417. </table>
  2418. </section>
  2419. <section id="Read">
  2420. <table>
  2421. <tr>
  2422. <th class="command">read.player</th>
  2423. <th class="desc">returns a player or null</th>
  2424. </tr>
  2425. <tr>
  2426. <td class="bold">Format</td>
  2427. <td>read.player(player_name)</td>
  2428. </tr>
  2429. </table>
  2430. <table>
  2431. <tr>
  2432. <th class="command">read.item</th>
  2433. <th class="desc">returns an itemstack or null</th>
  2434. </tr>
  2435. <tr>
  2436. <td class="bold">Format</td>
  2437. <td>read.item(nbt_string)</td>
  2438. </tr>
  2439. </table>
  2440. <table>
  2441. <tr>
  2442. <th class="command">read.uuid</th>
  2443. <th class="desc">returns a uuid or null</th>
  2444. </tr>
  2445. <tr>
  2446. <td class="bold">Format</td>
  2447. <td>read.uuid(uuid_string)</td>
  2448. </tr>
  2449. </table>
  2450. <table>
  2451. <tr>
  2452. <th class="command">read.slot</th>
  2453. <th class="desc">returns a slot or null</th>
  2454. </tr>
  2455. <tr>
  2456. <td class="bold">Format</td>
  2457. <td>read.slot(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot_name</a>)</td>
  2458. </tr>
  2459. </table>
  2460. <table>
  2461. <tr>
  2462. <th class="command">read.blockData</th>
  2463. <th class="desc">returns blockdata or null</th>
  2464. </tr>
  2465. <tr>
  2466. <td class="bold">Format</td>
  2467. <td>read.blockData(blockdata_string)</td>
  2468. </tr>
  2469. </table>
  2470. </section>
  2471. <section id="String">
  2472. <table>
  2473. <tr>
  2474. <th class="command">string.item</th>
  2475. <th class="desc">returns an nbt-tag from an itemstack as string</th>
  2476. </tr>
  2477. <tr>
  2478. <td class="bold">Format</td>
  2479. <td>string.item(itemstack)</td>
  2480. </tr>
  2481. </table>
  2482. <table>
  2483. <tr>
  2484. <th class="command">string.entity</th>
  2485. <th class="desc">returns a serialized entity</th>
  2486. </tr>
  2487. <tr>
  2488. <td class="bold">Format</td>
  2489. <td>string.entity(entity)</td>
  2490. </tr>
  2491. </table>
  2492. <table>
  2493. <tr>
  2494. <th class="command">string.text</th>
  2495. <th class="desc">returns a text converted to a string</th>
  2496. </tr>
  2497. <tr>
  2498. <td class="bold">Format</td>
  2499. <td>string.text(text)</td>
  2500. </tr>
  2501. </table>
  2502. <table>
  2503. <tr>
  2504. <th class="command">string.blockData</th>
  2505. <th class="desc">returns blockdata converted to a string</th>
  2506. </tr>
  2507. <tr>
  2508. <td class="bold">Format</td>
  2509. <td>string.blockData(blockdata)</td>
  2510. </tr>
  2511. </table>
  2512. </section>
  2513. <section id="Text">
  2514. <table>
  2515. <tr>
  2516. <th class="command">text.new</th>
  2517. <th class="desc">returns a text</th>
  2518. </tr>
  2519. <tr>
  2520. <td class="bold">Format</td>
  2521. <td>text.new(string)</td>
  2522. </tr>
  2523. </table>
  2524. <table>
  2525. <tr>
  2526. <th class="command">text.click</th>
  2527. <th class="desc">returns a clickable text</th>
  2528. </tr>
  2529. <tr>
  2530. <td class="bold">Format</td>
  2531. <td>text.click(show_text, execute_string)</td>
  2532. </tr>
  2533. </table>
  2534. <table>
  2535. <tr>
  2536. <th class="command">text.hover</th>
  2537. <th class="desc">returns a hoverable text</th>
  2538. </tr>
  2539. <tr>
  2540. <td class="bold">Format</td>
  2541. <td>text.hover(show_text, hover_text)</td>
  2542. </tr>
  2543. </table>
  2544. <table>
  2545. <tr>
  2546. <th class="command">text.link</th>
  2547. <th class="desc">returns a clickable text for links</th>
  2548. </tr>
  2549. <tr>
  2550. <td class="bold">Format</td>
  2551. <td>text.link(text, link_string)</td>
  2552. </tr>
  2553. </table>
  2554. <table>
  2555. <tr>
  2556. <th class="command">text.clipBoard</th>
  2557. <th class="desc">returns a clickable text to copy a string into the clipboard</th>
  2558. </tr>
  2559. <tr>
  2560. <td class="bold">Format</td>
  2561. <td>text.clipBoard(text, string)</td>
  2562. </tr>
  2563. </table>
  2564. <table>
  2565. <tr>
  2566. <th class="command">text.merge</th>
  2567. <th class="desc">returns merged texts</th>
  2568. </tr>
  2569. <tr>
  2570. <td class="bold">Format</td>
  2571. <td>text.merge(text, ...)</td>
  2572. </tr>
  2573. </table>
  2574. <table>
  2575. <tr>
  2576. <th class="command">text.item</th>
  2577. <th class="desc">returns a hoverable itemstack text</th>
  2578. </tr>
  2579. <tr>
  2580. <td class="bold">Format</td>
  2581. <td>text.item(show_text, itemstack)</td>
  2582. </tr>
  2583. </table>
  2584. <table>
  2585. <tr>
  2586. <th class="command">text.suggest</th>
  2587. <th class="desc">returns a clickable text for chat/command line insertion</th>
  2588. </tr>
  2589. <tr>
  2590. <td class="bold">Format</td>
  2591. <td>text.suggest(show_text, suggest_text)</td>
  2592. </tr>
  2593. </table>
  2594. <table>
  2595. <tr>
  2596. <th class="command">text.color</th>
  2597. <th class="desc">returns rgb colored text</th>
  2598. </tr>
  2599. <tr>
  2600. <td class="bold">Format</td>
  2601. <td>text.color(text, red, green, blue)</td>
  2602. </tr>
  2603. <tr>
  2604. <td class="bold">Info</td>
  2605. <td>red green blue from 0 to 255</td>
  2606. </tr>
  2607. </table>
  2608. </section>
  2609. <section id="Plot">
  2610. <table>
  2611. <tr>
  2612. <th class="command">plot.add</th>
  2613. <th class="desc">returns the created plot</th>
  2614. </tr>
  2615. <tr>
  2616. <td class="bold">Format</td>
  2617. <td>plot.add(location1, location2, [plot_id])</td>
  2618. </tr>
  2619. </table>
  2620. <table>
  2621. <tr>
  2622. <th class="command">plot.remove</th>
  2623. <th class="desc">removes a plot from a world</th>
  2624. </tr>
  2625. <tr>
  2626. <td class="bold">Format</td>
  2627. <td>plot.remove(plot, world)</td>
  2628. </tr>
  2629. </table>
  2630. <table>
  2631. <tr>
  2632. <th class="command">plot.getId</th>
  2633. <th class="desc">returns the plot_id</th>
  2634. </tr>
  2635. <tr>
  2636. <td class="bold">Format</td>
  2637. <td>plot.getId(plot)</td>
  2638. </tr>
  2639. </table>
  2640. <table>
  2641. <tr>
  2642. <th class="command">plot.setName</th>
  2643. <th class="desc">sets the name of a plot</th>
  2644. </tr>
  2645. <tr>
  2646. <td class="bold">Format</td>
  2647. <td>plot.setName(plot, name)</td>
  2648. </tr>
  2649. </table>
  2650. <table>
  2651. <tr>
  2652. <th class="command">plot.getName</th>
  2653. <th class="desc">returns the name of a plot</th>
  2654. </tr>
  2655. <tr>
  2656. <td class="bold">Format</td>
  2657. <td>plot.getName(plot)</td>
  2658. </tr>
  2659. </table>
  2660. <table>
  2661. <tr>
  2662. <th class="command">plot.get</th>
  2663. <th class="desc">returns a list with all plots at a location</th>
  2664. </tr>
  2665. <tr>
  2666. <td class="bold">Format</td>
  2667. <td>plot.get(location)</td>
  2668. </tr>
  2669. </table>
  2670. <table>
  2671. <tr>
  2672. <th class="command">plot.getMinX</th>
  2673. <th class="desc">returns the lowest x coordinate of a plot</th>
  2674. </tr>
  2675. <tr>
  2676. <td class="bold">Format</td>
  2677. <td>plot.getMinX(plot)</td>
  2678. </tr>
  2679. </table>
  2680. <table>
  2681. <tr>
  2682. <th class="command">plot.getMinY</th>
  2683. <th class="desc">returns the lowest y coordinate of a plot</th>
  2684. </tr>
  2685. <tr>
  2686. <td class="bold">Format</td>
  2687. <td>plot.getMinY(plot)</td>
  2688. </tr>
  2689. </table>
  2690. <table>
  2691. <tr>
  2692. <th class="command">plot.getMinZ</th>
  2693. <th class="desc">returns the lowest z coordinate of a plot</th>
  2694. </tr>
  2695. <tr>
  2696. <td class="bold">Format</td>
  2697. <td>plot.getMinZ(plot)</td>
  2698. </tr>
  2699. </table>
  2700. <table>
  2701. <tr>
  2702. <th class="command">plot.getMaxX</th>
  2703. <th class="desc">returns the lowest x coordinate of a plot</th>
  2704. </tr>
  2705. <tr>
  2706. <td class="bold">Format</td>
  2707. <td>plot.getMaxX(plot)</td>
  2708. </tr>
  2709. </table>
  2710. <table>
  2711. <tr>
  2712. <th class="command">plot.getMaxY</th>
  2713. <th class="desc">returns the lowest y coordinate of a plot</th>
  2714. </tr>
  2715. <tr>
  2716. <td class="bold">Format</td>
  2717. <td>plot.getMaxY(plot)</td>
  2718. </tr>
  2719. </table>
  2720. <table>
  2721. <tr>
  2722. <th class="command">plot.getMaxZ</th>
  2723. <th class="desc">returns the lowest z coordinate of a plot</th>
  2724. </tr>
  2725. <tr>
  2726. <td class="bold">Format</td>
  2727. <td>plot.getMaxZ(plot)</td>
  2728. </tr>
  2729. </table>
  2730. <table>
  2731. <tr>
  2732. <th class="command">plot.intersecting</th>
  2733. <th class="desc">returns a list with all intersecting plots</th>
  2734. </tr>
  2735. <tr>
  2736. <td class="bold">Format</td>
  2737. <td>plot.intersecting(world, x1, y1, z1, x2, y2, z2)</td>
  2738. </tr>
  2739. </table>
  2740. <table>
  2741. <tr>
  2742. <th class="command">plot.setFlags</th>
  2743. <th class="desc">sets all flags to the boolean</th>
  2744. </tr>
  2745. <tr>
  2746. <td class="bold">Format</td>
  2747. <td>plot.setFlags(plot, flags, boolean)</td>
  2748. </tr>
  2749. </table>
  2750. <table>
  2751. <tr>
  2752. <th class="command">plot.getFlags</th>
  2753. <th class="desc">returns all flags as double</th>
  2754. </tr>
  2755. <tr>
  2756. <td class="bold">Format</td>
  2757. <td>plot.getFlags(plot)</td>
  2758. </tr>
  2759. </table>
  2760. <table>
  2761. <tr>
  2762. <th class="command">plot.hasFlags</th>
  2763. <th class="desc">returns true if all flags existing</th>
  2764. </tr>
  2765. <tr>
  2766. <td class="bold">Format</td>
  2767. <td>plot.hasFlags(plot, flags)</td>
  2768. </tr>
  2769. </table>
  2770. <table>
  2771. <tr>
  2772. <th class="command">plot.getOwners</th>
  2773. <th class="desc">returns a list with all owners as uuid</th>
  2774. </tr>
  2775. <tr>
  2776. <td class="bold">Format</td>
  2777. <td>plot.getOwners(plot)</td>
  2778. </tr>
  2779. <tr>
  2780. <td class="bold">Info</td>
  2781. <td>list can be modified</td>
  2782. </tr>
  2783. </table>
  2784. <table>
  2785. <tr>
  2786. <th class="command">plot.check</th>
  2787. <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>
  2788. </tr>
  2789. <tr>
  2790. <td class="bold">Format</td>
  2791. <td>plot.check(location, player, Int flags, Boolean empty)</td>
  2792. </tr>
  2793. <tr>
  2794. <td class="bold">Arguments</td>
  2795. <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>
  2796. </tr>
  2797. <tr>
  2798. <td class="bold">Examples</td>
  2799. <td>
  2800. plot.check(loc, null, 1, false) ==> true if place_flag existing<br>
  2801. plot.check(loc, null, 2, false) ==> true if break_flag existing<br>
  2802. plot.check(loc, null, 3, false) ==> true if break_flag and place_flag existing<br>
  2803. plot.check(loc, player, 0, false) ==> true if player is owner<br>
  2804. plot.check(loc, player, 0, true) ==> true if player is owner or if there is no plot
  2805. </td>
  2806. </tr>
  2807. </table>
  2808. <table>
  2809. <tr>
  2810. <th class="command">plot.iterator</th>
  2811. <th class="desc">returns the iterator for the plots in a world [for a player]</th>
  2812. </tr>
  2813. <tr>
  2814. <td class="bold">Format</td>
  2815. <td>plot.iterator(world, [uuid])</td>
  2816. </tr>
  2817. </table>
  2818. <table>
  2819. <tr>
  2820. <th class="command">plot.addBlock</th>
  2821. <th class="desc">makes a block public</th>
  2822. </tr>
  2823. <tr>
  2824. <td class="bold">Format</td>
  2825. <td>plot.addBlock(location)</td>
  2826. </tr>
  2827. </table>
  2828. <table>
  2829. <tr>
  2830. <th class="command">plot.removeBlock</th>
  2831. <th class="desc">makes a block non-public</th>
  2832. </tr>
  2833. <tr>
  2834. <td class="bold">Format</td>
  2835. <td>plot.removeBlock(location)</td>
  2836. </tr>
  2837. </table>
  2838. <table>
  2839. <tr>
  2840. <th class="command">plot.hasBlock</th>
  2841. <th class="desc">returns true if a block is public</th>
  2842. </tr>
  2843. <tr>
  2844. <td class="bold">Format</td>
  2845. <td>plot.hasBlock(location)</td>
  2846. </tr>
  2847. </table>
  2848. <table>
  2849. <tr>
  2850. <th class="command">plot.blockIterator</th>
  2851. <th class="desc">returns the iterator for protected blocks in a world</th>
  2852. </tr>
  2853. <tr>
  2854. <td class="bold">Format</td>
  2855. <td>plot.blockIterator(world)</td>
  2856. </tr>
  2857. </table>
  2858. <table>
  2859. <tr>
  2860. <th class="command">plot.position.getX</th>
  2861. <th class="desc">returns the x coordinate of a position</th>
  2862. </tr>
  2863. <tr>
  2864. <td class="bold">Format</td>
  2865. <td>plot.position.getX(position)</td>
  2866. </tr>
  2867. </table>
  2868. <table>
  2869. <tr>
  2870. <th class="command">plot.position.getY</th>
  2871. <th class="desc">returns the y coordinate of a position</th>
  2872. </tr>
  2873. <tr>
  2874. <td class="bold">Format</td>
  2875. <td>plot.position.getY(position)</td>
  2876. </tr>
  2877. </table>
  2878. <table>
  2879. <tr>
  2880. <th class="command">plot.position.getZ</th>
  2881. <th class="desc">returns the z coordinate of a position</th>
  2882. </tr>
  2883. <tr>
  2884. <td class="bold">Format</td>
  2885. <td>plot.position.getZ(position)</td>
  2886. </tr>
  2887. </table>
  2888. <table>
  2889. <tr>
  2890. <th class="command">plot.savePlots</th>
  2891. <th class="desc">saves all plot changes</th>
  2892. </tr>
  2893. <tr>
  2894. <td class="bold">Format</td>
  2895. <td>plot.savePlots(world)</td>
  2896. </tr>
  2897. </table>
  2898. <table>
  2899. <tr>
  2900. <th class="command">plot.saveBlocks</th>
  2901. <th class="desc">saves all block changes</th>
  2902. </tr>
  2903. <tr>
  2904. <td class="bold">Format</td>
  2905. <td>plot.saveBlocks(world)</td>
  2906. </tr>
  2907. </table>
  2908. </section>
  2909. <section id="Table">
  2910. <table>
  2911. <tr>
  2912. <th class="command">table.new</th>
  2913. <th class="desc">returns a table object</th>
  2914. </tr>
  2915. <tr>
  2916. <td class="bold">Format</td>
  2917. <td>table.new(color, width, width, width, ...)</td>
  2918. </tr>
  2919. </table>
  2920. <table>
  2921. <tr>
  2922. <th class="command">table.getStart</th>
  2923. <th class="desc">returns the head of a table</th>
  2924. </tr>
  2925. <tr>
  2926. <td class="bold">Format</td>
  2927. <td>table.getStart(table)</td>
  2928. </tr>
  2929. </table>
  2930. <table>
  2931. <tr>
  2932. <th class="command">table.getMiddle</th>
  2933. <th class="desc">returns the middle of a table</th>
  2934. </tr>
  2935. <tr>
  2936. <td class="bold">Format</td>
  2937. <td>table.getMiddle(table)</td>
  2938. </tr>
  2939. </table>
  2940. <table>
  2941. <tr>
  2942. <th class="command">table.getEnd</th>
  2943. <th class="desc">returns the end of a table</th>
  2944. </tr>
  2945. <tr>
  2946. <td class="bold">Format</td>
  2947. <td>table.getEnd(table)</td>
  2948. </tr>
  2949. </table>
  2950. <table>
  2951. <tr>
  2952. <th class="command">table.get</th>
  2953. <th class="desc">returns a line of a table</th>
  2954. </tr>
  2955. <tr>
  2956. <td class="bold">Format</td>
  2957. <td>table.get(table, args...)</td>
  2958. </tr>
  2959. </table>
  2960. <table>
  2961. <tr>
  2962. <th class="command">table.setSize</th>
  2963. <th class="desc">defines the pixel size of a character</th>
  2964. </tr>
  2965. <tr>
  2966. <td class="bold">Format</td>
  2967. <td>table.setSize("character", pixel_int)</td>
  2968. </tr>
  2969. </table>
  2970. <table>
  2971. <tr>
  2972. <th class="command">table.setEmpty1</th>
  2973. <th class="desc">defines the 1 pixel empty character</th>
  2974. </tr>
  2975. <tr>
  2976. <td class="bold">Format</td>
  2977. <td>table.setEmpty1(string)</td>
  2978. </tr>
  2979. </table>
  2980. <table>
  2981. <tr>
  2982. <th class="command">table.setEmpty2</th>
  2983. <th class="desc">defines the 2 pixel empty character</th>
  2984. </tr>
  2985. <tr>
  2986. <td class="bold">Format</td>
  2987. <td>table.setEmpty2(string)</td>
  2988. </tr>
  2989. </table>
  2990. <table>
  2991. <tr>
  2992. <th class="command">table.setEmpty4</th>
  2993. <th class="desc">defines the 4 pixel empty character</th>
  2994. </tr>
  2995. <tr>
  2996. <td class="bold">Format</td>
  2997. <td>table.setEmpty4(string)</td>
  2998. </tr>
  2999. </table>
  3000. </section>
  3001. <section id="Command">
  3002. <table>
  3003. <tr>
  3004. <th class="command">command.add</th>
  3005. <th class="desc">registers a custom command</th>
  3006. </tr>
  3007. <tr>
  3008. <td class="bold">Format</td>
  3009. <td>command.add(string)</td>
  3010. </tr>
  3011. </table>
  3012. <table>
  3013. <tr>
  3014. <th class="command">command.remove</th>
  3015. <th class="desc">removes a custom command</th>
  3016. </tr>
  3017. <tr>
  3018. <td class="bold">Format</td>
  3019. <td>command.remove(string)</td>
  3020. </tr>
  3021. </table>
  3022. <table>
  3023. <tr>
  3024. <th class="command">command.clear</th>
  3025. <th class="desc">removes all custom commands</th>
  3026. </tr>
  3027. <tr>
  3028. <td class="bold">Format</td>
  3029. <td>command.clear()</td>
  3030. </tr>
  3031. </table>
  3032. <table>
  3033. <tr>
  3034. <th class="command">command.exists</th>
  3035. <th class="desc">returns true if a custom command exists</th>
  3036. </tr>
  3037. <tr>
  3038. <td class="bold">Format</td>
  3039. <td>command.exists(string)</td>
  3040. </tr>
  3041. </table>
  3042. <table>
  3043. <tr>
  3044. <th class="command">command.newHelp</th>
  3045. <th class="desc">returns a help-object</th>
  3046. </tr>
  3047. <tr>
  3048. <td class="bold">Format</td>
  3049. <td>command.newHelp(string, perm)</td>
  3050. </tr>
  3051. </table>
  3052. <table>
  3053. <tr>
  3054. <th class="command">command.newHelpLiteral</th>
  3055. <th class="desc">returns a help argument</th>
  3056. </tr>
  3057. <tr>
  3058. <td class="bold">Format</td>
  3059. <td>command.newHelpLiteral(string, [perm])</td>
  3060. </tr>
  3061. </table>
  3062. <table>
  3063. <tr>
  3064. <th class="command">command.newHelpBool</th>
  3065. <th class="desc">returns a help argument</th>
  3066. </tr>
  3067. <tr>
  3068. <td class="bold">Format</td>
  3069. <td>command.newHelpBool(string, [perm])</td>
  3070. </tr>
  3071. </table>
  3072. <table>
  3073. <tr>
  3074. <th class="command">command.newHelpDouble</th>
  3075. <th class="desc">returns a help argument</th>
  3076. </tr>
  3077. <tr>
  3078. <td class="bold">Format</td>
  3079. <td>command.newHelpDouble(string, min, max, [perm])</td>
  3080. </tr>
  3081. </table>
  3082. <table>
  3083. <tr>
  3084. <th class="command">command.newHelpFloat</th>
  3085. <th class="desc">returns a help argument</th>
  3086. </tr>
  3087. <tr>
  3088. <td class="bold">Format</td>
  3089. <td>command.newHelpFloat(string, min, max, [perm])</td>
  3090. </tr>
  3091. </table>
  3092. <table>
  3093. <tr>
  3094. <th class="command">command.newHelpInt</th>
  3095. <th class="desc">returns a help argument</th>
  3096. </tr>
  3097. <tr>
  3098. <td class="bold">Format</td>
  3099. <td>command.newHelpInt(string, min, max, [perm])</td>
  3100. </tr>
  3101. </table>
  3102. <table>
  3103. <tr>
  3104. <th class="command">command.newHelpLong</th>
  3105. <th class="desc">returns a help argument</th>
  3106. </tr>
  3107. <tr>
  3108. <td class="bold">Format</td>
  3109. <td>command.newHelpLong(string, min, max, [perm])</td>
  3110. </tr>
  3111. </table>
  3112. <table>
  3113. <tr>
  3114. <th class="command">command.newHelpString</th>
  3115. <th class="desc">returns a help argument</th>
  3116. </tr>
  3117. <tr>
  3118. <td class="bold">Format</td>
  3119. <td>command.newHelpString(string, boolean, [perm])</td>
  3120. </tr>
  3121. <tr>
  3122. <td class="bold">Arguments</td>
  3123. <td>boolean true means greedy</td>
  3124. </tr>
  3125. </table>
  3126. <table>
  3127. <tr>
  3128. <th class="command">command.newHelpSpecial</th>
  3129. <th class="desc">returns a help argument</th>
  3130. </tr>
  3131. <tr>
  3132. <td class="bold">Format</td>
  3133. <td>command.newHelpSpecial(type, string, [perm])</td>
  3134. </tr>
  3135. <tr>
  3136. <td class="bold">Arguments</td>
  3137. <td>type = "Item", "Particle", "Potion", "Sound", "Enchantment", "Player"</td>
  3138. </tr>
  3139. </table>
  3140. <table>
  3141. <tr>
  3142. <th class="command">command.registerHelp</th>
  3143. <th class="desc">registers a command-help</th>
  3144. </tr>
  3145. <tr>
  3146. <td class="bold">Format</td>
  3147. <td>command.registerHelp(help-object)</td>
  3148. </tr>
  3149. </table>
  3150. <table>
  3151. <tr>
  3152. <th class="command">command.addHelpArgument</th>
  3153. <th class="desc">adds a help argument to a help</th>
  3154. </tr>
  3155. <tr>
  3156. <td class="bold">Format</td>
  3157. <td>command.addHelpArgument(help, helpArgument)</td>
  3158. </tr>
  3159. </table>
  3160. </section>
  3161. <section id="Scoreboard">
  3162. <table>
  3163. <tr>
  3164. <th class="command">sb.add</th>
  3165. <th class="desc">adds text to the scoreboard</th>
  3166. </tr>
  3167. <tr>
  3168. <td class="bold">Format</td>
  3169. <td>sb.add(player, unique_index, string)</td>
  3170. </tr>
  3171. <tr>
  3172. <td class="bold">Arguments</td>
  3173. <td>index from 1 to 99</td>
  3174. </tr>
  3175. <tr>
  3176. <td class="bold">Info</td>
  3177. <td>vanilla: maximum 12 rows</td>
  3178. </tr>
  3179. </table>
  3180. <table>
  3181. <tr>
  3182. <th class="command">sb.remove</th>
  3183. <th class="desc">removes a row from the scoreboard</th>
  3184. </tr>
  3185. <tr>
  3186. <td class="bold">Format</td>
  3187. <td>sb.remove(player, unique_index)</td>
  3188. </tr>
  3189. <tr>
  3190. <td class="bold">Arguments</td>
  3191. <td>index as number from 1 to 99</td>
  3192. </tr>
  3193. </table>
  3194. <table>
  3195. <tr>
  3196. <th class="command">sb.addRaw</th>
  3197. <th class="desc">adds text to the scoreboard</th>
  3198. </tr>
  3199. <tr>
  3200. <td class="bold">Format</td>
  3201. <td>sb.addRaw(player, index, unique_string)</td>
  3202. </tr>
  3203. <tr>
  3204. <td class="bold">Arguments</td>
  3205. <td>index from 1 to 99</td>
  3206. </tr>
  3207. <tr>
  3208. <td class="bold">Info</td>
  3209. <td>vanilla: maximum 12 rows</td>
  3210. </tr>
  3211. </table>
  3212. <table>
  3213. <tr>
  3214. <th class="command">sb.removeRaw</th>
  3215. <th class="desc">removes a row from the scoreboard</th>
  3216. </tr>
  3217. <tr>
  3218. <td class="bold">Format</td>
  3219. <td>sb.removeRaw(player, unique_string)</td>
  3220. </tr>
  3221. </table>
  3222. <table>
  3223. <tr>
  3224. <th class="command">sb.setTitle</th>
  3225. <th class="desc">sets a scoreboard title</th>
  3226. </tr>
  3227. <tr>
  3228. <td class="bold">Format</td>
  3229. <td>sb.setTitle(player, text)</td>
  3230. </tr>
  3231. </table>
  3232. <table>
  3233. <tr>
  3234. <th class="command">sb.clear</th>
  3235. <th class="desc">clears the scoreboard of a player</th>
  3236. </tr>
  3237. <tr>
  3238. <td class="bold">Format</td>
  3239. <td>sb.clear(player)</td>
  3240. </tr>
  3241. </table>
  3242. </section>
  3243. <section id="Script">
  3244. <table>
  3245. <tr>
  3246. <th class="command">script.start</th>
  3247. <th class="desc">connects all scripts, starts them as one script and returns the script</th>
  3248. </tr>
  3249. <tr>
  3250. <td class="bold">Format</td>
  3251. <td>script.start(scriptpath1, scriptpath2, ...)</td>
  3252. </tr>
  3253. </table>
  3254. <table>
  3255. <tr>
  3256. <th class="command">script.startNamed</th>
  3257. <th class="desc">connects all scripts, starts them as one script and returns the script</th>
  3258. </tr>
  3259. <tr>
  3260. <td class="bold">Format</td>
  3261. <td>script.startNamed(custom_name, scriptpath1, scriptpath2, ...)</td>
  3262. </tr>
  3263. <td class="bold">Info</td>
  3264. <td>named scripts can be selected with script.get by their custom_name</td>
  3265. <tr>
  3266. </tr>
  3267. </table>
  3268. <table>
  3269. <tr>
  3270. <th class="command">script.callEvent</th>
  3271. <th class="desc">calls an event</th>
  3272. </tr>
  3273. <tr>
  3274. <td class="bold">Format</td>
  3275. <td>script.callEvent(event, [script])</td>
  3276. </tr>
  3277. </table>
  3278. </section>
  3279. <section id="Title">
  3280. <table>
  3281. <tr>
  3282. <th class="command">title.send</th>
  3283. <th class="desc">shows a player a title (and subtitle if set)</th>
  3284. </tr>
  3285. <tr>
  3286. <td class="bold">Format</td>
  3287. <td>title.send(player, title, [subtitle], [fadeIn | 20], [stay | 60], [fadeOut | 20])</td>
  3288. </tr>
  3289. </table>
  3290. <table>
  3291. <tr>
  3292. <th class="command">title.remove</th>
  3293. <th class="desc">removes the shown title</th>
  3294. </tr>
  3295. <tr>
  3296. <td class="bold">Format</td>
  3297. <td>title.remove(player)</td>
  3298. </tr>
  3299. </table>
  3300. </section>
  3301. <section id="Permission">
  3302. <table>
  3303. <tr>
  3304. <th class="command">perm.clear</th>
  3305. <th class="desc">removes all permissions from a player</th>
  3306. </tr>
  3307. <tr>
  3308. <td class="bold">Format</td>
  3309. <td>perm.clear(player)</td>
  3310. </tr>
  3311. </table>
  3312. <table>
  3313. <tr>
  3314. <th class="command">perm.add</th>
  3315. <th class="desc">adds a permission to a player</th>
  3316. </tr>
  3317. <tr>
  3318. <td class="bold">Format</td>
  3319. <td>perm.add(perm, player)</td>
  3320. </tr>
  3321. </table>
  3322. <table>
  3323. <tr>
  3324. <th class="command">perm.remove</th>
  3325. <th class="desc">removes a permission from a player</th>
  3326. </tr>
  3327. <tr>
  3328. <td class="bold">Format</td>
  3329. <td>perm.remove(perm, player)</td>
  3330. </tr>
  3331. </table>
  3332. <table>
  3333. <tr>
  3334. <th class="command">perm.has</th>
  3335. <th class="desc">returns true if a player has the permission</th>
  3336. </tr>
  3337. <tr>
  3338. <td class="bold">Format</td>
  3339. <td>perm.has(perm, player)</td>
  3340. </tr>
  3341. </table>
  3342. <table>
  3343. <tr>
  3344. <th class="command">perm.update</th>
  3345. <th class="desc">updates the permissions of a player</th>
  3346. </tr>
  3347. <tr>
  3348. <td class="bold">Format</td>
  3349. <td>perm.update(player)</td>
  3350. </tr>
  3351. <tr>
  3352. <td class="bold">Info</td>
  3353. <td>call this after adding all player permissions</td>
  3354. </tr>
  3355. </table>
  3356. </section>
  3357. <section id="Player">
  3358. <table>
  3359. <tr>
  3360. <th class="command">players.toList</th>
  3361. <th class="desc">returns a list with all players in a world</th>
  3362. </tr>
  3363. <tr>
  3364. <td class="bold">Format</td>
  3365. <td>players.toList(World)</td>
  3366. </tr>
  3367. </table>
  3368. <table>
  3369. <tr>
  3370. <th class="command">players.near</th>
  3371. <th class="desc">returns a list with all players within a radius of a location</th>
  3372. </tr>
  3373. <tr>
  3374. <td class="bold">Format</td>
  3375. <td>players.near(location, radius)</td>
  3376. </tr>
  3377. </table>
  3378. <table>
  3379. <tr>
  3380. <th class="command">players.getAmount</th>
  3381. <th class="desc">returns the number of online players</th>
  3382. </tr>
  3383. <tr>
  3384. <td class="bold">Format</td>
  3385. <td>players.getAmount()</td>
  3386. </tr>
  3387. </table>
  3388. <table>
  3389. <tr>
  3390. <th class="command">player.getHead</th>
  3391. <th class="desc">returns the head of a player as an itemstack</th>
  3392. </tr>
  3393. <tr>
  3394. <td class="bold">Format</td>
  3395. <td>player.getHead(uuid, name)</td>
  3396. </tr>
  3397. <tr>
  3398. <td class="bold">Arguments</td>
  3399. <td>uuid and(!) name of the same(!) player</td>
  3400. </tr>
  3401. </table>
  3402. <table>
  3403. <tr>
  3404. <th class="command">player.getNearest</th>
  3405. <th class="desc">returns the next player to a location</th>
  3406. </tr>
  3407. <tr>
  3408. <td class="bold">Format</td>
  3409. <td>player.getNearest(location)</td>
  3410. </tr>
  3411. <tr>
  3412. <td class="bold">Info</td>
  3413. <td>searches in a radius of 10 blocks</td>
  3414. </tr>
  3415. </table>
  3416. <table>
  3417. <tr>
  3418. <th class="command">player.setDisplayName</th>
  3419. <th class="desc">sets the name of a player in the tab list</th>
  3420. </tr>
  3421. <tr>
  3422. <td class="bold">Format</td>
  3423. <td>player.setDisplayName(player, text)</td>
  3424. </tr>
  3425. </table>
  3426. <table>
  3427. <tr>
  3428. <th class="command">player.action</th>
  3429. <th class="desc">shows a message in the action bar</th>
  3430. </tr>
  3431. <tr>
  3432. <td class="bold">Format</td>
  3433. <td>player.action(receiver, text)</td>
  3434. </tr>
  3435. <tr>
  3436. <td class="bold">Info</td>
  3437. <td>receiver:<br>sender (player / console)<br>"dev" (perm "script.debug" needed)<br>"online"<br>"server"</td>
  3438. </tr>
  3439. </table>
  3440. <table>
  3441. <tr>
  3442. <th class="command">player.getTargetBlock</th>
  3443. <th class="desc">returns the block a player is looking at</th>
  3444. </tr>
  3445. <tr>
  3446. <td class="bold">Format</td>
  3447. <td>player.getTargetBlock(player, radius, [fluidmode|false])</td>
  3448. </tr>
  3449. <tr>
  3450. <td class="bold">Arguments</td>
  3451. <td>
  3452. Vanilla default radius: 5<br>
  3453. radius will be cast to int<br>
  3454. fluidmode: true does not ignore water
  3455. </td>
  3456. </tr>
  3457. </table>
  3458. <table>
  3459. <tr>
  3460. <th class="command">player.getName</th>
  3461. <th class="desc">returns the name of a player</th>
  3462. </tr>
  3463. <tr>
  3464. <td class="bold">Format</td>
  3465. <td>player.getName(uuid / uuid_string / player)</td>
  3466. </tr>
  3467. <tr>
  3468. <td class="bold">Info</td>
  3469. <td>uuid and uuid_string can return null</td>
  3470. </tr>
  3471. </table>
  3472. <table>
  3473. <tr>
  3474. <th class="command">player.getUuid</th>
  3475. <th class="desc">returns the uuid of a player</th>
  3476. </tr>
  3477. <tr>
  3478. <td class="bold">Format</td>
  3479. <td>player.getUuid(player / player_name)</td>
  3480. </tr>
  3481. <tr>
  3482. <td class="bold">Info</td>
  3483. <td>player_name can return null</td>
  3484. </tr>
  3485. </table>
  3486. <table>
  3487. <tr>
  3488. <th class="command">player.getUuidFromId</th>
  3489. <th class="desc">returns the uuid of a player from their id</th>
  3490. </tr>
  3491. <tr>
  3492. <td class="bold">Format</td>
  3493. <td>player.getUuidFromId(player_id)</td>
  3494. </tr>
  3495. </table>
  3496. <table>
  3497. <tr>
  3498. <th class="command">player.getNameFromId</th>
  3499. <th class="desc">returns the name of a player from their id</th>
  3500. </tr>
  3501. <tr>
  3502. <td class="bold">Format</td>
  3503. <td>player.getNameFromId(player_id)</td>
  3504. </tr>
  3505. </table>
  3506. <table>
  3507. <tr>
  3508. <th class="command">player.getId</th>
  3509. <th class="desc">returns the id of a player</th>
  3510. </tr>
  3511. <tr>
  3512. <td class="bold">Format</td>
  3513. <td>player.getId(player / uuid / uuid_string)</td>
  3514. </tr>
  3515. </table>
  3516. <table>
  3517. <tr>
  3518. <th class="command">player.get</th>
  3519. <th class="desc">returns a player</th>
  3520. </tr>
  3521. <tr>
  3522. <td class="bold">Format</td>
  3523. <td>player.get(player / uuid / uuid_string)</td>
  3524. </tr>
  3525. </table>
  3526. <table>
  3527. <tr>
  3528. <th class="command">player.respawn</th>
  3529. <th class="desc">forces the respawn of a dead player</th>
  3530. </tr>
  3531. <tr>
  3532. <td class="bold">Format</td>
  3533. <td>player.respawn(player)</td>
  3534. </tr>
  3535. </table>
  3536. <table>
  3537. <tr>
  3538. <th class="command">player.setCompass</th>
  3539. <th class="desc">sets the target of a compass</th>
  3540. </tr>
  3541. <tr>
  3542. <td class="bold">Format</td>
  3543. <td>player.setCompass(player, location)</td>
  3544. </tr>
  3545. </table>
  3546. <table>
  3547. <tr>
  3548. <th class="command">player.setHunger</th>
  3549. <th class="desc">sets the hunger of a player</th>
  3550. </tr>
  3551. <tr>
  3552. <td class="bold">Format</td>
  3553. <td>player.setHunger(player, number)</td>
  3554. </tr>
  3555. <tr>
  3556. <td class="bold">Info</td>
  3557. <td>Vanilla default: 0-20</td>
  3558. </tr>
  3559. </table>
  3560. <table>
  3561. <tr>
  3562. <th class="command">player.getHunger</th>
  3563. <th class="desc">returns the hunger of a player</th>
  3564. </tr>
  3565. <tr>
  3566. <td class="bold">Format</td>
  3567. <td>player.getHunger(player)</td>
  3568. </tr>
  3569. </table>
  3570. <table>
  3571. <tr>
  3572. <th class="command">player.setSaturation</th>
  3573. <th class="desc">sets the saturation of a player</th>
  3574. </tr>
  3575. <tr>
  3576. <td class="bold">Format</td>
  3577. <td>player.setSaturation(player, number)</td>
  3578. </tr>
  3579. <tr>
  3580. <td class="bold">Info</td>
  3581. <td>Vanilla default: 5, maximum: 20</td>
  3582. </tr>
  3583. </table>
  3584. <table>
  3585. <tr>
  3586. <th class="command">player.getSaturation</th>
  3587. <th class="desc">returns the saturation of a player</th>
  3588. </tr>
  3589. <tr>
  3590. <td class="bold">Format</td>
  3591. <td>player.getSaturation(player)</td>
  3592. </tr>
  3593. </table>
  3594. <table>
  3595. <tr>
  3596. <th class="command">player.setGamemode</th>
  3597. <th class="desc">set the gamemode for a player</th>
  3598. </tr>
  3599. <tr>
  3600. <td class="bold">Format</td>
  3601. <td>player.setGamemode(player, gamemode)</td>
  3602. </tr>
  3603. <tr>
  3604. <td class="bold">Arguments</td>
  3605. <td>gamemode as "SURVIVAL" / "CREATIVE" / "ADVENTURE" / "SPECTATOR"</td>
  3606. </tr>
  3607. </table>
  3608. <table>
  3609. <tr>
  3610. <th class="command">player.isSurvival</th>
  3611. <th class="desc">returns true if a player is in gamemode survival</th>
  3612. </tr>
  3613. <tr>
  3614. <td class="bold">Format</td>
  3615. <td>player.isSurvival(player)</td>
  3616. </tr>
  3617. </table>
  3618. <table>
  3619. <tr>
  3620. <th class="command">player.isCreative</th>
  3621. <th class="desc">returns true if a player is in gamemode creative</th>
  3622. </tr>
  3623. <tr>
  3624. <td class="bold">Format</td>
  3625. <td>player.isCreative(player)</td>
  3626. </tr>
  3627. </table>
  3628. <table>
  3629. <tr>
  3630. <th class="command">player.isAdventure</th>
  3631. <th class="desc">returns true if a player is in gamemode adventure</th>
  3632. </tr>
  3633. <tr>
  3634. <td class="bold">Format</td>
  3635. <td>player.isAdventure(player)</td>
  3636. </tr>
  3637. </table>
  3638. <table>
  3639. <tr>
  3640. <th class="command">player.isSpectator</th>
  3641. <th class="desc">returns true if a player is in gamemode spectator</th>
  3642. </tr>
  3643. <tr>
  3644. <td class="bold">Format</td>
  3645. <td>player.isSpectator(player)</td>
  3646. </tr>
  3647. </table>
  3648. <table>
  3649. <tr>
  3650. <th class="command">player.hasFly</th>
  3651. <th class="desc">returns true if a player is allowed to fly</th>
  3652. </tr>
  3653. <tr>
  3654. <td class="bold">Format</td>
  3655. <td>player.hasFly(player)</td>
  3656. </tr>
  3657. </table>
  3658. <table>
  3659. <tr>
  3660. <th class="command">player.isFlying</th>
  3661. <th class="desc">returns true if a player is flying</th>
  3662. </tr>
  3663. <tr>
  3664. <td class="bold">Format</td>
  3665. <td>player.isFlying(player)</td>
  3666. </tr>
  3667. </table>
  3668. <table>
  3669. <tr>
  3670. <th class="command">player.setFly</th>
  3671. <th class="desc">set if a player is allowed to fly</th>
  3672. </tr>
  3673. <tr>
  3674. <td class="bold">Format</td>
  3675. <td>player.setFly(player, boolean)</td>
  3676. </tr>
  3677. </table>
  3678. <table>
  3679. <tr>
  3680. <th class="command">player.dropInventory</th>
  3681. <th class="desc">drops the inventory of a player at a location</th>
  3682. </tr>
  3683. <tr>
  3684. <td class="bold">Format</td>
  3685. <td>player.dropInventory(player, location)</td>
  3686. </tr>
  3687. </table>
  3688. <table>
  3689. <tr>
  3690. <th class="command">player.getItemAmount</th>
  3691. <th class="desc">returns the amount of an exact itemstack from a players inventory</th>
  3692. </tr>
  3693. <tr>
  3694. <td class="bold">Format</td>
  3695. <td>player.getItemAmount(player, itemstack)</td>
  3696. </tr>
  3697. <table>
  3698. <tr>
  3699. <th class="command">player.damageItem</th>
  3700. <th class="desc">damages the item in the hand of a player</th>
  3701. </tr>
  3702. <tr>
  3703. <td class="bold">Format</td>
  3704. <td>player.damageItem(player, damage_amount)</td>
  3705. </tr>
  3706. <tr>
  3707. <td class="bold">Info</td>
  3708. <td>unbreaking (and more) is considered</td>
  3709. </tr>
  3710. </table>
  3711. <table>
  3712. <tr>
  3713. <th class="command">player.setSpawn</th>
  3714. <th class="desc">sets the spawn location of a player</th>
  3715. </tr>
  3716. <tr>
  3717. <td class="bold">Format</td>
  3718. <td>player.setSpawn(player, location)</td>
  3719. </tr>
  3720. </table>
  3721. <table>
  3722. <tr>
  3723. <th class="command">player.getSpawn</th>
  3724. <th class="desc">returns the spawn location of a player</th>
  3725. </tr>
  3726. <tr>
  3727. <td class="bold">Format</td>
  3728. <td>player.getSpawn(player)</td>
  3729. </tr>
  3730. <tr>
  3731. <td class="bold">Format</td>
  3732. <td>spawn is linked to the bed spawn, if no bed spawn exists the return value may be null</td>
  3733. </tr>
  3734. </table>
  3735. <table>
  3736. <tr>
  3737. <th class="command">player.giveItem</th>
  3738. <th class="desc">gives an itemstack to a player and returns the item amount which did not fit in a players inventory</th>
  3739. </tr>
  3740. <tr>
  3741. <td class="bold">Format</td>
  3742. <td>player.giveItem(player, itemstack)</td>
  3743. </tr>
  3744. </table>
  3745. <table>
  3746. <tr>
  3747. <th class="command">player.addItem</th>
  3748. <th class="desc">returns 0 if the itemstack is added, otherwise the itemstack will not be added and the not fitting item amount is returned</th>
  3749. </tr>
  3750. <tr>
  3751. <td class="bold">Format</td>
  3752. <td>player.addItem(player, itemstack)</td>
  3753. </tr>
  3754. </table>
  3755. <table>
  3756. <tr>
  3757. <th class="command">player.removeItem</th>
  3758. <th class="desc">returns 0 if the itemstack is removed, otherwise the itemstack will not be removed and the missing item amount is returned</th>
  3759. </tr>
  3760. <tr>
  3761. <td class="bold">Format</td>
  3762. <td>player.removeItem(player, itemstack)</td>
  3763. </tr>
  3764. </table>
  3765. <table>
  3766. <tr>
  3767. <th class="command">player.getIP</th>
  3768. <th class="desc">returns the ip-address of a player as string</th>
  3769. </tr>
  3770. <tr>
  3771. <td class="bold">Format</td>
  3772. <td>player.getIp(player)</td>
  3773. </tr>
  3774. </table>
  3775. <table>
  3776. <tr>
  3777. <th class="command">player.getInv</th>
  3778. <th class="desc">returns the (non-copy) inventory of a player</th>
  3779. </tr>
  3780. <tr>
  3781. <td class="bold">Format</td>
  3782. <td>player.getInv(player)</td>
  3783. </tr>
  3784. </table>
  3785. <table>
  3786. <tr>
  3787. <th class="command">player.getEnderInv</th>
  3788. <th class="desc">returns the (non-copy) ender inventory of a player</th>
  3789. </tr>
  3790. <tr>
  3791. <td class="bold">Format</td>
  3792. <td>player.getEnderInv(player)</td>
  3793. </tr>
  3794. </table>
  3795. <table>
  3796. <tr>
  3797. <th class="command">player.getTargetEntity</th>
  3798. <th class="desc">returns the targeted entity</th>
  3799. </tr>
  3800. <tr>
  3801. <td class="bold">Format</td>
  3802. <td>player.getTargetEntity(player, radius)</td>
  3803. </tr>
  3804. <tr>
  3805. <td class="bold">Arguments</td>
  3806. <td>radius will be cast to int<br></td>
  3807. </tr>
  3808. </table>
  3809. <table>
  3810. <tr>
  3811. <th class="command">player.getTargetCitizen</th>
  3812. <th class="desc">returns the targeted citizen</th>
  3813. </tr>
  3814. <tr>
  3815. <td class="bold">Format</td>
  3816. <td>player.getTargetCitizen(player, radius)</td>
  3817. </tr>
  3818. <tr>
  3819. <td class="bold">Arguments</td>
  3820. <td>radius will be cast to int<br></td>
  3821. </tr>
  3822. </table>
  3823. <table>
  3824. <tr>
  3825. <th class="command">player.getLevel</th>
  3826. <th class="desc">returns the level of a player</th>
  3827. </tr>
  3828. <tr>
  3829. <td class="bold">Format</td>
  3830. <td>player.getLevel(player)</td>
  3831. </tr>
  3832. </table>
  3833. <table>
  3834. <tr>
  3835. <th class="command">player.setLevel</th>
  3836. <th class="desc">sets the level of a player</th>
  3837. </tr>
  3838. <tr>
  3839. <td class="bold">Format</td>
  3840. <td>player.setLevel(player, level)</td>
  3841. </tr>
  3842. <tr>
  3843. <td class="bold">Arguments</td>
  3844. <td>level is cast to int</td>
  3845. </tr>
  3846. </table>
  3847. <table>
  3848. <tr>
  3849. <th class="command">player.getExp</th>
  3850. <th class="desc">returns the experience of a player</th>
  3851. </tr>
  3852. <tr>
  3853. <td class="bold">Format</td>
  3854. <td>player.getExp(player)</td>
  3855. </tr>
  3856. </table>
  3857. <table>
  3858. <tr>
  3859. <th class="command">player.setExp</th>
  3860. <th class="desc">sets the experience of a player</th>
  3861. </tr>
  3862. <tr>
  3863. <td class="bold">Format</td>
  3864. <td>player.setExp(player, exp)</td>
  3865. </tr>
  3866. <tr>
  3867. <td class="bold">Arguments</td>
  3868. <td>exp is cast to float</td>
  3869. </tr>
  3870. </table>
  3871. <table>
  3872. <tr>
  3873. <th class="command">player.addTotalExp</th>
  3874. <th class="desc">modifies the experience of a player</th>
  3875. </tr>
  3876. <tr>
  3877. <td class="bold">Format</td>
  3878. <td>player.addTotalExp(player, exp)</td>
  3879. </tr>
  3880. <tr>
  3881. <td class="bold">Arguments</td>
  3882. <td>exp is cast to int</td>
  3883. </tr>
  3884. </table>
  3885. <table>
  3886. <tr>
  3887. <th class="command">player.hide</th>
  3888. <th class="desc">hides a player from another player</th>
  3889. </tr>
  3890. <tr>
  3891. <td class="bold">Format</td>
  3892. <td>player.hide(player, player_to_hide)</td>
  3893. </tr>
  3894. </table>
  3895. <table>
  3896. <tr>
  3897. <th class="command">player.show</th>
  3898. <th class="desc">shows a player or another player</th>
  3899. </tr>
  3900. <tr>
  3901. <td class="bold">Format</td>
  3902. <td>player.show(player, player_to_show)</td>
  3903. </tr>
  3904. </table>
  3905. <table>
  3906. <tr>
  3907. <th class="command">player.setFlySpeed</th>
  3908. <th class="desc">sets the fly speed of a player</th>
  3909. </tr>
  3910. <tr>
  3911. <td class="bold">Format</td>
  3912. <td>player.setFlySpeed(player, speed)</td>
  3913. </tr>
  3914. <tr>
  3915. <td class="bold">Arguments</td>
  3916. <td>speed is cast to float</td>
  3917. </tr>
  3918. </table>
  3919. <table>
  3920. <tr>
  3921. <th class="command">player.setWalkSpeed</th>
  3922. <th class="desc">sets the walk speed of a player</th>
  3923. </tr>
  3924. <tr>
  3925. <td class="bold">Format</td>
  3926. <td>player.setWalkSpeed(player, speed)</td>
  3927. </tr>
  3928. <tr>
  3929. <td class="bold">Arguments</td>
  3930. <td>speed is cast to float</td>
  3931. </tr>
  3932. </table>
  3933. <table>
  3934. <tr>
  3935. <th class="command">player.isSprinting</th>
  3936. <th class="desc">returns true if the player is sprinting</th>
  3937. </tr>
  3938. <tr>
  3939. <td class="bold">Format</td>
  3940. <td>player.isSprinting(player)</td>
  3941. </tr>
  3942. </table>
  3943. <table>
  3944. <tr>
  3945. <th class="command">player.setSprinting</th>
  3946. <th class="desc">sets weather the player is sprinting or not</th>
  3947. </tr>
  3948. <tr>
  3949. <td class="bold">Format</td>
  3950. <td>player.setSprinting(player)</td>
  3951. </tr>
  3952. </table>
  3953. <table>
  3954. <tr>
  3955. <th class="command">player.setSneaking</th>
  3956. <th class="desc">sets weather the player is sneaking or not</th>
  3957. </tr>
  3958. <tr>
  3959. <td class="bold">Format</td>
  3960. <td>player.setSneaking(player)</td>
  3961. </tr>
  3962. </table>
  3963. <table>
  3964. <tr>
  3965. <th class="command">player.isSneaking</th>
  3966. <th class="desc">returns true if a player is sneaking</th>
  3967. </tr>
  3968. <tr>
  3969. <td class="bold">Format</td>
  3970. <td>player.isSneaking(player)</td>
  3971. </tr>
  3972. </table>
  3973. <table>
  3974. <tr>
  3975. <th class="command">player.isBlocking</th>
  3976. <th class="desc">returns true if a player is blocking with their shield</th>
  3977. </tr>
  3978. <tr>
  3979. <td class="bold">Format</td>
  3980. <td>player.isBlocking(player)</td>
  3981. </tr>
  3982. </table>
  3983. <table>
  3984. <tr>
  3985. <th class="command">player.setSlot</th>
  3986. <th class="desc">sets the active slot of a player</th>
  3987. </tr>
  3988. <tr>
  3989. <td class="bold">Format</td>
  3990. <td>player.setSlot(player, slot)</td>
  3991. </tr>
  3992. <tr>
  3993. <td class="bold">Arguments</td>
  3994. <td>slot from 0 to 8</td>
  3995. </tr>
  3996. </table>
  3997. <table>
  3998. <tr>
  3999. <th class="command">player.resetSleep</th>
  4000. <th class="desc">resets the time since last rest</th>
  4001. </tr>
  4002. <tr>
  4003. <td class="bold">Format</td>
  4004. <td>player.resetSleep(player)</td>
  4005. </tr>
  4006. </table>
  4007. <table>
  4008. <tr>
  4009. <th class="command">player.getSpectatorTarget</th>
  4010. <th class="desc">gets the Targetentity the player is spectating</th>
  4011. </tr>
  4012. <tr>
  4013. <td class="bold">Format</td>
  4014. <td>player.getSpectatorTarget(player)</td>
  4015. </tr>
  4016. </table>
  4017. <table>
  4018. <tr>
  4019. <th class="command">player.setSpectatorTarget</th>
  4020. <th class="desc">sets the Targetentity the player is spectating, set entity to null to reset.</th>
  4021. </tr>
  4022. <tr>
  4023. <td class="bold">Format</td>
  4024. <td>player.getSpectatorTarget(player, entity)</td>
  4025. </tr>
  4026. </table>
  4027. <table>
  4028. <tr>
  4029. <th class="command">player.getLastDeathLocation</th>
  4030. <th class="desc">gets the players last death location</th>
  4031. </tr>
  4032. <tr>
  4033. <td class="bold">Format</td>
  4034. <td>player.getLastDeathLocation(player)</td>
  4035. </tr>
  4036. </table>
  4037. <table>
  4038. <tr>
  4039. <th class="command">player.showElderGuardian</th>
  4040. <th class="desc">if silent is true, the elder guardian animation if hidden</th>
  4041. </tr>
  4042. <tr>
  4043. <td class="bold">Format</td>
  4044. <td>player.showElderGuardian(player, silent)</td>
  4045. </tr>
  4046. </table>
  4047. <table>
  4048. <tr>
  4049. <th class="command">player.setExpCooldown</th>
  4050. <th class="desc">Sets the player's cooldown between picking up experience orbs.</th>
  4051. </tr>
  4052. <tr>
  4053. <td class="bold">Format</td>
  4054. <td>player.setExpCooldown(player, ticks)</td>
  4055. </tr>
  4056. </table>
  4057. <table>
  4058. <tr>
  4059. <th class="command">player.sendHurtAnimation</th>
  4060. <th class="desc">Fakes incoming damage, yaw from 0-270. 0 = straight, 90 = right</th>
  4061. </tr>
  4062. <tr>
  4063. <td class="bold">Format</td>
  4064. <td>player.sendHurtAnimation(player, yaw)</td>
  4065. </tr>
  4066. </table>
  4067. <table>
  4068. <tr>
  4069. <th class="command">player.lookat</th>
  4070. <th class="desc">sets the player to look at an entity, LookAnchor = "EYES"/"FEET"</th>
  4071. </tr>
  4072. <tr>
  4073. <td class="bold">Format</td>
  4074. <td>player.lookat(player, entity, playerLookAnchor, entityLookAnchor)</td>
  4075. </tr>
  4076. </table>
  4077. <table>
  4078. <tr>
  4079. <th class="command">player.getPing</th>
  4080. <th class="desc">returns the ping of a player</th>
  4081. </tr>
  4082. <tr>
  4083. <td class="bold">Format</td>
  4084. <td>player.getPing(player)</td>
  4085. </tr>
  4086. </table>
  4087. <table>
  4088. <tr>
  4089. <th class="command">player.setPlayerListHeader</th>
  4090. <th class="desc">sets the TablistHeader for the receiver</th>
  4091. </tr>
  4092. <tr>
  4093. <td class="bold">Format</td>
  4094. <td>player.setPlayerListHeader(receiver, text)</td>
  4095. </tr>
  4096. </table>
  4097. <table>
  4098. <tr>
  4099. <th class="command">player.setPlayerListFooter</th>
  4100. <th class="desc">sets the TablistFooter for the receiver</th>
  4101. </tr>
  4102. <tr>
  4103. <td class="bold">Format</td>
  4104. <td>player.setPlayerListFooter(receiver, text)</td>
  4105. </tr>
  4106. </table>
  4107. </section>
  4108. <section id="Inventory">
  4109. <table>
  4110. <tr>
  4111. <th class="command">inv.new</th>
  4112. <th class="desc">returns a new custom inventory</th>
  4113. </tr>
  4114. <tr>
  4115. <td class="bold">Format</td>
  4116. <td>inv.new(slotdata, title)</td>
  4117. </tr>
  4118. <tr>
  4119. <td class="bold">Arguments</td>
  4120. <td>
  4121. slotdata as string:<br>
  4122. 0 = no slot, throws no event<br>
  4123. 1 = normal slot, throws inv_click event<br>
  4124. 2 = button slot, throws snuvi_click event
  4125. </td>
  4126. </tr>
  4127. <tr>
  4128. <td class="bold">Examples</td>
  4129. <td>inv.new("002122000", ...)</td>
  4130. </tr>
  4131. </table>
  4132. </table>
  4133. <table>
  4134. <tr>
  4135. <th class="command">inv.getSize</th>
  4136. <th class="desc">returns the size of an inventory</th>
  4137. </tr>
  4138. <tr>
  4139. <td class="bold">Format</td>
  4140. <td>inv.getSize(inventory)</td>
  4141. </tr>
  4142. <table>
  4143. <tr>
  4144. <th class="command">inv.setItem</th>
  4145. <th class="desc">sets an itemstack on a specific slot in an inventory</th>
  4146. </tr>
  4147. <tr>
  4148. <td class="bold">Format</td>
  4149. <td>inv.setItem(inventory, slotindex, itemstack)</td>
  4150. </tr>
  4151. </table>
  4152. <table>
  4153. <tr>
  4154. <th class="command">inv.getItem</th>
  4155. <th class="desc">returns an itemstack from a specific slot of an inventory</th>
  4156. </tr>
  4157. <tr>
  4158. <td class="bold">Format</td>
  4159. <td>inv.getItem(inventory, slotindex)</td>
  4160. </tr>
  4161. </table>
  4162. <table>
  4163. <tr>
  4164. <th class="command">inv.open</th>
  4165. <th class="desc">shows an inventory to a player</th>
  4166. </tr>
  4167. <tr>
  4168. <td class="bold">Format</td>
  4169. <td>inv.open(inventory, player)</td>
  4170. </tr>
  4171. </table>
  4172. <table>
  4173. <tr>
  4174. <th class="command">inv.close</th>
  4175. <th class="desc">closes an inventory of a player</th>
  4176. </tr>
  4177. <tr>
  4178. <td class="bold">Format</td>
  4179. <td>inv.close(player)</td>
  4180. </tr>
  4181. </table>
  4182. <table>
  4183. <tr>
  4184. <th class="command">inv.clear</th>
  4185. <th class="desc">clears an inventory</th>
  4186. </tr>
  4187. <tr>
  4188. <td class="bold">Format</td>
  4189. <td>inv.clear(inv)</td>
  4190. </tr>
  4191. </table>
  4192. <table>
  4193. <tr>
  4194. <th class="command">inv.getID</th>
  4195. <th class="desc">returns the id of an inventory or -1 if no custom inventory</th>
  4196. </tr>
  4197. <tr>
  4198. <td class="bold">Format</td>
  4199. <td>inv.getID(inventory)</td>
  4200. </tr>
  4201. </table>
  4202. <table>
  4203. <tr>
  4204. <th class="command">inv.closeAll()</th>
  4205. <th class="desc">closes all custom inventories of all players</th>
  4206. </tr>
  4207. <tr>
  4208. <td class="bold">Format</td>
  4209. <td>inv.closeAll()</td>
  4210. </tr>
  4211. </table>
  4212. </section>
  4213. <section id="World">
  4214. <table>
  4215. <tr>
  4216. <th class="command">world.get</th>
  4217. <th class="desc">returns a world</th>
  4218. </tr>
  4219. <tr>
  4220. <td class="bold">Format</td>
  4221. <td>world.get(name)</td>
  4222. </tr>
  4223. </table>
  4224. <table>
  4225. <tr>
  4226. <th class="command">world.getName</th>
  4227. <th class="desc">returns the name of a world</th>
  4228. </tr>
  4229. <tr>
  4230. <td class="bold">Format</td>
  4231. <td>world.getName(world)</td>
  4232. </tr>
  4233. </table>
  4234. <table>
  4235. <tr>
  4236. <th class="command">world.getPlayers</th>
  4237. <th class="desc">returns a list with all players in a world</th>
  4238. </tr>
  4239. <tr>
  4240. <td class="bold">Format</td>
  4241. <td>world.getPlayers(world)</td>
  4242. </tr>
  4243. </table>
  4244. <table>
  4245. <tr>
  4246. <th class="command">world.setDifficulty</th>
  4247. <th class="desc">sets the difficulty of a world</th>
  4248. </tr>
  4249. <tr>
  4250. <td class="bold">Format</td>
  4251. <td>world.setDifficulty(world, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Difficulty.html" target="_blank">difficulty</a>)</td>
  4252. </tr>
  4253. </table>
  4254. <table>
  4255. <tr>
  4256. <th class="command">world.setSpawn</th>
  4257. <th class="desc">sets the world spawn</th>
  4258. </tr>
  4259. <tr>
  4260. <td class="bold">Format</td>
  4261. <td>world.setSpawn(location)</td>
  4262. </tr>
  4263. </table>
  4264. <table>
  4265. <tr>
  4266. <th class="command">world.getSpawn</th>
  4267. <th class="desc">returns the world spawn as location</th>
  4268. </tr>
  4269. <tr>
  4270. <td class="bold">Format</td>
  4271. <td>world.getSpawn(world)</td>
  4272. </tr>
  4273. </table>
  4274. <table>
  4275. <tr>
  4276. <th class="command">world.getAll</th>
  4277. <th class="desc">returns a list with all loaded worlds</th>
  4278. </tr>
  4279. <tr>
  4280. <td class="bold">Format</td>
  4281. <td>world.getAll()</td>
  4282. </tr>
  4283. </table>
  4284. <table>
  4285. <tr>
  4286. <th class="command">world.setTime</th>
  4287. <th class="desc">sets the time for a world</th>
  4288. </tr>
  4289. <tr>
  4290. <td class="bold">Format</td>
  4291. <td>world.setTime(world, time)</td>
  4292. </tr>
  4293. <tr>
  4294. <td class="bold">Arguments</td>
  4295. <td>time from 0 to 24000</td>
  4296. </tr>
  4297. </table>
  4298. <table>
  4299. <tr>
  4300. <th class="command">world.getTime</th>
  4301. <th class="desc">returns the time of a world</th>
  4302. </tr>
  4303. <tr>
  4304. <td class="bold">Format</td>
  4305. <td>world.getTime(world)</td>
  4306. </tr>
  4307. </table>
  4308. <table>
  4309. <tr>
  4310. <th class="command">world.hasRain</th>
  4311. <th class="desc">returns true if it is raining in the world</th>
  4312. </tr>
  4313. <tr>
  4314. <td class="bold">Format</td>
  4315. <td>world.hasStorm(world)</td>
  4316. </tr>
  4317. </table>
  4318. <table>
  4319. <tr>
  4320. <th class="command">world.hasThunder</th>
  4321. <th class="desc">returns true if there is thunder in the world</th>
  4322. </tr>
  4323. <tr>
  4324. <td class="bold">Format</td>
  4325. <td>world.hasThunder(world)</td>
  4326. </tr>
  4327. </table>
  4328. <table>
  4329. <tr>
  4330. <th class="command">world.clearWeather</th>
  4331. <th class="desc">clears the weather of a world</th>
  4332. </tr>
  4333. <tr>
  4334. <td class="bold">Format</td>
  4335. <td>world.clearWeather(world, ticks)</td>
  4336. </tr>
  4337. <tr>
  4338. <td class="bold">Info</td>
  4339. <td>ticks when the next rain is allowed to start</td>
  4340. </tr>
  4341. </table>
  4342. <table>
  4343. <tr>
  4344. <th class="command">world.setRain</th>
  4345. <th class="desc">sets the weather of a world to rain</th>
  4346. </tr>
  4347. <tr>
  4348. <td class="bold">Format</td>
  4349. <td>world.setRain(world, ticks)</td>
  4350. </tr>
  4351. <tr>
  4352. <td class="bold">Info</td>
  4353. <td>ticks how long the rain stays</td>
  4354. </tr>
  4355. </table>
  4356. <table>
  4357. <tr>
  4358. <th class="command">world.setThunder</th>
  4359. <th class="desc">sets the weather of a world to thunder</th>
  4360. </tr>
  4361. <tr>
  4362. <td class="bold">Format</td>
  4363. <td>world.setThunder(world, ticks)</td>
  4364. </tr>
  4365. <tr>
  4366. <td class="bold">Info</td>
  4367. <td>ticks how long the thunder stays</td>
  4368. </tr>
  4369. </table>
  4370. <table>
  4371. <tr>
  4372. <th class="command">world.getEntities</th>
  4373. <th class="desc">returns a list with all entities in a world</th>
  4374. </tr>
  4375. <tr>
  4376. <td class="bold">Format</td>
  4377. <td>world.getEntities(world)</td>
  4378. </tr>
  4379. </table>
  4380. <table>
  4381. <tr>
  4382. <th class="command">world.load</th>
  4383. <th class="desc">returns the loaded world</th>
  4384. </tr>
  4385. <tr>
  4386. <td class="bold">Format</td>
  4387. <td>world.load(name)</td>
  4388. </tr>
  4389. </table>
  4390. <table>
  4391. <tr>
  4392. <th class="command">world.unload</th>
  4393. <th class="desc">returns true if unloading a world is successful</th>
  4394. </tr>
  4395. <tr>
  4396. <td class="bold">Format</td>
  4397. <td>world.unload(world)</td>
  4398. </tr>
  4399. </table>
  4400. <table>
  4401. <tr>
  4402. <th class="command">world.getLoadedChunks</th>
  4403. <th class="desc">returns an array with all loaded chunks</th>
  4404. </tr>
  4405. <tr>
  4406. <td class="bold">Format</td>
  4407. <td>world.getLoadedChunks(world)</td>
  4408. </tr>
  4409. </table>
  4410. <table>
  4411. <tr>
  4412. <th class="command">world.unloadChunk</th>
  4413. <th class="desc">returns true if unloading a chunk is successful</th>
  4414. </tr>
  4415. <tr>
  4416. <td class="bold">Format</td>
  4417. <td>world.unloadChunk(chunk)</td>
  4418. </tr>
  4419. </table>
  4420. <table>
  4421. <tr>
  4422. <th class="command">world.getChunkX</th>
  4423. <th class="desc">returns the x chunk coordinate</th>
  4424. </tr>
  4425. <tr>
  4426. <td class="bold">Format</td>
  4427. <td>world.getChunkX(chunk)</td>
  4428. </tr>
  4429. </table>
  4430. <table>
  4431. <tr>
  4432. <th class="command">world.getChunkZ</th>
  4433. <th class="desc">returns the x chunk coordinate</th>
  4434. </tr>
  4435. <tr>
  4436. <td class="bold">Format</td>
  4437. <td>world.getChunkZ(chunk)</td>
  4438. </tr>
  4439. </table>
  4440. <table>
  4441. <tr>
  4442. <th class="command">world.isForceLoadedChunk</th>
  4443. <th class="desc">returns true if a chunk is forced to be loaded</th>
  4444. </tr>
  4445. <tr>
  4446. <td class="bold">Format</td>
  4447. <td>world.isForceLoadedChunk(chunk)</td>
  4448. </tr>
  4449. </table>
  4450. </section>
  4451. <section id="Entity">
  4452. <table>
  4453. <tr>
  4454. <th class="command">entity.getUuid</th>
  4455. <th class="desc">returns the uuid of an entity</th>
  4456. </tr>
  4457. <tr>
  4458. <td class="bold">Format</td>
  4459. <td>entity.getUuid(entity)</td>
  4460. </tr>
  4461. </table>
  4462. <table>
  4463. <tr>
  4464. <th class="command">entity.getType</th>
  4465. <th class="desc">returns the type of an entity as string</th>
  4466. </tr>
  4467. <tr>
  4468. <td class="bold">Format</td>
  4469. <td>entity.getType(entity)</td>
  4470. </tr>
  4471. </table>
  4472. <table>
  4473. <tr>
  4474. <th class="command">entity.setName</th>
  4475. <th class="desc">sets the name of an entity</th>
  4476. </tr>
  4477. <tr>
  4478. <td class="bold">Format</td>
  4479. <td>entity.setName(entity, text, [nameVisibility | false])</td>
  4480. </tr>
  4481. <tr>
  4482. <td class="bold">Info</td>
  4483. <td>nameVisibility true means an always visible name)</td>
  4484. </tr>
  4485. </table>
  4486. <table>
  4487. <tr>
  4488. <th class="command">entity.getName</th>
  4489. <th class="desc">returns the name of an entity as text</th>
  4490. </tr>
  4491. <tr>
  4492. <td class="bold">Format</td>
  4493. <td>entity.getName(entity)</td>
  4494. </tr>
  4495. </table>
  4496. <table>
  4497. <tr>
  4498. <th class="command">entity.getLocation</th>
  4499. <th class="desc">returns the location of an entity</th>
  4500. </tr>
  4501. <tr>
  4502. <td class="bold">Format</td>
  4503. <td>entity.getLocation(entity)</td>
  4504. </tr>
  4505. </table>
  4506. <table>
  4507. <tr>
  4508. <th class="command">entity.teleport</th>
  4509. <th class="desc">teleports an entity</th>
  4510. </tr>
  4511. <tr>
  4512. <td class="bold">Format</td>
  4513. <td>entity.teleport(entity, location)</td>
  4514. </tr>
  4515. </table>
  4516. <table>
  4517. <tr>
  4518. <th class="command">entity.setInvulnerable</th>
  4519. <th class="desc">sets an entity (in)vulnerable</th>
  4520. </tr>
  4521. <tr>
  4522. <td class="bold">Format</td>
  4523. <td>entity.setInvulnerable(entity, boolean)</td>
  4524. </tr>
  4525. </table>
  4526. <table>
  4527. <tr>
  4528. <th class="command">entity.remove</th>
  4529. <th class="desc">removes an entity</th>
  4530. </tr>
  4531. <tr>
  4532. <td class="bold">Format</td>
  4533. <td>entity.remove(entity)</td>
  4534. </tr>
  4535. </table>
  4536. <table>
  4537. <tr>
  4538. <th class="command">entity.removeAll</th>
  4539. <th class="desc">remove specific entities from an area</th>
  4540. </tr>
  4541. <tr>
  4542. <td class="bold">Format</td>
  4543. <td>entity.removeAll(entity_class, location, radius)</td>
  4544. </tr>
  4545. </table>
  4546. <table>
  4547. <tr>
  4548. <th class="command">entity.setSilent</th>
  4549. <th class="desc">true sets an entity silent</th>
  4550. </tr>
  4551. <tr>
  4552. <td class="bold">Format</td>
  4553. <td>entity.setSilent(entity, boolean)</td>
  4554. </tr>
  4555. </table>
  4556. <table>
  4557. <tr>
  4558. <th class="command">entity.mount</th>
  4559. <th class="desc">lets an entity ride another entity</th>
  4560. </tr>
  4561. <tr>
  4562. <td class="bold">Format</td>
  4563. <td>entity.mount(entity, mount_entity)</td>
  4564. </tr>
  4565. </table>
  4566. <table>
  4567. <tr>
  4568. <th class="command">entity.unmount</th>
  4569. <th class="desc">unmounts an entity</th>
  4570. </tr>
  4571. <tr>
  4572. <td class="bold">Format</td>
  4573. <td>entity.unmount(entity)</td>
  4574. </tr>
  4575. </table>
  4576. <table>
  4577. <tr>
  4578. <th class="command">entity.getMount</th>
  4579. <th class="desc">returns the mount of an entity</th>
  4580. </tr>
  4581. <tr>
  4582. <td class="bold">Format</td>
  4583. <td>entity.getMount(entity)</td>
  4584. </tr>
  4585. </table>
  4586. <table>
  4587. <tr>
  4588. <th class="command">entity.getPassengers</th>
  4589. <th class="desc">returns a list of passengers of an entity</th>
  4590. </tr>
  4591. <tr>
  4592. <td class="bold">Format</td>
  4593. <td>entity.getPassengers(entity)</td>
  4594. </tr>
  4595. </table>
  4596. <table>
  4597. <tr>
  4598. <th class="command">entity.isWet</th>
  4599. <th class="desc">returns true if an entity is wet</th>
  4600. </tr>
  4601. <tr>
  4602. <td class="bold">Format</td>
  4603. <td>entity.isWet(entity)</td>
  4604. </tr>
  4605. </table>
  4606. <table>
  4607. <tr>
  4608. <th class="command">entity.isBurning</th>
  4609. <th class="desc">returns true if an entity burns</th>
  4610. </tr>
  4611. <tr>
  4612. <td class="bold">Format</td>
  4613. <td>entity.isBurning(entity)</td>
  4614. </tr>
  4615. </table>
  4616. <table>
  4617. <tr>
  4618. <th class="command">entity.setBurning</th>
  4619. <th class="desc">sets an entity on fire</th>
  4620. </tr>
  4621. <tr>
  4622. <td class="bold">Format</td>
  4623. <td>entity.setBurning(entity, ticks)</td>
  4624. </tr>
  4625. <tr>
  4626. <td class="bold">Info</td>
  4627. <td>0 ticks extinguish the entity</td>
  4628. </tr>
  4629. </table>
  4630. <table>
  4631. <tr>
  4632. <th class="command">entity.setNoPickup</th>
  4633. <th class="desc">sets an arrow_entity not pickupable</th>
  4634. </tr>
  4635. <tr>
  4636. <td class="bold">Format</td>
  4637. <td>entity.setNoPickup(arrow_entity)</td>
  4638. </tr>
  4639. </table>
  4640. <table>
  4641. <tr>
  4642. <th class="command">entity.get</th>
  4643. <th class="desc">returns the next entity to a location or null</th>
  4644. </tr>
  4645. <tr>
  4646. <td class="bold">Format</td>
  4647. <td>entity.get(location, radius, entity_class)</td>
  4648. </tr>
  4649. </table>
  4650. <table>
  4651. <tr>
  4652. <th class="command">entity.spawn</th>
  4653. <th class="desc">spawns an entity and returns it</th>
  4654. </tr>
  4655. <tr>
  4656. <td class="bold">Format</td>
  4657. <td>entity.spawn(location, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/entity/EntityType.html" target="_blank">type</a>)</td>
  4658. </tr>
  4659. </table>
  4660. <table>
  4661. <tr>
  4662. <th class="command">entity.setGravity</th>
  4663. <th class="desc">toggles the gravity of an entity</th>
  4664. </tr>
  4665. <tr>
  4666. <td class="bold">Format</td>
  4667. <td>entity.setGravity(entity, boolean)</td>
  4668. </tr>
  4669. </table>
  4670. <table>
  4671. <tr>
  4672. <th class="command">entity.setGrowingAge</th>
  4673. <th class="desc">sets the growing age of an entity</th>
  4674. </tr>
  4675. <tr>
  4676. <td class="bold">Format</td>
  4677. <td>entity.setGrowingAge(entity, age_int)</td>
  4678. </tr>
  4679. </table>
  4680. <table>
  4681. <tr>
  4682. <th class="command">entity.getPotionType</th>
  4683. <th class="desc">returns the itemstack of a thrown potion</th>
  4684. </tr>
  4685. <tr>
  4686. <td class="bold">Format</td>
  4687. <td>entity.getPotionType(potion_entity)</td>
  4688. </tr>
  4689. </table>
  4690. <table>
  4691. <tr>
  4692. <th class="command">entity.near</th>
  4693. <th class="desc">returns a list with all entities within a location / a radius of an entity</th>
  4694. </tr>
  4695. <tr>
  4696. <td class="bold">Format</td>
  4697. <td>entity.near(location / entity, radius)</td>
  4698. </tr>
  4699. </table>
  4700. <table>
  4701. <tr>
  4702. <th class="command">entity.getLook</th>
  4703. <th class="desc">returns the look direction as array</th>
  4704. </tr>
  4705. <tr>
  4706. <td class="bold">Format</td>
  4707. <td>entity.getLook(entity)</td>
  4708. </tr>
  4709. </table>
  4710. <table>
  4711. <tr>
  4712. <th class="command">entity.setLook</th>
  4713. <th class="desc">sets the look of an entity</th>
  4714. </tr>
  4715. <tr>
  4716. <td class="bold">Format</td>
  4717. <td>entity.setLook(entity, x, y, z)</td>
  4718. </tr>
  4719. </table>
  4720. <table>
  4721. <tr>
  4722. <th class="command">entity.getMotion</th>
  4723. <th class="desc">returns the motion as array</th>
  4724. </tr>
  4725. <tr>
  4726. <td class="bold">Format</td>
  4727. <td>entity.getMotion(entity)</td>
  4728. </tr>
  4729. </table>
  4730. <table>
  4731. <tr>
  4732. <th class="command">entity.setMotion</th>
  4733. <th class="desc">sets the motion of an entity</th>
  4734. </tr>
  4735. <tr>
  4736. <td class="bold">Format</td>
  4737. <td>entity.setMotion(entity, x, y, z)</td>
  4738. </tr>
  4739. <tr>
  4740. <td class="bold">Info</td>
  4741. <td>x/y/z is clamped in the interval from -3.9 to 3.9 by Minecraft</td>
  4742. </tr>
  4743. </table>
  4744. <table>
  4745. <tr>
  4746. <th class="command">entity.frame.spawn</th>
  4747. <th class="desc">spawns an itemframe with an itemstack</th>
  4748. </tr>
  4749. <tr>
  4750. <td class="bold">Format</td>
  4751. <td>entity.frame.spawn(location, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/block/BlockFace.html" target="_blank">block_face</a>, itemstack)</td>
  4752. </tr>
  4753. </table>
  4754. <table>
  4755. <tr>
  4756. <th class="command">entity.frame.getItem</th>
  4757. <th class="desc">returns the itemstack of an itemframe</th>
  4758. </tr>
  4759. <tr>
  4760. <td class="bold">Format</td>
  4761. <td>entity.frame.getItem(entity_frame)</td>
  4762. </tr>
  4763. </table>
  4764. <table>
  4765. <tr>
  4766. <th class="command">entity.frame.hide</th>
  4767. <th class="desc">hides an itemframe</th>
  4768. </tr>
  4769. <tr>
  4770. <td class="bold">Format</td>
  4771. <td>entity.frame.hide(entity_frame)</td>
  4772. </tr>
  4773. </table>
  4774. <table>
  4775. <tr>
  4776. <th class="command">entity.frame.show</th>
  4777. <th class="desc">shows an itemframe</th>
  4778. </tr>
  4779. <tr>
  4780. <td class="bold">Format</td>
  4781. <td>entity.frame.show(entity_frame)</td>
  4782. </tr>
  4783. </table>
  4784. <table>
  4785. <tr>
  4786. <th class="command">entity.frame.setFixed</th>
  4787. <th class="desc">sets the fixed tag for an itemframe</th>
  4788. </tr>
  4789. <tr>
  4790. <td class="bold">Format</td>
  4791. <td>entity.frame.setFixed(entity_frame, boolean)</td>
  4792. </tr>
  4793. </table>
  4794. <table>
  4795. <tr>
  4796. <th class="command">entity.frame.setFacing</th>
  4797. <th class="desc">sets the facing for an itemframe</th>
  4798. </tr>
  4799. <tr>
  4800. <td class="bold">Format</td>
  4801. <td>entity.frame.setFacing(entity_frame, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/block/BlockFace.html" target="_blank">block_face</a>)</td>
  4802. </tr>
  4803. </table>
  4804. <table>
  4805. <tr>
  4806. <th class="command">entity.spawnSeat</th>
  4807. <th class="desc">returns an itemframe (as a seat to mount another entity)</th>
  4808. </tr>
  4809. <tr>
  4810. <td class="bold">Format</td>
  4811. <td>entity.spawnSeat(location)</td>
  4812. </tr>
  4813. </table>
  4814. <table>
  4815. <tr>
  4816. <th class="command">rabbit.spawnKillerBunny</th>
  4817. <th class="desc">spawns a killer bunny and returns it</th>
  4818. </tr>
  4819. <tr>
  4820. <td class="bold">Format</td>
  4821. <td>rabbit.spawnKillerBunny(location)</td>
  4822. </tr>
  4823. </table>
  4824. <table>
  4825. <tr>
  4826. <th class="command">creeper.explode</th>
  4827. <th class="desc">lets a creeper explode</th>
  4828. </tr>
  4829. <tr>
  4830. <td class="bold">Format</td>
  4831. <td>creeper.explode(entity)</td>
  4832. </tr>
  4833. </table>
  4834. <table>
  4835. <tr>
  4836. <th class="command">sheep.isSheared</th>
  4837. <th class="desc">returns true if a sheep is sheared</th>
  4838. </tr>
  4839. <tr>
  4840. <td class="bold">Format</td>
  4841. <td>sheep.isSheared(entity)</td>
  4842. </tr>
  4843. </table>
  4844. <table>
  4845. <tr>
  4846. <th class="command">sheep.getColor</th>
  4847. <th class="desc">returns the color of a sheep as string</th>
  4848. </tr>
  4849. <tr>
  4850. <td class="bold">Format</td>
  4851. <td>sheep.getColor(entity)</td>
  4852. </tr>
  4853. </table>
  4854. <table>
  4855. <tr>
  4856. <th class="command">pet.isTamed</th>
  4857. <th class="desc">returns true if a pet is tamed</th>
  4858. </tr>
  4859. <tr>
  4860. <td class="bold">Format</td>
  4861. <td>pet.isTamed(tameable_entity)</td>
  4862. </tr>
  4863. </table>
  4864. <table>
  4865. <tr>
  4866. <th class="command">pet.setTamed</th>
  4867. <th class="desc">sets tame state for a tameable entity</th>
  4868. </tr>
  4869. <tr>
  4870. <td class="bold">Format</td>
  4871. <td>pet.setTamed(tameable_entity, boolean, [owner])</td>
  4872. </tr>
  4873. <tr>
  4874. <td class="bold">Example</td>
  4875. <td>
  4876. pet.setTamed(horse, true)<br>
  4877. pet.setTamed(horse, false)<br>
  4878. pet.setTamed(horse, true, player)<br>
  4879. pet.setTamed(horse, false, player)<br>
  4880. </td>
  4881. </tr>
  4882. </table>
  4883. <table>
  4884. <tr>
  4885. <th class="command">pet.getOwner</th>
  4886. <th class="desc">returns the owner of a pet</th>
  4887. </tr>
  4888. <tr>
  4889. <td class="bold">Format</td>
  4890. <td>pet.getOwner(tameable_entity)</td>
  4891. </tr>
  4892. </table>
  4893. </section>
  4894. <section id="Living">
  4895. <table>
  4896. <tr>
  4897. <th class="command">living.setHealth</th>
  4898. <th class="desc">sets the health points of a living entity</th>
  4899. </tr>
  4900. <tr>
  4901. <td class="bold">Format</td>
  4902. <td>living.setHealth(living_entity, amount)</td>
  4903. </tr>
  4904. </table>
  4905. <table>
  4906. <tr>
  4907. <th class="command">living.getHealth</th>
  4908. <th class="desc">returns the health points of a living entity</th>
  4909. </tr>
  4910. <tr>
  4911. <td class="bold">Format</td>
  4912. <td>living.getHealth(living_entity)</td>
  4913. </tr>
  4914. </table>
  4915. <table>
  4916. <tr>
  4917. <th class="command">living.damage</th>
  4918. <th class="desc">damages a living entity</th>
  4919. </tr>
  4920. <tr>
  4921. <td class="bold">Format</td>
  4922. <td>living.damage(living_entity, damage_amount, damagesource)</td>
  4923. </tr>
  4924. <tr>
  4925. <td class="bold">Info</td>
  4926. <td>triggers events on the next server tick</td>
  4927. </tr>
  4928. </table>
  4929. <table>
  4930. <tr>
  4931. <th class="command">living.heal</th>
  4932. <th class="desc">heals a living entity</th>
  4933. </tr>
  4934. <tr>
  4935. <td class="bold">Format</td>
  4936. <td>living.heal(living_entity, heal_amount)</td>
  4937. </tr>
  4938. <tr>
  4939. <td class="bold">Info</td>
  4940. <td>triggers events on the next server tick</td>
  4941. </tr>
  4942. </table>
  4943. <table>
  4944. <tr>
  4945. <th class="command">living.setEquip</th>
  4946. <th class="desc">sets the equipment of a living entity</th>
  4947. </tr>
  4948. <tr>
  4949. <td class="bold">Format</td>
  4950. <td>living.setEquip(living_entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot</a>, itemstack)</td>
  4951. </tr>
  4952. </table>
  4953. <table>
  4954. <tr>
  4955. <th class="command">living.getEquip</th>
  4956. <th class="desc">returns the equipment of a living_entity</th>
  4957. </tr>
  4958. <tr>
  4959. <td class="bold">Format</td>
  4960. <td>living.getEquip(living_entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot</a>)</td>
  4961. </tr>
  4962. </table>
  4963. <table>
  4964. <tr>
  4965. <th class="command">living.near</th>
  4966. <th class="desc">returns a list with all living entities within a location / a radius of a living entity</th>
  4967. </tr>
  4968. <tr>
  4969. <td class="bold">Format</td>
  4970. <td>living.near(location / living_entity, radius)</td>
  4971. </tr>
  4972. </table>
  4973. <table>
  4974. <tr>
  4975. <th class="command">living.setAi</th>
  4976. <th class="desc">sets if the AI of an entity is active</th>
  4977. </tr>
  4978. <tr>
  4979. <td class="bold">Format</td>
  4980. <td>living.setAi(living_entity, boolean)</td>
  4981. </tr>
  4982. </table>
  4983. <table>
  4984. <tr>
  4985. <th class="command">generic living commands</th>
  4986. <th class="desc">commands for living properties</th>
  4987. </tr>
  4988. <tr>
  4989. <td class="bold">Format</td>
  4990. <td>
  4991. living.get...(living_entity)<br>
  4992. living.set...(living_entity, value)<br>
  4993. living.reset...(living_entity)
  4994. </td>
  4995. </tr>
  4996. <tr>
  4997. <td class="bold">Properties</td>
  4998. <td><a href="https://minecraft.fandom.com/wiki/Attribute#Attributes" target="_blank">attributes</a> without "GENERIC." and "_"</td>
  4999. </tr>
  5000. </table>
  5001. <table>
  5002. <tr>
  5003. <th class="command">living.shootProjectile</th>
  5004. <th class="desc">returns the shooten entity</th>
  5005. </tr>
  5006. <tr>
  5007. <td class="bold">Format</td>
  5008. <td>living.shootProjectile(living_entity, entity_class)</td>
  5009. </tr>
  5010. </table>
  5011. <table>
  5012. <tr>
  5013. <th class="command">living.setInvisible</th>
  5014. <th class="desc">sets a living_entity (in)visible</th>
  5015. </tr>
  5016. <tr>
  5017. <td class="bold">Format</td>
  5018. <td>living.setInvisible(living_entity, boolean)</td>
  5019. </tr>
  5020. </table>
  5021. <table>
  5022. <tr>
  5023. <th class="command">living.addEffect</th>
  5024. <th class="desc">adds an effect to a living_entity</th>
  5025. </tr>
  5026. <tr>
  5027. <td class="bold">Format</td>
  5028. <td>living.addEffect(living_entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/potion/PotionEffectType.html" target="_blank">effect</a>, ticks, amplifier, [particle | true])</td>
  5029. </tr>
  5030. <tr>
  5031. <td class="bold">Arguments</td>
  5032. <td>amplifier 0 means potion level 1</td>
  5033. </tr>
  5034. </table>
  5035. <table>
  5036. <tr>
  5037. <th class="command">living.clearEffects</th>
  5038. <th class="desc">removes all effects from a living entity</th>
  5039. </tr>
  5040. <tr>
  5041. <td class="bold">Format</td>
  5042. <td>living.clearEffects(living_entity)</td>
  5043. </tr>
  5044. </table>
  5045. <table>
  5046. <tr>
  5047. <th class="command">living.getEffectAmplifier</th>
  5048. <th class="desc">returns the amplifier (effect level), -1 if not existing</th>
  5049. </tr>
  5050. <tr>
  5051. <td class="bold">Format</td>
  5052. <td>living.getEffectAmplifier(entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/potion/PotionEffectType.html" target="_blank">effect</a>)</td>
  5053. </tr>
  5054. </table>
  5055. </section>
  5056. <section id="Particle">
  5057. <table>
  5058. <tr>
  5059. <th class="command">particle.get</th>
  5060. <th class="desc">returns a particle</th>
  5061. </tr>
  5062. <tr>
  5063. <td class="bold">Format</td>
  5064. <td>particle.get(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Particle.html" target="_blank">name</a>)</td>
  5065. </tr>
  5066. </table>
  5067. <table>
  5068. <tr>
  5069. <th class="command">particle.getAll</th>
  5070. <th class="desc">returns an array of all particles</th>
  5071. </tr>
  5072. <tr>
  5073. <td class="bold">Format</td>
  5074. <td>particle.getAll()</td>
  5075. </tr>
  5076. </table>
  5077. <table>
  5078. <tr>
  5079. <th class="command">particle.spawn</th>
  5080. <th class="desc">spawns a particle</th>
  5081. </tr>
  5082. <tr>
  5083. <td class="bold">Format</td>
  5084. <td>particle.spawn(location, particle, [count | 1], [speed | 0.0], [offX | 0.0], [offY | 0.0], [offZ | 0.0])</td>
  5085. </tr>
  5086. </table>
  5087. <table>
  5088. <tr>
  5089. <th class="command">particle.spawnPlayer</th>
  5090. <th class="desc">spawns a particle</th>
  5091. </tr>
  5092. <tr>
  5093. <td class="bold">Format</td>
  5094. <td>particle.spawnPlayer(location, particle, player, [count | 1], [speed | 0.0], [offX | 0.0], [offY | 0.0], [offZ | 0.0])</td>
  5095. </tr>
  5096. </table>
  5097. </section>
  5098. <section id="Sound">
  5099. <table>
  5100. <tr>
  5101. <th class="command">sound.get</th>
  5102. <th class="desc">returns a sound</th>
  5103. </tr>
  5104. <tr>
  5105. <td class="bold">Format</td>
  5106. <td>sound.get(<a href="https://minecraft.fandom.com/wiki/Sounds.json#Sound_events" target="_blank">name</a>)</td>
  5107. </tr>
  5108. </table>
  5109. <table>
  5110. <tr>
  5111. <th class="command">sound.getCategory</th>
  5112. <th class="desc">returns a sound category</th>
  5113. </tr>
  5114. <tr>
  5115. <td class="bold">Format</td>
  5116. <td>sound.getCategory(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/SoundCategory.html" target="_blank">name</a>)</td>
  5117. </tr>
  5118. </table>
  5119. <table>
  5120. <tr>
  5121. <th class="command">sound.spawn</th>
  5122. <th class="desc">plays a sound</th>
  5123. </tr>
  5124. <tr>
  5125. <td class="bold">Format</td>
  5126. <td>sound.spawn(location, sound, sound_category, [volume | 1.0], [pitch | random from 0.9 to 1.0])</td>
  5127. </tr>
  5128. </table>
  5129. <table>
  5130. <tr>
  5131. <th class="command">sound.spawnForPlayer</th>
  5132. <th class="desc">plays a sound for a player</th>
  5133. </tr>
  5134. <tr>
  5135. <td class="bold">Format</td>
  5136. <td>sound.spawnForPlayer(player, sound, sound_category, [volume | 1.0], [pitch | random from 0.9 to 1.0])</td>
  5137. </tr>
  5138. </table>
  5139. </section>
  5140. <section id="Boss">
  5141. <table>
  5142. <tr>
  5143. <th class="command">boss.create</th>
  5144. <th class="desc">returns a bossbar</th>
  5145. </tr>
  5146. <tr>
  5147. <td class="bold">Format</td>
  5148. <td>boss.create(title, color, barstyle)</td>
  5149. </tr>
  5150. <tr>
  5151. <td class="bold">Arguments</td>
  5152. <td>
  5153. title as string<br>
  5154. <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarColor.html" target="_blank">color</a> as string<br>
  5155. <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarStyle.html" target="_blank">barstyle</a> as string
  5156. </td>
  5157. </tr>
  5158. </table>
  5159. <table>
  5160. <tr>
  5161. <th class="command">boss.addPlayer</th>
  5162. <th class="desc">add a player to the bossbar</th>
  5163. </tr>
  5164. <tr>
  5165. <td class="bold">Format</td>
  5166. <td>boss.addPlayer(bossbar, player)</td>
  5167. </tr>
  5168. </table>
  5169. <table>
  5170. <tr>
  5171. <th class="command">boss.removePlayer</th>
  5172. <th class="desc">remove a player from the bossbar</th>
  5173. </tr>
  5174. <tr>
  5175. <td class="bold">Format</td>
  5176. <td>boss.removePlayer(bossbar, player)</td>
  5177. </tr>
  5178. </table>
  5179. <table>
  5180. <tr>
  5181. <th class="command">boss.removeAll</th>
  5182. <th class="desc">remove all players from the bossbar</th>
  5183. </tr>
  5184. <tr>
  5185. <td class="bold">Format</td>
  5186. <td>boss.removeAll(bossbar)</td>
  5187. </tr>
  5188. </table>
  5189. <table>
  5190. <tr>
  5191. <th class="command">boss.addFlag</th>
  5192. <th class="desc">adds a flag to the bossbar</th>
  5193. </tr>
  5194. <tr>
  5195. <td class="bold">Format</td>
  5196. <td>boss.addFlag(bossbar, flag)</td>
  5197. </tr>
  5198. <tr>
  5199. <td class="bold">Arguments</td>
  5200. <td><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarFlag.html" target="_blank">flag</a> as string</td>
  5201. </tr>
  5202. </table>
  5203. <table>
  5204. <tr>
  5205. <th class="command">boss.removeFlag</th>
  5206. <th class="desc">removes a flag from the bossbar</th>
  5207. </tr>
  5208. <tr>
  5209. <td class="bold">Format</td>
  5210. <td>boss.removeFlag(bossbar, flag)</td>
  5211. </tr>
  5212. <tr>
  5213. <td class="bold">Arguments</td>
  5214. <td><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarFlag.html" target="_blank">flag</a> as string</td>
  5215. </tr>
  5216. </table>
  5217. <table>
  5218. <tr>
  5219. <th class="command">boss.setTitle</th>
  5220. <th class="desc">sets the title for the bossbar</th>
  5221. </tr>
  5222. <tr>
  5223. <td class="bold">Format</td>
  5224. <td>boss.setTitle(bossbar, string)</td>
  5225. </tr>
  5226. </table>
  5227. <table>
  5228. <tr>
  5229. <th class="command">boss.setProgress</th>
  5230. <th class="desc">sets the progress of the bossbar</th>
  5231. </tr>
  5232. <tr>
  5233. <td class="bold">Format</td>
  5234. <td>boss.setProgress(bossbar, double)</td>
  5235. </tr>
  5236. <tr>
  5237. <td class="bold">Arguments</td>
  5238. <td>double from 0 to 1</td>
  5239. </tr>
  5240. </table>
  5241. </section>
  5242. <section id="Whitelist">
  5243. <table>
  5244. <tr>
  5245. <th class="command">whitelist.enable</th>
  5246. <th class="desc">enables the whitelist</th>
  5247. </tr>
  5248. <tr>
  5249. <td class="bold">Format</td>
  5250. <td>whitelist.enable()</td>
  5251. </tr>
  5252. </table>
  5253. <table>
  5254. <tr>
  5255. <th class="command">whitelist.disable</th>
  5256. <th class="desc">disables the whitelist</th>
  5257. </tr>
  5258. <tr>
  5259. <td class="bold">Format</td>
  5260. <td>whitelist.disable()</td>
  5261. </tr>
  5262. </table>
  5263. <table>
  5264. <tr>
  5265. <th class="command">whitelist.add</th>
  5266. <th class="desc">adds a player to the whitelist</th>
  5267. </tr>
  5268. <tr>
  5269. <td class="bold">Format</td>
  5270. <td>whitelist.add(uuid / uuid_string / player)</td>
  5271. </tr>
  5272. </table>
  5273. <table>
  5274. <tr>
  5275. <th class="command">whitelist.remove</th>
  5276. <th class="desc">removes a player from the whitelist</th>
  5277. </tr>
  5278. <tr>
  5279. <td class="bold">Format</td>
  5280. <td>whitelist.remove(uuid / uuid_string / player)</td>
  5281. </tr>
  5282. </table>
  5283. <table>
  5284. <tr>
  5285. <th class="command">whitelist.clear</th>
  5286. <th class="desc">clears the whitelist</th>
  5287. </tr>
  5288. <tr>
  5289. <td class="bold">Format</td>
  5290. <td>whitelist.clear()</td>
  5291. </tr>
  5292. </table>
  5293. </section>
  5294. <section id="Armorstand">
  5295. <table>
  5296. <tr>
  5297. <th class="command">as.getBodyPose</th>
  5298. <th class="desc">returns the body pose of an armor stand</th>
  5299. </tr>
  5300. <tr>
  5301. <td class="bold">Format</td>
  5302. <td>as.getBodyPose(armor_stand)</td>
  5303. </tr>
  5304. </table>
  5305. <table>
  5306. <tr>
  5307. <th class="command">as.getHeadPose</th>
  5308. <th class="desc">returns the head pose of an armor stand</th>
  5309. </tr>
  5310. <tr>
  5311. <td class="bold">Format</td>
  5312. <td>as.getHeadPose(armor_stand)</td>
  5313. </tr>
  5314. </table>
  5315. <table>
  5316. <tr>
  5317. <th class="command">as.getLeftArmPose</th>
  5318. <th class="desc">returns the left arm pose of an armor stand</th>
  5319. </tr>
  5320. <tr>
  5321. <td class="bold">Format</td>
  5322. <td>as.getLeftArmPose(armor_stand)</td>
  5323. </tr>
  5324. </table>
  5325. <table>
  5326. <tr>
  5327. <th class="command">as.getRightArmPose</th>
  5328. <th class="desc">returns the right arm pose of an armor stand</th>
  5329. </tr>
  5330. <tr>
  5331. <td class="bold">Format</td>
  5332. <td>as.getRightArmPose(armor_stand)</td>
  5333. </tr>
  5334. </table>
  5335. <table>
  5336. <tr>
  5337. <th class="command">as.getLeftLegPose</th>
  5338. <th class="desc">returns the left leg pose of an armor stand</th>
  5339. </tr>
  5340. <tr>
  5341. <td class="bold">Format</td>
  5342. <td>as.getLeftLegPose(armor_stand)</td>
  5343. </tr>
  5344. </table>
  5345. <table>
  5346. <tr>
  5347. <th class="command">as.getRightLegPose</th>
  5348. <th class="desc">returns the right leg pose of an armor stand</th>
  5349. </tr>
  5350. <tr>
  5351. <td class="bold">Format</td>
  5352. <td>as.getRightLegPose(armor_stand)</td>
  5353. </tr>
  5354. </table>
  5355. <table>
  5356. <tr>
  5357. <th class="command">as.hasArms</th>
  5358. <th class="desc">returns true if an armor stand has arms</th>
  5359. </tr>
  5360. <tr>
  5361. <td class="bold">Format</td>
  5362. <td>as.hasArms(armor_stand)</td>
  5363. </tr>
  5364. </table>
  5365. <table>
  5366. <tr>
  5367. <th class="command">as.hasBasePlate</th>
  5368. <th class="desc">returns true if an armor stand has a base plate</th>
  5369. </tr>
  5370. <tr>
  5371. <td class="bold">Format</td>
  5372. <td>as.hasBasePlate(armor_stand)</td>
  5373. </tr>
  5374. </table>
  5375. <table>
  5376. <tr>
  5377. <th class="command">as.isMarker</th>
  5378. <th class="desc">returns true if an armor stand is a marker</th>
  5379. </tr>
  5380. <tr>
  5381. <td class="bold">Format</td>
  5382. <td>as.isMarker(armor_stand)</td>
  5383. </tr>
  5384. </table>
  5385. <table>
  5386. <tr>
  5387. <th class="command">as.isSmall</th>
  5388. <th class="desc">returns true if an armor stand is small</th>
  5389. </tr>
  5390. <tr>
  5391. <td class="bold">Format</td>
  5392. <td>as.isSmall(armor_stand)</td>
  5393. </tr>
  5394. </table>
  5395. <table>
  5396. <tr>
  5397. <th class="command">as.setArms</th>
  5398. <th class="desc">sets that an armor stand can have arms</th>
  5399. </tr>
  5400. <tr>
  5401. <td class="bold">Format</td>
  5402. <td>as.setArms(armor_stand, boolean)</td>
  5403. </tr>
  5404. </table>
  5405. <table>
  5406. <tr>
  5407. <th class="command">as.setBasePlate</th>
  5408. <th class="desc">sets that an armor stand can have a base plate</th>
  5409. </tr>
  5410. <tr>
  5411. <td class="bold">Format</td>
  5412. <td>as.setBasePlate(armor_stand, boolean)</td>
  5413. </tr>
  5414. </table>
  5415. <table>
  5416. <tr>
  5417. <th class="command">as.setMarker</th>
  5418. <th class="desc">sets that an armor stand can be a marker</th>
  5419. </tr>
  5420. <tr>
  5421. <td class="bold">Format</td>
  5422. <td>as.setMarker(armor_stand, boolean)</td>
  5423. </tr>
  5424. </table>
  5425. <table>
  5426. <tr>
  5427. <th class="command">as.setSmall</th>
  5428. <th class="desc">sets that an armor stand is small</th>
  5429. </tr>
  5430. <tr>
  5431. <td class="bold">Format</td>
  5432. <td>as.setSmall(armor_stand, boolean)</td>
  5433. </tr>
  5434. </table>
  5435. <table>
  5436. <tr>
  5437. <th class="command">as.canMove</th>
  5438. <th class="desc">sets that an armor stand can move</th>
  5439. </tr>
  5440. <tr>
  5441. <td class="bold">Format</td>
  5442. <td>as.canMove(armor_stand, boolean)</td>
  5443. </tr>
  5444. </table>
  5445. <table>
  5446. <tr>
  5447. <th class="command">as.canTick</th>
  5448. <th class="desc">sets that an armor stand can tick</th>
  5449. </tr>
  5450. <tr>
  5451. <td class="bold">Format</td>
  5452. <td>as.canTick(armor_stand, boolean)</td>
  5453. </tr>
  5454. </table>
  5455. <table>
  5456. <tr>
  5457. <th class="command">as.setBodyPose</th>
  5458. <th class="desc">sets the body pose of an armor stand</th>
  5459. </tr>
  5460. <tr>
  5461. <td class="bold">Format</td>
  5462. <td>as.setBodyPose(armor_stand, euler_angle)</td>
  5463. </tr>
  5464. </table>
  5465. <table>
  5466. <tr>
  5467. <th class="command">as.setHeadPose</th>
  5468. <th class="desc">sets the head pose of an armor stand</th>
  5469. </tr>
  5470. <tr>
  5471. <td class="bold">Format</td>
  5472. <td>as.setHeadPose(armor_stand, euler_angle)</td>
  5473. </tr>
  5474. </table>
  5475. <table>
  5476. <tr>
  5477. <th class="command">as.setLeftArmPose</th>
  5478. <th class="desc">sets the left arm pose of an armor stand</th>
  5479. </tr>
  5480. <tr>
  5481. <td class="bold">Format</td>
  5482. <td>as.setLeftArmPose(armor_stand, euler_angle)</td>
  5483. </tr>
  5484. </table>
  5485. <table>
  5486. <tr>
  5487. <th class="command">as.setRightArmPose</th>
  5488. <th class="desc">sets the right arm pose of an armor stand</th>
  5489. </tr>
  5490. <tr>
  5491. <td class="bold">Format</td>
  5492. <td>as.setRightArmPose(armor_stand, euler_angle)</td>
  5493. </tr>
  5494. </table>
  5495. <table>
  5496. <tr>
  5497. <th class="command">as.setLeftLegPose</th>
  5498. <th class="desc">sets the left leg pose of an armor stand</th>
  5499. </tr>
  5500. <tr>
  5501. <td class="bold">Format</td>
  5502. <td>as.setLeftLegPose(armor_stand, euler_angle)</td>
  5503. </tr>
  5504. </table>
  5505. <table>
  5506. <tr>
  5507. <th class="command">as.setRightLegPose</th>
  5508. <th class="desc">sets the right leg pose of an armor stand</th>
  5509. </tr>
  5510. <tr>
  5511. <td class="bold">Format</td>
  5512. <td>as.setRightLegPose(armor_stand, euler_angle)</td>
  5513. </tr>
  5514. </table>
  5515. <table>
  5516. <tr>
  5517. <th class="command">euler.new</th>
  5518. <th class="desc">returns a new created euler angle</th>
  5519. </tr>
  5520. <tr>
  5521. <td class="bold">Format</td>
  5522. <td>euler.new(x, y, z)</td>
  5523. </tr>
  5524. </table>
  5525. <table>
  5526. <tr>
  5527. <th class="command">euler.getX</th>
  5528. <th class="desc">returns the x angle of an euler angle</th>
  5529. </tr>
  5530. <tr>
  5531. <td class="bold">Format</td>
  5532. <td>euler.getX(euler_angle)</td>
  5533. </tr>
  5534. </table>
  5535. <table>
  5536. <tr>
  5537. <th class="command">euler.getY</th>
  5538. <th class="desc">returns the y angle of an euler angle</th>
  5539. </tr>
  5540. <tr>
  5541. <td class="bold">Format</td>
  5542. <td>euler.getY(euler_angle)</td>
  5543. </tr>
  5544. </table>
  5545. <table>
  5546. <tr>
  5547. <th class="command">euler.getZ</th>
  5548. <th class="desc">returns the z angle of an euler angle</th>
  5549. </tr>
  5550. <tr>
  5551. <td class="bold">Format</td>
  5552. <td>euler.getZ(euler_angle)</td>
  5553. </tr>
  5554. </table>
  5555. <table>
  5556. <tr>
  5557. <th class="command">euler.setX</th>
  5558. <th class="desc">sets the x angle of an euler angle</th>
  5559. </tr>
  5560. <tr>
  5561. <td class="bold">Format</td>
  5562. <td>euler.setX(euler_angle, value)</td>
  5563. </tr>
  5564. </table>
  5565. <table>
  5566. <tr>
  5567. <th class="command">euler.setY</th>
  5568. <th class="desc">sets the y angle of an euler angle</th>
  5569. </tr>
  5570. <tr>
  5571. <td class="bold">Format</td>
  5572. <td>euler.setY(euler_angle, value)</td>
  5573. </tr>
  5574. </table>
  5575. <table>
  5576. <tr>
  5577. <th class="command">euler.setZ</th>
  5578. <th class="desc">sets the z angle of an euler angle</th>
  5579. </tr>
  5580. <tr>
  5581. <td class="bold">Format</td>
  5582. <td>euler.setZ(euler_angle, value)</td>
  5583. </tr>
  5584. </table>
  5585. </section>