docu_minecraft.php 168 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536
  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.20/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.20/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.20/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.20/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.20/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.20/org/bukkit/event/block/Action.html" target="_blank">action</a> as string<br><a href="https://papermc.io/javadocs/paper/1.20/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.20/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.20/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.20/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.20/org/bukkit/event/inventory/ClickType.html" target="_blank">click</a> as string<br><a href="https://papermc.io/javadocs/paper/1.20/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.20/org/bukkit/event/inventory/ClickType.html" target="_blank">click</a> as string<br><a href="https://papermc.io/javadocs/paper/1.20/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.20/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.20/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. </section>
  596. <section id="Event">
  597. <table>
  598. <tr>
  599. <th class="command">event.addMoveData</th>
  600. <th class="desc">creates an area for player_move events and returns the id</th>
  601. </tr>
  602. <tr>
  603. <td class="bold">Format</td>
  604. <td>event.addMoveData(location1, location2, cooldown, livingtime, [uuid / uuid_string / player])</td>
  605. </tr>
  606. <tr>
  607. <td class="bold">Arguments</td>
  608. <td>
  609. cooldown: -1 terminated after a single trigger<br>
  610. cooldown: > 0 clock rate in ticks, no termination<br>
  611. livingtime: -1 area lives forever<br>
  612. livingtime: > 0 stays amount of ticks alive<br>
  613. uuid / uuid_string / player: event only triggers for this player
  614. </td>
  615. </tr>
  616. <tr>
  617. <td class="bold">Info</td>
  618. <td>on script termination this area will be removed</td>
  619. </tr>
  620. </table>
  621. <table>
  622. <tr>
  623. <th class="command"event.removeMoveData</th>
  624. <th class="desc">removes an area for player_move events by id</th>
  625. </tr>
  626. <tr>
  627. <td class="bold">Format</td>
  628. <td>event.removeMoveData(id)</td>
  629. </tr>
  630. </table>
  631. </section>
  632. <section id="Ban">
  633. <table>
  634. <tr>
  635. <th class="command">ban.add</th>
  636. <th class="desc">bans a player from the server</th>
  637. </tr>
  638. <tr>
  639. <td class="bold">Format</td>
  640. <td>ban.add(player_name, reason, banner, [end_date])</td>
  641. </tr>
  642. <tr>
  643. <td class="bold">Arguments</td>
  644. <td>
  645. reason as string<br>
  646. banner as string (the person who bans, write what you want)<br>
  647. end_date as calendar object
  648. </td>
  649. </tr>
  650. </table>
  651. <table>
  652. <tr>
  653. <th class="command">ban.remove</th>
  654. <th class="desc">unbans a player from the server</th>
  655. </tr>
  656. <tr>
  657. <td class="bold">Format</td>
  658. <td>ban.remove(player_uuid)</td>
  659. </tr>
  660. </table>
  661. <table>
  662. <tr>
  663. <th class="command">ban.addIp</th>
  664. <th class="desc">bans an IP from the server</th>
  665. </tr>
  666. <tr>
  667. <td class="bold">Format</td>
  668. <td>ban.addIp(ip, reason, banner, [end_date])</td>
  669. </tr>
  670. <tr>
  671. <td class="bold">Arguments</td>
  672. <td>
  673. reason as string<br>
  674. banner as string (the person who bans, write what you want)<br>
  675. end_date as calendar object
  676. </td>
  677. </tr>
  678. </table>
  679. <table>
  680. <tr>
  681. <th class="command">ban.removeIp</th>
  682. <th class="desc">unbans an IP from the server</th>
  683. </tr>
  684. <tr>
  685. <td class="bold">Format</td>
  686. <td>ban.removeIp(ip)</td>
  687. </tr>
  688. </table>
  689. <table>
  690. <tr>
  691. <th class="command">ban.kick</th>
  692. <th class="desc">kicks a player from the server</th>
  693. </tr>
  694. <tr>
  695. <td class="bold">Format</td>
  696. <td>ban.kick(player, reason)</td>
  697. </tr>
  698. <tr>
  699. <td class="bold">Arguments</td>
  700. <td>reason as text</td>
  701. </tr>
  702. </table>
  703. </section>
  704. <section id="Block">
  705. <table>
  706. <tr>
  707. <th class="command">block.setData</th>
  708. <th class="desc">set a block</th>
  709. </tr>
  710. <tr>
  711. <td class="bold">Format</td>
  712. <td>block.setData(block, blockdata, [boolean | false])</td>
  713. </tr>
  714. <tr>
  715. <td class="bold">Arguments</td>
  716. <td>boolean true places with block update</td>
  717. </tr>
  718. </table>
  719. <table>
  720. <tr>
  721. <th class="command">block.setMaterial</th>
  722. <th class="desc">set a block</th>
  723. </tr>
  724. <tr>
  725. <td class="bold">Format</td>
  726. <td>block.setMaterial(block, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Material.html" target="_blank">material</a>, [boolean | false])</td>
  727. </tr>
  728. <tr>
  729. <td class="bold">Arguments</td>
  730. <td>boolean true places with block update</td>
  731. </tr>
  732. </table>
  733. <table>
  734. <tr>
  735. <th class="command">block.clone</th>
  736. <th class="desc">clone a block to a location</th>
  737. </tr>
  738. <tr>
  739. <td class="bold">Format</td>
  740. <td>block.clone(block, location, [boolean | false])</td>
  741. </tr>
  742. <tr>
  743. <td class="bold">Arguments</td>
  744. <td>boolean true places with block update</td>
  745. </tr>
  746. </table>
  747. <table>
  748. <tr>
  749. <th class="command">block.setSign</th>
  750. <th class="desc">set text on a sign</th>
  751. </tr>
  752. <tr>
  753. <td class="bold">Format</td>
  754. <td>block.setSign(block, side, row, text)</td>
  755. </tr>
  756. <tr>
  757. <td class="bold">Arguments</td>
  758. <td>row from 0 to 3<br>side: "FRONT"/"BACK"</td>
  759. </tr>
  760. </table>
  761. <table>
  762. <tr>
  763. <th class="command">block.getSign</th>
  764. <th class="desc">returns the text of a sign from a specific row</th>
  765. </tr>
  766. <tr>
  767. <td class="bold">Format</td>
  768. <td>block.getSign(block, side, row)</td>
  769. </tr>
  770. <tr>
  771. <td class="bold">Arguments</td>
  772. <td>row from 0 to 3<br>side: "FRONT"/"BACK"</td>
  773. </tr>
  774. </table>
  775. <table>
  776. <tr>
  777. <th class="command">block.signSetWaxed</th>
  778. <th class="desc">wax/unwax a sign</th>
  779. </tr>
  780. <tr>
  781. <td class="bold">Format</td>
  782. <td>block.signSetWaxed(block, boolean)</td>
  783. </tr>
  784. </table>
  785. <table>
  786. <tr>
  787. <th class="command">block.get</th>
  788. <th class="desc">returns a block</th>
  789. </tr>
  790. <tr>
  791. <td class="bold">Format</td>
  792. <td>block.get(location)</td>
  793. </tr>
  794. </table>
  795. <table>
  796. <tr>
  797. <th class="command">block.getData</th>
  798. <th class="desc">returns the blockdata of a block</th>
  799. </tr>
  800. <tr>
  801. <td class="bold">Format</td>
  802. <td>block.getData(block)</td>
  803. </tr>
  804. </table>
  805. <table>
  806. <tr>
  807. <th class="command">block.getInventory</th>
  808. <th class="desc">returns the inventory of a block or null if it is not a container</th>
  809. </tr>
  810. <tr>
  811. <td class="bold">Format</td>
  812. <td>block.getInventory(block)</td>
  813. </tr>
  814. </table>
  815. <table>
  816. <tr>
  817. <th class="command">block.getType</th>
  818. <th class="desc">returns the <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Material.html" target="_blank">material</a> of a block</th>
  819. </tr>
  820. <tr>
  821. <td class="bold">Format</td>
  822. <td>block.getType(block)</td>
  823. </tr>
  824. </table>
  825. <table>
  826. <tr>
  827. <th class="command">block.getLocation</th>
  828. <th class="desc">returns the location of a block</th>
  829. </tr>
  830. <tr>
  831. <td class="bold">Format</td>
  832. <td>block.getLocation(block)</td>
  833. </tr>
  834. </table>
  835. <table>
  836. <tr>
  837. <th class="command">block.setOpen</th>
  838. <th class="desc">set the open property for a block</th>
  839. </tr>
  840. <tr>
  841. <td class="bold">Format</td>
  842. <td>block.setOpen(block, boolean)</td>
  843. </tr>
  844. </table>
  845. <table>
  846. <tr>
  847. <th class="command">block.isOpen</th>
  848. <th class="desc">returns true if the block is open</th>
  849. </tr>
  850. <tr>
  851. <td class="bold">Format</td>
  852. <td>block.isOpen(block)</td>
  853. </tr>
  854. </table>
  855. <table>
  856. <tr>
  857. <th class="command">block.getTag</th>
  858. <th class="desc">returns a tag</th>
  859. </tr>
  860. <tr>
  861. <td class="bold">Format</td>
  862. <td>block.getTag(String tag_name)</td>
  863. </tr>
  864. </table>
  865. <table>
  866. <tr>
  867. <th class="command">block.hasTag</th>
  868. <th class="desc">returns true if a block has a tag</th>
  869. </tr>
  870. <tr>
  871. <td class="bold">Format</td>
  872. <td>block.hasTag(block, tag)</td>
  873. </tr>
  874. </table>
  875. <table>
  876. <tr>
  877. <th class="command">block.break</th>
  878. <th class="desc">breaks a block and drops the item</th>
  879. </tr>
  880. <tr>
  881. <td class="bold">Format</td>
  882. <td>block.break(block, [entity])</td>
  883. </tr>
  884. </table>
  885. <table>
  886. <tr>
  887. <th class="command">block.getEntity</th>
  888. <th class="desc">return the tile entity of a block</th>
  889. </tr>
  890. <tr>
  891. <td class="bold">Format</td>
  892. <td>block.getEntity(block)</td>
  893. </tr>
  894. </table>
  895. <table>
  896. <tr>
  897. <th class="command">block.setEntity</th>
  898. <th class="desc">set the tile entity for a block</th>
  899. </tr>
  900. <tr>
  901. <td class="bold">Format</td>
  902. <td>block.setEntity(block, entity)</td>
  903. </tr>
  904. </table>
  905. <table>
  906. <tr>
  907. <th class="command">block.isOpenable</th>
  908. <th class="desc">returns true if a block is openable</th>
  909. </tr>
  910. <tr>
  911. <td class="bold">Format</td>
  912. <td>block.isOpenable(block)</td>
  913. </tr>
  914. </table>
  915. <table>
  916. <tr>
  917. <th class="command">block.isDoor</th>
  918. <th class="desc">returns true if a block is a door</th>
  919. </tr>
  920. <tr>
  921. <td class="bold">Format</td>
  922. <td>block.isDoor(block)</td>
  923. </tr>
  924. </table>
  925. <table>
  926. <tr>
  927. <th class="command">block.setDoorHinge</th>
  928. <th class="desc">sets the door hinge of a block</th>
  929. </tr>
  930. <tr>
  931. <td class="bold">Format</td>
  932. <td>block.setDoorHinge(block, door_hinge_string)</td>
  933. </tr>
  934. </table>
  935. <table>
  936. <tr>
  937. <th class="command">block.getDoorHinge</th>
  938. <th class="desc">returns the door hinge of a block as string</th>
  939. </tr>
  940. <tr>
  941. <td class="bold">Format</td>
  942. <td>block.getDoorHinge(block)</td>
  943. </tr>
  944. </table>
  945. <table>
  946. <tr>
  947. <th class="command">block.setBisectedHalf</th>
  948. <th class="desc">sets the bisected half of a block</th>
  949. </tr>
  950. <tr>
  951. <td class="bold">Format</td>
  952. <td>block.setBisectedHalf(block, bisected_half_string)</td>
  953. </tr>
  954. </table>
  955. <table>
  956. <tr>
  957. <th class="command">block.getBisectedHalf</th>
  958. <th class="desc">returns the bisected half of a block as string</th>
  959. </tr>
  960. <tr>
  961. <td class="bold">Format</td>
  962. <td>block.getBisectedHalf(block)</td>
  963. </tr>
  964. </table>
  965. <table>
  966. <tr>
  967. <th class="command">block.isBisected</th>
  968. <th class="desc">returns true if a block is bisected</th>
  969. </tr>
  970. <tr>
  971. <td class="bold">Format</td>
  972. <td>block.isBisected(block)</td>
  973. </tr>
  974. </table>
  975. <table>
  976. <tr>
  977. <th class="command">block.setDirectionalFace</th>
  978. <th class="desc">sets the directional face of a block</th>
  979. </tr>
  980. <tr>
  981. <td class="bold">Format</td>
  982. <td>block.setDirectionalFace(block, directional_face_string)</td>
  983. </tr>
  984. </table>
  985. <table>
  986. <tr>
  987. <th class="command">block.getDirectionalFace</th>
  988. <th class="desc">returns the directional face of a block as string</th>
  989. </tr>
  990. <tr>
  991. <td class="bold">Format</td>
  992. <td>block.getDirectionalFace(block)</td>
  993. </tr>
  994. </table>
  995. <table>
  996. <tr>
  997. <th class="command">block.getDirectionalFaces</th>
  998. <th class="desc">returns a list with directional faces as string of a block</th>
  999. </tr>
  1000. <tr>
  1001. <td class="bold">Format</td>
  1002. <td>block.getDirectionalFaces(block)</td>
  1003. </tr>
  1004. </table>
  1005. <table>
  1006. <tr>
  1007. <th class="command">block.isDirectional</th>
  1008. <th class="desc">returns true if a block is directional</th>
  1009. </tr>
  1010. <tr>
  1011. <td class="bold">Format</td>
  1012. <td>block.isDirectional(block)</td>
  1013. </tr>
  1014. </table>
  1015. <table>
  1016. <tr>
  1017. <th class="command">block.setPersistent</th>
  1018. <th class="desc">sets the persistence of a block</th>
  1019. </tr>
  1020. <tr>
  1021. <td class="bold">Format</td>
  1022. <td>block.setPersistent(block, boolean)</td>
  1023. </tr>
  1024. </table>
  1025. <table>
  1026. <tr>
  1027. <th class="command">block.isPersistent</th>
  1028. <th class="desc">returns true if a block is persistent</th>
  1029. </tr>
  1030. <tr>
  1031. <td class="bold">Format</td>
  1032. <td>block.isPersistent(block)</td>
  1033. </tr>
  1034. </table>
  1035. <table>
  1036. <tr>
  1037. <th class="command">block.isLeaves</th>
  1038. <th class="desc">returns true if a block is a leaf</th>
  1039. </tr>
  1040. <tr>
  1041. <td class="bold">Format</td>
  1042. <td>block.isLeaves(block)</td>
  1043. </tr>
  1044. </table>
  1045. <table>
  1046. <tr>
  1047. <th class="command">block.canHaveWater</th>
  1048. <th class="desc">returns true if a block can have water</th>
  1049. </tr>
  1050. <tr>
  1051. <td class="bold">Format</td>
  1052. <td>block.canHaveWater(block)</td>
  1053. </tr>
  1054. </table>
  1055. <table>
  1056. <tr>
  1057. <th class="command">block.isWaterLogged</th>
  1058. <th class="desc">returns true if a block is waterlogged</th>
  1059. </tr>
  1060. <tr>
  1061. <td class="bold">Format</td>
  1062. <td>block.isWaterLogged(block)</td>
  1063. </tr>
  1064. </table>
  1065. <table>
  1066. <tr>
  1067. <th class="command">block.setWaterLogged</th>
  1068. <th class="desc">set the waterlogged property of a block</th>
  1069. </tr>
  1070. <tr>
  1071. <td class="bold">Format</td>
  1072. <td>block.setWaterLogged(block, boolean)</td>
  1073. </tr>
  1074. </table>
  1075. </section>
  1076. <section id="Databank">
  1077. <table>
  1078. <tr>
  1079. <th class="command">databank.prepare</th>
  1080. <th class="desc">returns the prepared statement</th>
  1081. </tr>
  1082. <tr>
  1083. <td class="bold">Format</td>
  1084. <td>databank.prepare(sql-query, [boolean autoclose | true])</td>
  1085. </tr>
  1086. </table>
  1087. <table>
  1088. <tr>
  1089. <th class="command">databank.setInt</th>
  1090. <th class="desc">sets an int in a statement</th>
  1091. </tr>
  1092. <tr>
  1093. <td class="bold">Format</td>
  1094. <td>databank.setInt(statement, index, int)</td>
  1095. </tr>
  1096. </table>
  1097. <table>
  1098. <tr>
  1099. <th class="command">databank.setDouble</th>
  1100. <th class="desc">sets a double in a statement</th>
  1101. </tr>
  1102. <tr>
  1103. <td class="bold">Format</td>
  1104. <td>databank.setDouble(statement, index, double)</td>
  1105. </tr>
  1106. </table>
  1107. <table>
  1108. <tr>
  1109. <th class="command">databank.setLong</th>
  1110. <th class="desc">sets a long in a statement</th>
  1111. </tr>
  1112. <tr>
  1113. <td class="bold">Format</td>
  1114. <td>databank.setLong(statement, index, long)</td>
  1115. </tr>
  1116. </table>
  1117. <table>
  1118. <tr>
  1119. <th class="command">databank.setString</th>
  1120. <th class="desc">sets a string in a statement</th>
  1121. </tr>
  1122. <tr>
  1123. <td class="bold">Format</td>
  1124. <td>databank.setString(statement, index, string)</td>
  1125. </tr>
  1126. </table>
  1127. <table>
  1128. <tr>
  1129. <th class="command">databank.setBool</th>
  1130. <th class="desc">sets a boolean in a statement</th>
  1131. </tr>
  1132. <tr>
  1133. <td class="bold">Format</td>
  1134. <td>databank.setBool(statement, index, boolean)</td>
  1135. </tr>
  1136. </table>
  1137. <table>
  1138. <tr>
  1139. <th class="command">databank.getInt</th>
  1140. <th class="desc">returns an int from a result set</th>
  1141. </tr>
  1142. <tr>
  1143. <td class="bold">Format</td>
  1144. <td>databank.getInt(result-set, index)</td>
  1145. </tr>
  1146. </table>
  1147. <table>
  1148. <tr>
  1149. <th class="command">databank.getDouble</th>
  1150. <th class="desc">returns a double from a result set</th>
  1151. </tr>
  1152. <tr>
  1153. <td class="bold">Format</td>
  1154. <td>databank.getDouble(result-set, index)</td>
  1155. </tr>
  1156. </table>
  1157. <table>
  1158. <tr>
  1159. <th class="command">databank.getLong</th>
  1160. <th class="desc">returns a long from a result set</th>
  1161. </tr>
  1162. <tr>
  1163. <td class="bold">Format</td>
  1164. <td>databank.getLong(result-set, index)</td>
  1165. </tr>
  1166. </table>
  1167. <table>
  1168. <tr>
  1169. <th class="command">databank.getString</th>
  1170. <th class="desc">returns a string from a result set</th>
  1171. </tr>
  1172. <tr>
  1173. <td class="bold">Format</td>
  1174. <td>databank.getString(result-set, index)</td>
  1175. </tr>
  1176. </table>
  1177. <table>
  1178. <tr>
  1179. <th class="command">databank.getBool</th>
  1180. <th class="desc">returns a boolean from a result set</th>
  1181. </tr>
  1182. <tr>
  1183. <td class="bold">Format</td>
  1184. <td>databank.getBool(result-set, index)</td>
  1185. </tr>
  1186. </table>
  1187. <table>
  1188. <tr>
  1189. <th class="command">databank.execute</th>
  1190. <th class="desc">returns a result-set after executing a reading statement</th>
  1191. </tr>
  1192. <tr>
  1193. <td class="bold">Format</td>
  1194. <td>databank.execute(statement)</td>
  1195. </tr>
  1196. </table>
  1197. <table>
  1198. <tr>
  1199. <th class="command">databank.workerExecute</th>
  1200. <th class="desc">executes a writing statement</th>
  1201. </tr>
  1202. <tr>
  1203. <td class="bold">Format</td>
  1204. <td>databank.workerExecute(statement)</td>
  1205. </tr>
  1206. </table>
  1207. <table>
  1208. <tr>
  1209. <th class="command">databank.next</th>
  1210. <th class="desc">returns true and jumps to the next entry if the result-set has a next entry</th>
  1211. </tr>
  1212. <tr>
  1213. <td class="bold">Format</td>
  1214. <td>databank.next(result-set)</td>
  1215. </tr>
  1216. </table>
  1217. <table>
  1218. <tr>
  1219. <th class="command">databank.close</th>
  1220. <th class="desc">manual closing of a result-set</th>
  1221. </tr>
  1222. <tr>
  1223. <td class="bold">Format</td>
  1224. <td>databank.close(result-set)</td>
  1225. </tr>
  1226. </table>
  1227. </section>
  1228. <section id="Citizen">
  1229. <table>
  1230. <tr>
  1231. <th class="command">citizen.spawn</th>
  1232. <th class="desc">returns the spawned citizen</th>
  1233. </tr>
  1234. <tr>
  1235. <td class="bold">Format</td>
  1236. <td>citizen.spawn(location, name)</td>
  1237. </tr>
  1238. </table>
  1239. <table>
  1240. <tr>
  1241. <th class="command">citizen.despawn</th>
  1242. <th class="desc">despawns a citizen</th>
  1243. </tr>
  1244. <tr>
  1245. <td class="bold">Format</td>
  1246. <td>citizen.despawn(citizen)</td>
  1247. </tr>
  1248. </table>
  1249. <table>
  1250. <tr>
  1251. <th class="command">citizen.destroy</th>
  1252. <th class="desc">destroys a citizen</th>
  1253. </tr>
  1254. <tr>
  1255. <td class="bold">Format</td>
  1256. <td>citizen.destroy(citizen)</td>
  1257. </tr>
  1258. </table>
  1259. <table>
  1260. <table>
  1261. <tr>
  1262. <th class="command">citizen.setSkin</th>
  1263. <th class="desc">sets the skin of a citizen</th>
  1264. </tr>
  1265. <tr>
  1266. <td class="bold">Format</td>
  1267. <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>
  1268. </tr>
  1269. </table>
  1270. <table>
  1271. <tr>
  1272. <th class="command">citizen.setName</th>
  1273. <th class="desc">sets the name of a citizen</th>
  1274. </tr>
  1275. <tr>
  1276. <td class="bold">Format</td>
  1277. <td>citizen.setName(citizen, name)</td>
  1278. </tr>
  1279. </table>
  1280. <table>
  1281. <tr>
  1282. <th class="command">citizen.showNameplate</th>
  1283. <th class="desc">sets the nameplate visibility of a citizen</th>
  1284. </tr>
  1285. <tr>
  1286. <td class="bold">Format</td>
  1287. <td>citizen.showNameplate(citizen, boolean)</td>
  1288. </tr>
  1289. </table>
  1290. <table>
  1291. <tr>
  1292. <th class="command">citizen.setEquip</th>
  1293. <th class="desc">equips a citizen</th>
  1294. </tr>
  1295. <tr>
  1296. <td class="bold">Format</td>
  1297. <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>
  1298. </tr>
  1299. </table>
  1300. <table>
  1301. <tr>
  1302. <th class="command">citizen.getName</th>
  1303. <th class="desc">returns the name as string</th>
  1304. </tr>
  1305. <tr>
  1306. <td class="bold">Format</td>
  1307. <td>citizen.getName(citizen)</td>
  1308. </tr>
  1309. </table>
  1310. <table>
  1311. <tr>
  1312. <th class="command">citizen.lookclose</th>
  1313. <th class="desc">makes a citizen look at nearby players</th>
  1314. </tr>
  1315. <tr>
  1316. <td class="bold">Format</td>
  1317. <td>citizen.lookclose(citizen)</td>
  1318. </tr>
  1319. </table>
  1320. </section>
  1321. <section id="Config">
  1322. <table>
  1323. <tr>
  1324. <th class="command">config.saveAsync</th>
  1325. <th class="desc">saves a config asynchronous</th>
  1326. </tr>
  1327. <tr>
  1328. <td class="bold">Format</td>
  1329. <td>config.saveAsync(config)</td>
  1330. </tr>
  1331. </table>
  1332. </section>
  1333. <section id="Damage">
  1334. <table>
  1335. <tr>
  1336. <th class="command">damage.get</th>
  1337. <th class="desc">returns a damage_source</th>
  1338. </tr>
  1339. <tr>
  1340. <td class="bold">Format</td>
  1341. <td>damage.get(damage_name)</td>
  1342. </tr>
  1343. <tr>
  1344. <td class="bold">Arguments</td>
  1345. <td>
  1346. damage_name:
  1347. 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
  1348. </td>
  1349. </tr>
  1350. </table>
  1351. <table>
  1352. <tr>
  1353. <th class="command">damage.getType</th>
  1354. <th class="desc">returns the type of a damage_source as string</th>
  1355. </tr>
  1356. <tr>
  1357. <td class="bold">Format</td>
  1358. <td>damage.getType(damage_source)</td>
  1359. </tr>
  1360. </table>
  1361. <table>
  1362. <tr>
  1363. <th class="command">damage.getImmediateSource</th>
  1364. <th class="desc">returns the direct damager entity of a damage_source</th>
  1365. </tr>
  1366. <tr>
  1367. <td class="bold">Format</td>
  1368. <td>damage.getImmediateSource(damage_source)</td>
  1369. </tr>
  1370. </table>
  1371. <table>
  1372. <tr>
  1373. <th class="command">damage.getTrueSource</th>
  1374. <th class="desc">returns the indirect damager entity of a damage_source</th>
  1375. </tr>
  1376. <tr>
  1377. <td class="bold">Format</td>
  1378. <td>damage.getTrueSource(damage_source)</td>
  1379. </tr>
  1380. </table>
  1381. <table>
  1382. <tr>
  1383. <th class="command">damage.isDifficultyscaled</th>
  1384. <th class="desc">returns true if the damage_source will have its damageamount scaled based on the current difficulty</th>
  1385. </tr>
  1386. <tr>
  1387. <td class="bold">Format</td>
  1388. <td>damage.isDifficultyscaled(damage_source)</td>
  1389. </tr>
  1390. </table>
  1391. <table>
  1392. <tr>
  1393. <th class="command">damage.isIndirect</th>
  1394. <th class="desc">returns true if the damage_source is indirect</th>
  1395. </tr>
  1396. <tr>
  1397. <td class="bold">Format</td>
  1398. <td>damage.isIndirect(damage_source)</td>
  1399. </tr>
  1400. </table>
  1401. </section>
  1402. <section id="Data">
  1403. <table>
  1404. <tr>
  1405. <th class="command">data.set</th>
  1406. <th class="desc">sets data for a player (script-across)</th>
  1407. </tr>
  1408. <tr>
  1409. <td class="bold">Format</td>
  1410. <td>data.set(player, key, value)</td>
  1411. </tr>
  1412. </table>
  1413. <table>
  1414. <tr>
  1415. <th class="command">data.get</th>
  1416. <th class="desc">returns data from a player (script-across)</th>
  1417. </tr>
  1418. <tr>
  1419. <td class="bold">Format</td>
  1420. <td>data.get(player, key)</td>
  1421. </tr>
  1422. </table>
  1423. <table>
  1424. <tr>
  1425. <th class="command">data.setTimer</th>
  1426. <th class="desc">sets timed data for a player (script-across)</th>
  1427. </tr>
  1428. <tr>
  1429. <td class="bold">Format</td>
  1430. <td>data.setTimer(player, key, ticks)</td>
  1431. </tr>
  1432. <tr>
  1433. <td class="bold">Arguments</td>
  1434. <td>set ticks to -1 to delete the timer<br>when the timer expires the event player_data_tick is thrown</td>
  1435. </tr>
  1436. </table>
  1437. <table>
  1438. <tr>
  1439. <th class="command">data.getTimer</th>
  1440. <th class="desc">returns the remaining ticks of timed data (script-across)</th>
  1441. </tr>
  1442. <tr>
  1443. <td class="bold">Format</td>
  1444. <td>data.getTimer(player, key)</td>
  1445. </tr>
  1446. </table>
  1447. <table>
  1448. <tr>
  1449. <th class="command">data.clear</th>
  1450. <th class="desc">deletes all data from a player (script-across)</th>
  1451. </tr>
  1452. <tr>
  1453. <td class="bold">Format</td>
  1454. <td>data.clear(player)</td>
  1455. </tr>
  1456. </table>
  1457. </section>
  1458. <section id="Gamerule">
  1459. <table>
  1460. <tr>
  1461. <th class="command">gamerule.getKey</th>
  1462. <th class="desc">returns a gamerule_key</th>
  1463. </tr>
  1464. <tr>
  1465. <td class="bold">Format</td>
  1466. <td>gamerule.getKey(gamerule_string)</td>
  1467. </tr>
  1468. </table>
  1469. <table>
  1470. <tr>
  1471. <th class="command">gamerule.getValue</th>
  1472. <th class="desc">return a gamerule_value from a world</th>
  1473. </tr>
  1474. <tr>
  1475. <td class="bold">Format</td>
  1476. <td>gamerule.getValue(world, gamerule_key)</td>
  1477. </tr>
  1478. </table>
  1479. <table>
  1480. <tr>
  1481. <th class="command">gamerule.setBool</th>
  1482. <th class="desc">sets a gamerule_value</th>
  1483. </tr>
  1484. <tr>
  1485. <td class="bold">Format</td>
  1486. <td>gamerule.setBool(world, gamerule_value, boolean)</td>
  1487. </tr>
  1488. </table>
  1489. <table>
  1490. <tr>
  1491. <th class="command">gamerule.setInt</th>
  1492. <th class="desc">sets a gamerule_key</th>
  1493. </tr>
  1494. <tr>
  1495. <td class="bold">Format</td>
  1496. <td>gamerule.setInt(world, gamerule_key, value)</td>
  1497. </tr>
  1498. </table>
  1499. </table>
  1500. </section>
  1501. <section id="General">
  1502. <table>
  1503. <tr>
  1504. <th class="command">msg</th>
  1505. <th class="desc">sends a message</th>
  1506. </tr>
  1507. <tr>
  1508. <td class="bold">Format</td>
  1509. <td>msg(receiver, text)</td>
  1510. </tr>
  1511. <tr>
  1512. <td class="bold">Info</td>
  1513. <td>receiver:<br>sender (player / console)<br>"dev" (perm "script.debug" needed)<br>"online"<br>"server"</td>
  1514. </tr>
  1515. </table>
  1516. <table>
  1517. <tr>
  1518. <th class="command">isPlayer</th>
  1519. <th class="desc">returns true if the argument is a player</th>
  1520. </tr>
  1521. <tr>
  1522. <td class="bold">Format</td>
  1523. <td>isPlayer(anything)</td>
  1524. </tr>
  1525. </table>
  1526. <table>
  1527. <tr>
  1528. <th class="command">isLiving</th>
  1529. <th class="desc">returns true if the argument is a living entity</th>
  1530. </tr>
  1531. <tr>
  1532. <td class="bold">Format</td>
  1533. <td>isLiving(anything)</td>
  1534. </tr>
  1535. </table>
  1536. <table>
  1537. <tr>
  1538. <th class="command">isCitizen</th>
  1539. <th class="desc">returns true if the argument is a citizen</th>
  1540. </tr>
  1541. <tr>
  1542. <td class="bold">Format</td>
  1543. <td>isCitizen(anything)</td>
  1544. </tr>
  1545. </table>
  1546. <table>
  1547. <tr>
  1548. <th class="command">setMOTD</th>
  1549. <th class="desc">sets the message of the day in the server list</th>
  1550. </tr>
  1551. <tr>
  1552. <td class="bold">Format</td>
  1553. <td>setMOTD(string)</td>
  1554. </tr>
  1555. </table>
  1556. <table>
  1557. <tr>
  1558. <th class="command">getMOTD</th>
  1559. <th class="desc">returns the message of the day as text</th>
  1560. </tr>
  1561. <tr>
  1562. <td class="bold">Format</td>
  1563. <td>getMOTD()</td>
  1564. </tr>
  1565. </table>
  1566. <table>
  1567. <tr>
  1568. <th class="command">stop</th>
  1569. <th class="desc">stops the server</th>
  1570. </tr>
  1571. <tr>
  1572. <td class="bold">Format</td>
  1573. <td>stop()</td>
  1574. </tr>
  1575. </table>
  1576. </section>
  1577. <section id="Material">
  1578. <table>
  1579. <tr>
  1580. <th class="command">material.get</th>
  1581. <th class="desc">returns a material</th>
  1582. </tr>
  1583. <tr>
  1584. <td class="bold">Format</td>
  1585. <td>material.get(<a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Material.html" target="_blank">material_name</a>)</td>
  1586. </tr>
  1587. </table>
  1588. <table>
  1589. <tr>
  1590. <th class="command">material.getAll</th>
  1591. <th class="desc">returns an array with all materials</th>
  1592. </tr>
  1593. <tr>
  1594. <td class="bold">Format</td>
  1595. <td>material.getAll()</td>
  1596. </tr>
  1597. </table>
  1598. <table>
  1599. <tr>
  1600. <th class="command">material.isItem</th>
  1601. <th class="desc">returns true if a material is an holdable item</th>
  1602. </tr>
  1603. <tr>
  1604. <td class="bold">Format</td>
  1605. <td>material.isItem(material)</td>
  1606. </tr>
  1607. </table>
  1608. <table>
  1609. <tr>
  1610. <th class="command">material.isBlock</th>
  1611. <th class="desc">returns true if a material is an placeable block</th>
  1612. </tr>
  1613. <tr>
  1614. <td class="bold">Format</td>
  1615. <td>material.isBlock(material)</td>
  1616. </tr>
  1617. </table>
  1618. <table>
  1619. <tr>
  1620. <th class="command">material.isSolid</th>
  1621. <th class="desc">returns true if a material is a block and solid (can be built upon)</th>
  1622. </tr>
  1623. <tr>
  1624. <td class="bold">Format</td>
  1625. <td>material.isSolid(material)</td>
  1626. </tr>
  1627. </table>
  1628. <table>
  1629. <tr>
  1630. <th class="command">material.setCooldown</th>
  1631. <th class="desc">sets the cooldown of a material of a player</th>
  1632. </tr>
  1633. <tr>
  1634. <td class="bold">Format</td>
  1635. <td>material.setCooldown(material, player, ticks)</td>
  1636. </tr>
  1637. </table>
  1638. <table>
  1639. <tr>
  1640. <th class="command">material.getSlot</th>
  1641. <th class="desc">returns the slot to use for an item attribute</th>
  1642. </tr>
  1643. <tr>
  1644. <td class="bold">Format</td>
  1645. <td>material.getSlot(material)</td>
  1646. </tr>
  1647. </table>
  1648. </section>
  1649. <section id="Item">
  1650. <table>
  1651. <tr>
  1652. <th class="command">item.new</th>
  1653. <th class="desc">return an itemstack</th>
  1654. </tr>
  1655. <tr>
  1656. <td class="bold">Format</td>
  1657. <td>item.new(material, [amount | 1])</td>
  1658. </tr>
  1659. </table>
  1660. <table>
  1661. <tr>
  1662. <th class="command">item.drop</th>
  1663. <th class="desc">drops an itemstack at a location and returns the item_entity</th>
  1664. </tr>
  1665. <tr>
  1666. <td class="bold">Format</td>
  1667. <td>item.drop(itemstack, location)</td>
  1668. </tr>
  1669. </table>
  1670. <table>
  1671. <tr>
  1672. <th class="command">item.getType</th>
  1673. <th class="desc">returns the <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Material.html" target="_blank">material</a> of an itemstack</th>
  1674. </tr>
  1675. <tr>
  1676. <td class="bold">Format</td>
  1677. <td>item.getType(itemstack)</td>
  1678. </tr>
  1679. </table>
  1680. <table>
  1681. <tr>
  1682. <th class="command">item.getMaxAmount</th>
  1683. <th class="desc">returns the maximum size of an itemstack</th>
  1684. </tr>
  1685. <tr>
  1686. <td class="bold">Format</td>
  1687. <td>item.getMaxAmount(itemstack)</td>
  1688. </tr>
  1689. </table>
  1690. <table>
  1691. <tr>
  1692. <th class="command">item.getAmount</th>
  1693. <th class="desc">returns the size of an itemstack</th>
  1694. </tr>
  1695. <tr>
  1696. <td class="bold">Format</td>
  1697. <td>item.getAmount(itemstack)</td>
  1698. </tr>
  1699. </table>
  1700. <table>
  1701. <tr>
  1702. <th class="command">item.setAmount</th>
  1703. <th class="desc">sets the size of an itemstack</th>
  1704. </tr>
  1705. <tr>
  1706. <td class="bold">Format</td>
  1707. <td>item.setAmount(itemstack, size)</td>
  1708. </tr>
  1709. </table>
  1710. <table>
  1711. <tr>
  1712. <th class="command">item.hasName</th>
  1713. <th class="desc">returns true if the itemstack has a modified name</th>
  1714. </tr>
  1715. <tr>
  1716. <td class="bold">Format</td>
  1717. <td>item.hasName(itemstack)</td>
  1718. </tr>
  1719. </table>
  1720. <table>
  1721. <tr>
  1722. <th class="command">item.getName</th>
  1723. <th class="desc">returns the name of an itemstack as text or null</th>
  1724. </tr>
  1725. <tr>
  1726. <td class="bold">Format</td>
  1727. <td>item.getName(itemstack)</td>
  1728. </tr>
  1729. </table>
  1730. <table>
  1731. <tr>
  1732. <th class="command">item.setName</th>
  1733. <th class="desc">sets the name of an itemstack</th>
  1734. </tr>
  1735. <tr>
  1736. <td class="bold">Format</td>
  1737. <td>item.setName(itemstack, text_name)</td>
  1738. </tr>
  1739. </table>
  1740. <table>
  1741. <tr>
  1742. <th class="command">item.getLore</th>
  1743. <th class="desc">returns a list of texts with all lores of an itemstack</th>
  1744. </tr>
  1745. <tr>
  1746. <td class="bold">Format</td>
  1747. <td>item.getLore(itemstack)</td>
  1748. </tr>
  1749. </table>
  1750. <table>
  1751. <tr>
  1752. <th class="command">item.setLore</th>
  1753. <th class="desc">sets the lore of an itemstack</th>
  1754. </tr>
  1755. <tr>
  1756. <td class="bold">Format</td>
  1757. <td>item.setLore(itemstack, list)</td>
  1758. </tr>
  1759. <tr>
  1760. <td class="bold">Arguments</td>
  1761. <td>list of texts</td>
  1762. </tr>
  1763. </table>
  1764. <table>
  1765. <tr>
  1766. <th class="command">item.addAttribute</th>
  1767. <th class="desc">adds an attribute to an itemstack</th>
  1768. </tr>
  1769. <tr>
  1770. <td class="bold">Format</td>
  1771. <td>item.addAttribute(itemstack, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/attribute/Attribute.html" target="_blank">attribute</a>, slot, double, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/attribute/AttributeModifier.Operation.html" target="_blank">operation</a>)</td>
  1772. </tr>
  1773. </table>
  1774. <table>
  1775. <tr>
  1776. <th class="command">item.clearAttributes</th>
  1777. <th class="desc">removes all custom attributes from an itemstack</th>
  1778. </tr>
  1779. <tr>
  1780. <td class="bold">Format</td>
  1781. <td>item.clearAttributes(itemstack)</td>
  1782. </tr>
  1783. </table>
  1784. <table>
  1785. <tr>
  1786. <th class="command">item.hasAttributes</th>
  1787. <th class="desc">returns true if an itemstack has attributes</th>
  1788. </tr>
  1789. <tr>
  1790. <td class="bold">Format</td>
  1791. <td>item.hasAttributes(itemstack)</td>
  1792. </tr>
  1793. </table>
  1794. <table>
  1795. <tr>
  1796. <th class="command">item.addDefaultTags</th>
  1797. <th class="desc">adds the default attributes to an itemstack</th>
  1798. </tr>
  1799. <tr>
  1800. <td class="bold">Format</td>
  1801. <td>item.addDefaultTags(itemstack)</td>
  1802. </tr>
  1803. </table>
  1804. <table>
  1805. <tr>
  1806. <th class="command">item.addFlag</th>
  1807. <th class="desc">adds a flag to an itemstack</th>
  1808. </tr>
  1809. <tr>
  1810. <td class="bold">Format</td>
  1811. <td>item.addFlag(itemstack, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/inventory/ItemFlag.html" target="_blank">flag</a>)</td>
  1812. </tr>
  1813. </table>
  1814. <table>
  1815. <tr>
  1816. <th class="command">item.removeFlag</th>
  1817. <th class="desc">removes a flag from an itemstack</th>
  1818. </tr>
  1819. <tr>
  1820. <td class="bold">Format</td>
  1821. <td>item.removeFlag(itemstack, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/inventory/ItemFlag.html" target="_blank">flag</a>)</td>
  1822. </tr>
  1823. </table>
  1824. <table>
  1825. <tr>
  1826. <th class="command">item.addPotion</th>
  1827. <th class="desc">adds a potion effect to an item</th>
  1828. </tr>
  1829. <tr>
  1830. <td class="bold">Format</td>
  1831. <td>item.addPotion(itemstack, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/potion/PotionEffectType.html" target="_blank">potion_name</a>, duration, power)</td>
  1832. </tr>
  1833. </table>
  1834. <table>
  1835. <tr>
  1836. <th class="command">item.clone</th>
  1837. <th class="desc">returns a copy of an itemstack</th>
  1838. </tr>
  1839. <tr>
  1840. <td class="bold">Format</td>
  1841. <td>item.clone(itemstack)</td>
  1842. </tr>
  1843. </table>
  1844. <table>
  1845. <tr>
  1846. <th class="command">item.getTag</th>
  1847. <th class="desc">returns an item tag</th>
  1848. </tr>
  1849. <tr>
  1850. <td class="bold">Format</td>
  1851. <td>item.getTag(String tag_name)</td>
  1852. </tr>
  1853. </table>
  1854. <table>
  1855. <tr>
  1856. <th class="command">item.hasTag</th>
  1857. <th class="desc">returns true if an itemstack has an item tag</th>
  1858. </tr>
  1859. <tr>
  1860. <td class="bold">Format</td>
  1861. <td>item.hasTag(itemstack, tag)</td>
  1862. </tr>
  1863. </table>
  1864. <table>
  1865. <tr>
  1866. <th class="command">item.isDamageable</th>
  1867. <th class="desc">returns true if the itemstack is damageable</th>
  1868. </tr>
  1869. <tr>
  1870. <td class="bold">Format</td>
  1871. <td>item.isDamageable(itemstack)</td>
  1872. </tr>
  1873. </table>
  1874. <table>
  1875. <tr>
  1876. <th class="command">item.getMaxDamage</th>
  1877. <th class="desc">returns the maximum damage the itemstack can get</th>
  1878. </tr>
  1879. <tr>
  1880. <td class="bold">Format</td>
  1881. <td>item.getMaxDamage(itemstack)</td>
  1882. </tr>
  1883. </table>
  1884. <table>
  1885. <tr>
  1886. <th class="command">item.setDamage</th>
  1887. <th class="desc">sets the damage of the itemstack</th>
  1888. </tr>
  1889. <tr>
  1890. <td class="bold">Format</td>
  1891. <td>item.setDamage(itemstack, amount)</td>
  1892. </tr>
  1893. </table>
  1894. <table>
  1895. <tr>
  1896. <th class="command">item.getDamage</th>
  1897. <th class="desc">returns the damage of an itemstack</th>
  1898. </tr>
  1899. <tr>
  1900. <td class="bold">Format</td>
  1901. <td>item.getDamage(itemstack)</td>
  1902. </tr>
  1903. </table>
  1904. <table>
  1905. <tr>
  1906. <th class="command">item.entity.get</th>
  1907. <th class="desc">returns the itemstack of an item_entity</th>
  1908. </tr>
  1909. <tr>
  1910. <td class="bold">Format</td>
  1911. <td>item.entity.get(item_entity)</td>
  1912. </tr>
  1913. </table>
  1914. <table>
  1915. <tr>
  1916. <th class="command">item.entity.set</th>
  1917. <th class="desc">sets the itemstack of an item_entity</th>
  1918. </tr>
  1919. <tr>
  1920. <td class="bold">Format</td>
  1921. <td>item.entity.set(item_entity, itemstack)</td>
  1922. </tr>
  1923. </table>
  1924. <table>
  1925. <tr>
  1926. <th class="command">item.entity.setPickupDelay</th>
  1927. <th class="desc">sets the pickupdelay for an item_entity</th>
  1928. </tr>
  1929. <tr>
  1930. <td class="bold">Format</td>
  1931. <td>item.entity.setPickupDelay(item_entity, ticks)</td>
  1932. </tr>
  1933. </table>
  1934. <table>
  1935. <tr>
  1936. <th class="command">item.custom.getAll</th>
  1937. <th class="desc">returns an array with all custom items</th>
  1938. </tr>
  1939. <tr>
  1940. <td class="bold">Format</td>
  1941. <td>item.custom.getAll()</td>
  1942. </tr>
  1943. </table>
  1944. <table>
  1945. <tr>
  1946. <th class="command">item.custom.get</th>
  1947. <th class="desc">returns a custom item</th>
  1948. </tr>
  1949. <tr>
  1950. <td class="bold">Format</td>
  1951. <td>item.custom.get(custom_item_name)</td>
  1952. </tr>
  1953. </table>
  1954. <table>
  1955. <tr>
  1956. <th class="command">item.custom.new</th>
  1957. <th class="desc">returns an itemstack</th>
  1958. </tr>
  1959. <tr>
  1960. <td class="bold">Format</td>
  1961. <td>item.custom.new(custom_item)</td>
  1962. </tr>
  1963. </table>
  1964. <table>
  1965. <tr>
  1966. <th class="command">item.getCustom</th>
  1967. <th class="desc">returns a custom item or null</th>
  1968. </tr>
  1969. <tr>
  1970. <td class="bold">Format</td>
  1971. <td>item.getCustom(itemstack)</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.spawnMob</th>
  2423. <th class="desc">spawns a mob and returns the entity or null</th>
  2424. </tr>
  2425. <tr>
  2426. <td class="bold">Format</td>
  2427. <td>read.spawnMob(location, nbt_string)</td>
  2428. </tr>
  2429. </table>
  2430. <table>
  2431. <tr>
  2432. <th class="command">read.player</th>
  2433. <th class="desc">returns a player or null</th>
  2434. </tr>
  2435. <tr>
  2436. <td class="bold">Format</td>
  2437. <td>read.player(player_name)</td>
  2438. </tr>
  2439. </table>
  2440. <table>
  2441. <tr>
  2442. <th class="command">read.item</th>
  2443. <th class="desc">returns an itemstack or null</th>
  2444. </tr>
  2445. <tr>
  2446. <td class="bold">Format</td>
  2447. <td>read.item(nbt_string)</td>
  2448. </tr>
  2449. </table>
  2450. <table>
  2451. <tr>
  2452. <th class="command">read.uuid</th>
  2453. <th class="desc">returns a uuid or null</th>
  2454. </tr>
  2455. <tr>
  2456. <td class="bold">Format</td>
  2457. <td>read.uuid(uuid_string)</td>
  2458. </tr>
  2459. </table>
  2460. <table>
  2461. <tr>
  2462. <th class="command">read.slot</th>
  2463. <th class="desc">returns a slot or null</th>
  2464. </tr>
  2465. <tr>
  2466. <td class="bold">Format</td>
  2467. <td>read.slot(<a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot_name</a>)</td>
  2468. </tr>
  2469. </table>
  2470. <table>
  2471. <tr>
  2472. <th class="command">read.blockData</th>
  2473. <th class="desc">returns blockdata or null</th>
  2474. </tr>
  2475. <tr>
  2476. <td class="bold">Format</td>
  2477. <td>read.blockData(blockdata_string)</td>
  2478. </tr>
  2479. </table>
  2480. <table>
  2481. <tr>
  2482. <th class="command">read.blockEntity</th>
  2483. <th class="desc">returns blockentity or null</th>
  2484. </tr>
  2485. <tr>
  2486. <td class="bold">Format</td>
  2487. <td>read.blockEntity(blockentity_string)</td>
  2488. </tr>
  2489. </table>
  2490. </section>
  2491. <section id="String">
  2492. <table>
  2493. <tr>
  2494. <th class="command">string.item</th>
  2495. <th class="desc">returns an nbt-tag from an itemstack as string</th>
  2496. </tr>
  2497. <tr>
  2498. <td class="bold">Format</td>
  2499. <td>string.item(itemstack)</td>
  2500. </tr>
  2501. </table>
  2502. <table>
  2503. <tr>
  2504. <th class="command">string.entity</th>
  2505. <th class="desc">returns a serialized entity</th>
  2506. </tr>
  2507. <tr>
  2508. <td class="bold">Format</td>
  2509. <td>string.entity(entity)</td>
  2510. </tr>
  2511. </table>
  2512. <table>
  2513. <tr>
  2514. <th class="command">string.text</th>
  2515. <th class="desc">returns a text converted to a string</th>
  2516. </tr>
  2517. <tr>
  2518. <td class="bold">Format</td>
  2519. <td>string.text(text)</td>
  2520. </tr>
  2521. </table>
  2522. <table>
  2523. <tr>
  2524. <th class="command">string.blockData</th>
  2525. <th class="desc">returns blockdata converted to a string</th>
  2526. </tr>
  2527. <tr>
  2528. <td class="bold">Format</td>
  2529. <td>string.blockData(blockdata)</td>
  2530. </tr>
  2531. </table>
  2532. <table>
  2533. <tr>
  2534. <th class="command">string.blockEntity</th>
  2535. <th class="desc">returns a blockentity converted to a string</th>
  2536. </tr>
  2537. <tr>
  2538. <td class="bold">Format</td>
  2539. <td>string.blockEntity(blockentity)</td>
  2540. </tr>
  2541. </table>
  2542. </section>
  2543. <section id="Text">
  2544. <table>
  2545. <tr>
  2546. <th class="command">text.new</th>
  2547. <th class="desc">returns a text</th>
  2548. </tr>
  2549. <tr>
  2550. <td class="bold">Format</td>
  2551. <td>text.new(string)</td>
  2552. </tr>
  2553. </table>
  2554. <table>
  2555. <tr>
  2556. <th class="command">text.click</th>
  2557. <th class="desc">returns a clickable text</th>
  2558. </tr>
  2559. <tr>
  2560. <td class="bold">Format</td>
  2561. <td>text.click(show_text, execute_string)</td>
  2562. </tr>
  2563. </table>
  2564. <table>
  2565. <tr>
  2566. <th class="command">text.hover</th>
  2567. <th class="desc">returns a hoverable text</th>
  2568. </tr>
  2569. <tr>
  2570. <td class="bold">Format</td>
  2571. <td>text.hover(show_text, hover_text)</td>
  2572. </tr>
  2573. </table>
  2574. <table>
  2575. <tr>
  2576. <th class="command">text.link</th>
  2577. <th class="desc">returns a clickable text for links</th>
  2578. </tr>
  2579. <tr>
  2580. <td class="bold">Format</td>
  2581. <td>text.link(text, link_string)</td>
  2582. </tr>
  2583. </table>
  2584. <table>
  2585. <tr>
  2586. <th class="command">text.clipBoard</th>
  2587. <th class="desc">returns a clickable text to copy a string into the clipboard</th>
  2588. </tr>
  2589. <tr>
  2590. <td class="bold">Format</td>
  2591. <td>text.clipBoard(text, string)</td>
  2592. </tr>
  2593. </table>
  2594. <table>
  2595. <tr>
  2596. <th class="command">text.merge</th>
  2597. <th class="desc">returns merged texts</th>
  2598. </tr>
  2599. <tr>
  2600. <td class="bold">Format</td>
  2601. <td>text.merge(text, ...)</td>
  2602. </tr>
  2603. </table>
  2604. <table>
  2605. <tr>
  2606. <th class="command">text.item</th>
  2607. <th class="desc">returns a hoverable itemstack text</th>
  2608. </tr>
  2609. <tr>
  2610. <td class="bold">Format</td>
  2611. <td>text.item(show_text, itemstack)</td>
  2612. </tr>
  2613. </table>
  2614. <table>
  2615. <tr>
  2616. <th class="command">text.suggest</th>
  2617. <th class="desc">returns a clickable text for chat/command line insertion</th>
  2618. </tr>
  2619. <tr>
  2620. <td class="bold">Format</td>
  2621. <td>text.suggest(show_text, suggest_text)</td>
  2622. </tr>
  2623. </table>
  2624. <table>
  2625. <tr>
  2626. <th class="command">text.color</th>
  2627. <th class="desc">returns rgb colored text</th>
  2628. </tr>
  2629. <tr>
  2630. <td class="bold">Format</td>
  2631. <td>text.color(text, red, green, blue)</td>
  2632. </tr>
  2633. <tr>
  2634. <td class="bold">Info</td>
  2635. <td>red green blue from 0 to 255</td>
  2636. </tr>
  2637. </table>
  2638. </section>
  2639. <section id="Plot">
  2640. <table>
  2641. <tr>
  2642. <th class="command">plot.add</th>
  2643. <th class="desc">returns the created plot</th>
  2644. </tr>
  2645. <tr>
  2646. <td class="bold">Format</td>
  2647. <td>plot.add(location1, location2, [plot_id])</td>
  2648. </tr>
  2649. </table>
  2650. <table>
  2651. <tr>
  2652. <th class="command">plot.remove</th>
  2653. <th class="desc">removes a plot from a world</th>
  2654. </tr>
  2655. <tr>
  2656. <td class="bold">Format</td>
  2657. <td>plot.remove(plot, world)</td>
  2658. </tr>
  2659. </table>
  2660. <table>
  2661. <tr>
  2662. <th class="command">plot.getId</th>
  2663. <th class="desc">returns the plot_id</th>
  2664. </tr>
  2665. <tr>
  2666. <td class="bold">Format</td>
  2667. <td>plot.getId(plot)</td>
  2668. </tr>
  2669. </table>
  2670. <table>
  2671. <tr>
  2672. <th class="command">plot.setName</th>
  2673. <th class="desc">sets the name of a plot</th>
  2674. </tr>
  2675. <tr>
  2676. <td class="bold">Format</td>
  2677. <td>plot.setName(plot, name)</td>
  2678. </tr>
  2679. </table>
  2680. <table>
  2681. <tr>
  2682. <th class="command">plot.getName</th>
  2683. <th class="desc">returns the name of a plot</th>
  2684. </tr>
  2685. <tr>
  2686. <td class="bold">Format</td>
  2687. <td>plot.getName(plot)</td>
  2688. </tr>
  2689. </table>
  2690. <table>
  2691. <tr>
  2692. <th class="command">plot.get</th>
  2693. <th class="desc">returns a list with all plots at a location</th>
  2694. </tr>
  2695. <tr>
  2696. <td class="bold">Format</td>
  2697. <td>plot.get(location)</td>
  2698. </tr>
  2699. </table>
  2700. <table>
  2701. <tr>
  2702. <th class="command">plot.getMinX</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.getMinX(plot)</td>
  2708. </tr>
  2709. </table>
  2710. <table>
  2711. <tr>
  2712. <th class="command">plot.getMinY</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.getMinY(plot)</td>
  2718. </tr>
  2719. </table>
  2720. <table>
  2721. <tr>
  2722. <th class="command">plot.getMinZ</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.getMinZ(plot)</td>
  2728. </tr>
  2729. </table>
  2730. <table>
  2731. <tr>
  2732. <th class="command">plot.getMaxX</th>
  2733. <th class="desc">returns the lowest x coordinate of a plot</th>
  2734. </tr>
  2735. <tr>
  2736. <td class="bold">Format</td>
  2737. <td>plot.getMaxX(plot)</td>
  2738. </tr>
  2739. </table>
  2740. <table>
  2741. <tr>
  2742. <th class="command">plot.getMaxY</th>
  2743. <th class="desc">returns the lowest y coordinate of a plot</th>
  2744. </tr>
  2745. <tr>
  2746. <td class="bold">Format</td>
  2747. <td>plot.getMaxY(plot)</td>
  2748. </tr>
  2749. </table>
  2750. <table>
  2751. <tr>
  2752. <th class="command">plot.getMaxZ</th>
  2753. <th class="desc">returns the lowest z coordinate of a plot</th>
  2754. </tr>
  2755. <tr>
  2756. <td class="bold">Format</td>
  2757. <td>plot.getMaxZ(plot)</td>
  2758. </tr>
  2759. </table>
  2760. <table>
  2761. <tr>
  2762. <th class="command">plot.intersecting</th>
  2763. <th class="desc">returns a list with all intersecting plots</th>
  2764. </tr>
  2765. <tr>
  2766. <td class="bold">Format</td>
  2767. <td>plot.intersecting(world, x1, y1, z1, x2, y2, z2)</td>
  2768. </tr>
  2769. </table>
  2770. <table>
  2771. <tr>
  2772. <th class="command">plot.setFlags</th>
  2773. <th class="desc">sets all flags to the boolean</th>
  2774. </tr>
  2775. <tr>
  2776. <td class="bold">Format</td>
  2777. <td>plot.setFlags(plot, flags, boolean)</td>
  2778. </tr>
  2779. </table>
  2780. <table>
  2781. <tr>
  2782. <th class="command">plot.getFlags</th>
  2783. <th class="desc">returns all flags as double</th>
  2784. </tr>
  2785. <tr>
  2786. <td class="bold">Format</td>
  2787. <td>plot.getFlags(plot)</td>
  2788. </tr>
  2789. </table>
  2790. <table>
  2791. <tr>
  2792. <th class="command">plot.hasFlags</th>
  2793. <th class="desc">returns true if all flags existing</th>
  2794. </tr>
  2795. <tr>
  2796. <td class="bold">Format</td>
  2797. <td>plot.hasFlags(plot, flags)</td>
  2798. </tr>
  2799. </table>
  2800. <table>
  2801. <tr>
  2802. <th class="command">plot.getOwners</th>
  2803. <th class="desc">returns a list with all owners as uuid</th>
  2804. </tr>
  2805. <tr>
  2806. <td class="bold">Format</td>
  2807. <td>plot.getOwners(plot)</td>
  2808. </tr>
  2809. <tr>
  2810. <td class="bold">Info</td>
  2811. <td>list can be modified</td>
  2812. </tr>
  2813. </table>
  2814. <table>
  2815. <tr>
  2816. <th class="command">plot.check</th>
  2817. <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>
  2818. </tr>
  2819. <tr>
  2820. <td class="bold">Format</td>
  2821. <td>plot.check(location, player, Int flags, Boolean empty)</td>
  2822. </tr>
  2823. <tr>
  2824. <td class="bold">Arguments</td>
  2825. <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>
  2826. </tr>
  2827. <tr>
  2828. <td class="bold">Examples</td>
  2829. <td>
  2830. plot.check(loc, null, 1, false) ==> true if place_flag existing<br>
  2831. plot.check(loc, null, 2, false) ==> true if break_flag existing<br>
  2832. plot.check(loc, null, 3, false) ==> true if break_flag and place_flag existing<br>
  2833. plot.check(loc, player, 0, false) ==> true if player is owner<br>
  2834. plot.check(loc, player, 0, true) ==> true if player is owner or if there is no plot
  2835. </td>
  2836. </tr>
  2837. </table>
  2838. <table>
  2839. <tr>
  2840. <th class="command">plot.iterator</th>
  2841. <th class="desc">returns the iterator for the plots in a world [for a player]</th>
  2842. </tr>
  2843. <tr>
  2844. <td class="bold">Format</td>
  2845. <td>plot.iterator(world, [uuid])</td>
  2846. </tr>
  2847. </table>
  2848. <table>
  2849. <tr>
  2850. <th class="command">plot.addBlock</th>
  2851. <th class="desc">makes a block public</th>
  2852. </tr>
  2853. <tr>
  2854. <td class="bold">Format</td>
  2855. <td>plot.addBlock(location)</td>
  2856. </tr>
  2857. </table>
  2858. <table>
  2859. <tr>
  2860. <th class="command">plot.removeBlock</th>
  2861. <th class="desc">makes a block non-public</th>
  2862. </tr>
  2863. <tr>
  2864. <td class="bold">Format</td>
  2865. <td>plot.removeBlock(location)</td>
  2866. </tr>
  2867. </table>
  2868. <table>
  2869. <tr>
  2870. <th class="command">plot.hasBlock</th>
  2871. <th class="desc">returns true if a block is public</th>
  2872. </tr>
  2873. <tr>
  2874. <td class="bold">Format</td>
  2875. <td>plot.hasBlock(location)</td>
  2876. </tr>
  2877. </table>
  2878. <table>
  2879. <tr>
  2880. <th class="command">plot.blockIterator</th>
  2881. <th class="desc">returns the iterator for protected blocks in a world</th>
  2882. </tr>
  2883. <tr>
  2884. <td class="bold">Format</td>
  2885. <td>plot.blockIterator(world)</td>
  2886. </tr>
  2887. </table>
  2888. <table>
  2889. <tr>
  2890. <th class="command">plot.position.getX</th>
  2891. <th class="desc">returns the x coordinate of a position</th>
  2892. </tr>
  2893. <tr>
  2894. <td class="bold">Format</td>
  2895. <td>plot.position.getX(position)</td>
  2896. </tr>
  2897. </table>
  2898. <table>
  2899. <tr>
  2900. <th class="command">plot.position.getY</th>
  2901. <th class="desc">returns the y coordinate of a position</th>
  2902. </tr>
  2903. <tr>
  2904. <td class="bold">Format</td>
  2905. <td>plot.position.getY(position)</td>
  2906. </tr>
  2907. </table>
  2908. <table>
  2909. <tr>
  2910. <th class="command">plot.position.getZ</th>
  2911. <th class="desc">returns the z coordinate of a position</th>
  2912. </tr>
  2913. <tr>
  2914. <td class="bold">Format</td>
  2915. <td>plot.position.getZ(position)</td>
  2916. </tr>
  2917. </table>
  2918. <table>
  2919. <tr>
  2920. <th class="command">plot.savePlots</th>
  2921. <th class="desc">saves all plot changes</th>
  2922. </tr>
  2923. <tr>
  2924. <td class="bold">Format</td>
  2925. <td>plot.savePlots(world)</td>
  2926. </tr>
  2927. </table>
  2928. <table>
  2929. <tr>
  2930. <th class="command">plot.saveBlocks</th>
  2931. <th class="desc">saves all block changes</th>
  2932. </tr>
  2933. <tr>
  2934. <td class="bold">Format</td>
  2935. <td>plot.saveBlocks(world)</td>
  2936. </tr>
  2937. </table>
  2938. </section>
  2939. <section id="Table">
  2940. <table>
  2941. <tr>
  2942. <th class="command">table.new</th>
  2943. <th class="desc">returns a table object</th>
  2944. </tr>
  2945. <tr>
  2946. <td class="bold">Format</td>
  2947. <td>table.new(color, width, width, width, ...)</td>
  2948. </tr>
  2949. </table>
  2950. <table>
  2951. <tr>
  2952. <th class="command">table.getStart</th>
  2953. <th class="desc">returns the head of a table</th>
  2954. </tr>
  2955. <tr>
  2956. <td class="bold">Format</td>
  2957. <td>table.getStart(table)</td>
  2958. </tr>
  2959. </table>
  2960. <table>
  2961. <tr>
  2962. <th class="command">table.getMiddle</th>
  2963. <th class="desc">returns the middle of a table</th>
  2964. </tr>
  2965. <tr>
  2966. <td class="bold">Format</td>
  2967. <td>table.getMiddle(table)</td>
  2968. </tr>
  2969. </table>
  2970. <table>
  2971. <tr>
  2972. <th class="command">table.getEnd</th>
  2973. <th class="desc">returns the end of a table</th>
  2974. </tr>
  2975. <tr>
  2976. <td class="bold">Format</td>
  2977. <td>table.getEnd(table)</td>
  2978. </tr>
  2979. </table>
  2980. <table>
  2981. <tr>
  2982. <th class="command">table.get</th>
  2983. <th class="desc">returns a line of a table</th>
  2984. </tr>
  2985. <tr>
  2986. <td class="bold">Format</td>
  2987. <td>table.get(table, args...)</td>
  2988. </tr>
  2989. </table>
  2990. <table>
  2991. <tr>
  2992. <th class="command">table.setSize</th>
  2993. <th class="desc">defines the pixel size of a character</th>
  2994. </tr>
  2995. <tr>
  2996. <td class="bold">Format</td>
  2997. <td>table.setSize("character", pixel_int)</td>
  2998. </tr>
  2999. </table>
  3000. <table>
  3001. <tr>
  3002. <th class="command">table.setEmpty1</th>
  3003. <th class="desc">defines the 1 pixel empty character</th>
  3004. </tr>
  3005. <tr>
  3006. <td class="bold">Format</td>
  3007. <td>table.setEmpty1(string)</td>
  3008. </tr>
  3009. </table>
  3010. <table>
  3011. <tr>
  3012. <th class="command">table.setEmpty2</th>
  3013. <th class="desc">defines the 2 pixel empty character</th>
  3014. </tr>
  3015. <tr>
  3016. <td class="bold">Format</td>
  3017. <td>table.setEmpty2(string)</td>
  3018. </tr>
  3019. </table>
  3020. <table>
  3021. <tr>
  3022. <th class="command">table.setEmpty4</th>
  3023. <th class="desc">defines the 4 pixel empty character</th>
  3024. </tr>
  3025. <tr>
  3026. <td class="bold">Format</td>
  3027. <td>table.setEmpty4(string)</td>
  3028. </tr>
  3029. </table>
  3030. </section>
  3031. <section id="Command">
  3032. <table>
  3033. <tr>
  3034. <th class="command">command.add</th>
  3035. <th class="desc">registers a custom command</th>
  3036. </tr>
  3037. <tr>
  3038. <td class="bold">Format</td>
  3039. <td>command.add(string)</td>
  3040. </tr>
  3041. </table>
  3042. <table>
  3043. <tr>
  3044. <th class="command">command.remove</th>
  3045. <th class="desc">removes a custom command</th>
  3046. </tr>
  3047. <tr>
  3048. <td class="bold">Format</td>
  3049. <td>command.remove(string)</td>
  3050. </tr>
  3051. </table>
  3052. <table>
  3053. <tr>
  3054. <th class="command">command.clear</th>
  3055. <th class="desc">removes all custom commands</th>
  3056. </tr>
  3057. <tr>
  3058. <td class="bold">Format</td>
  3059. <td>command.clear()</td>
  3060. </tr>
  3061. </table>
  3062. <table>
  3063. <tr>
  3064. <th class="command">command.exists</th>
  3065. <th class="desc">returns true if a custom command exists</th>
  3066. </tr>
  3067. <tr>
  3068. <td class="bold">Format</td>
  3069. <td>command.exists(string)</td>
  3070. </tr>
  3071. </table>
  3072. <table>
  3073. <tr>
  3074. <th class="command">command.newHelp</th>
  3075. <th class="desc">returns a help-object</th>
  3076. </tr>
  3077. <tr>
  3078. <td class="bold">Format</td>
  3079. <td>command.newHelp(string, perm)</td>
  3080. </tr>
  3081. </table>
  3082. <table>
  3083. <tr>
  3084. <th class="command">command.newHelpLiteral</th>
  3085. <th class="desc">returns a help argument</th>
  3086. </tr>
  3087. <tr>
  3088. <td class="bold">Format</td>
  3089. <td>command.newHelpLiteral(string, [perm])</td>
  3090. </tr>
  3091. </table>
  3092. <table>
  3093. <tr>
  3094. <th class="command">command.newHelpBool</th>
  3095. <th class="desc">returns a help argument</th>
  3096. </tr>
  3097. <tr>
  3098. <td class="bold">Format</td>
  3099. <td>command.newHelpBool(string, [perm])</td>
  3100. </tr>
  3101. </table>
  3102. <table>
  3103. <tr>
  3104. <th class="command">command.newHelpDouble</th>
  3105. <th class="desc">returns a help argument</th>
  3106. </tr>
  3107. <tr>
  3108. <td class="bold">Format</td>
  3109. <td>command.newHelpDouble(string, min, max, [perm])</td>
  3110. </tr>
  3111. </table>
  3112. <table>
  3113. <tr>
  3114. <th class="command">command.newHelpFloat</th>
  3115. <th class="desc">returns a help argument</th>
  3116. </tr>
  3117. <tr>
  3118. <td class="bold">Format</td>
  3119. <td>command.newHelpFloat(string, min, max, [perm])</td>
  3120. </tr>
  3121. </table>
  3122. <table>
  3123. <tr>
  3124. <th class="command">command.newHelpInt</th>
  3125. <th class="desc">returns a help argument</th>
  3126. </tr>
  3127. <tr>
  3128. <td class="bold">Format</td>
  3129. <td>command.newHelpInt(string, min, max, [perm])</td>
  3130. </tr>
  3131. </table>
  3132. <table>
  3133. <tr>
  3134. <th class="command">command.newHelpLong</th>
  3135. <th class="desc">returns a help argument</th>
  3136. </tr>
  3137. <tr>
  3138. <td class="bold">Format</td>
  3139. <td>command.newHelpLong(string, min, max, [perm])</td>
  3140. </tr>
  3141. </table>
  3142. <table>
  3143. <tr>
  3144. <th class="command">command.newHelpString</th>
  3145. <th class="desc">returns a help argument</th>
  3146. </tr>
  3147. <tr>
  3148. <td class="bold">Format</td>
  3149. <td>command.newHelpString(string, boolean, [perm])</td>
  3150. </tr>
  3151. <tr>
  3152. <td class="bold">Arguments</td>
  3153. <td>boolean true means greedy</td>
  3154. </tr>
  3155. </table>
  3156. <table>
  3157. <tr>
  3158. <th class="command">command.newHelpSpecial</th>
  3159. <th class="desc">returns a help argument</th>
  3160. </tr>
  3161. <tr>
  3162. <td class="bold">Format</td>
  3163. <td>command.newHelpSpecial(type, string, [perm])</td>
  3164. </tr>
  3165. <tr>
  3166. <td class="bold">Arguments</td>
  3167. <td>type = "Item", "Particle", "Potion", "Sound", "Enchantment", "Player"</td>
  3168. </tr>
  3169. </table>
  3170. <table>
  3171. <tr>
  3172. <th class="command">command.registerHelp</th>
  3173. <th class="desc">registers a command-help</th>
  3174. </tr>
  3175. <tr>
  3176. <td class="bold">Format</td>
  3177. <td>command.registerHelp(help-object)</td>
  3178. </tr>
  3179. </table>
  3180. <table>
  3181. <tr>
  3182. <th class="command">command.addHelpArgument</th>
  3183. <th class="desc">adds a help argument to a help</th>
  3184. </tr>
  3185. <tr>
  3186. <td class="bold">Format</td>
  3187. <td>command.addHelpArgument(help, helpArgument)</td>
  3188. </tr>
  3189. </table>
  3190. </section>
  3191. <section id="Scoreboard">
  3192. <table>
  3193. <tr>
  3194. <th class="command">sb.add</th>
  3195. <th class="desc">adds text to the scoreboard</th>
  3196. </tr>
  3197. <tr>
  3198. <td class="bold">Format</td>
  3199. <td>sb.add(player, unique_index, string)</td>
  3200. </tr>
  3201. <tr>
  3202. <td class="bold">Arguments</td>
  3203. <td>index from 1 to 99</td>
  3204. </tr>
  3205. <tr>
  3206. <td class="bold">Info</td>
  3207. <td>vanilla: maximum 12 rows</td>
  3208. </tr>
  3209. </table>
  3210. <table>
  3211. <tr>
  3212. <th class="command">sb.remove</th>
  3213. <th class="desc">removes a row from the scoreboard</th>
  3214. </tr>
  3215. <tr>
  3216. <td class="bold">Format</td>
  3217. <td>sb.remove(player, unique_index)</td>
  3218. </tr>
  3219. <tr>
  3220. <td class="bold">Arguments</td>
  3221. <td>index as number from 1 to 99</td>
  3222. </tr>
  3223. </table>
  3224. <table>
  3225. <tr>
  3226. <th class="command">sb.addRaw</th>
  3227. <th class="desc">adds text to the scoreboard</th>
  3228. </tr>
  3229. <tr>
  3230. <td class="bold">Format</td>
  3231. <td>sb.addRaw(player, index, unique_string)</td>
  3232. </tr>
  3233. <tr>
  3234. <td class="bold">Arguments</td>
  3235. <td>index from 1 to 99</td>
  3236. </tr>
  3237. <tr>
  3238. <td class="bold">Info</td>
  3239. <td>vanilla: maximum 12 rows</td>
  3240. </tr>
  3241. </table>
  3242. <table>
  3243. <tr>
  3244. <th class="command">sb.removeRaw</th>
  3245. <th class="desc">removes a row from the scoreboard</th>
  3246. </tr>
  3247. <tr>
  3248. <td class="bold">Format</td>
  3249. <td>sb.removeRaw(player, unique_string)</td>
  3250. </tr>
  3251. </table>
  3252. <table>
  3253. <tr>
  3254. <th class="command">sb.setTitle</th>
  3255. <th class="desc">sets a scoreboard title</th>
  3256. </tr>
  3257. <tr>
  3258. <td class="bold">Format</td>
  3259. <td>sb.setTitle(player, text)</td>
  3260. </tr>
  3261. </table>
  3262. <table>
  3263. <tr>
  3264. <th class="command">sb.clear</th>
  3265. <th class="desc">clears the scoreboard of a player</th>
  3266. </tr>
  3267. <tr>
  3268. <td class="bold">Format</td>
  3269. <td>sb.clear(player)</td>
  3270. </tr>
  3271. </table>
  3272. </section>
  3273. <section id="Script">
  3274. <table>
  3275. <tr>
  3276. <th class="command">script.start</th>
  3277. <th class="desc">connects all scripts, starts them as one script and returns the script</th>
  3278. </tr>
  3279. <tr>
  3280. <td class="bold">Format</td>
  3281. <td>script.start(scriptpath1, scriptpath2, ...)</td>
  3282. </tr>
  3283. </table>
  3284. <table>
  3285. <tr>
  3286. <th class="command">script.startNamed</th>
  3287. <th class="desc">connects all scripts, starts them as one script and returns the script</th>
  3288. </tr>
  3289. <tr>
  3290. <td class="bold">Format</td>
  3291. <td>script.startNamed(custom_name, scriptpath1, scriptpath2, ...)</td>
  3292. </tr>
  3293. <td class="bold">Info</td>
  3294. <td>named scripts can be selected with script.get by their custom_name</td>
  3295. <tr>
  3296. </tr>
  3297. </table>
  3298. <table>
  3299. <tr>
  3300. <th class="command">script.callEvent</th>
  3301. <th class="desc">calls an event</th>
  3302. </tr>
  3303. <tr>
  3304. <td class="bold">Format</td>
  3305. <td>script.callEvent(event, [script])</td>
  3306. </tr>
  3307. </table>
  3308. </section>
  3309. <section id="Title">
  3310. <table>
  3311. <tr>
  3312. <th class="command">title.send</th>
  3313. <th class="desc">shows a player a title (and subtitle if set)</th>
  3314. </tr>
  3315. <tr>
  3316. <td class="bold">Format</td>
  3317. <td>title.send(player, title, [subtitle], [fadeIn | 20], [stay | 60], [fadeOut | 20])</td>
  3318. </tr>
  3319. </table>
  3320. <table>
  3321. <tr>
  3322. <th class="command">title.remove</th>
  3323. <th class="desc">removes the shown title</th>
  3324. </tr>
  3325. <tr>
  3326. <td class="bold">Format</td>
  3327. <td>title.remove(player)</td>
  3328. </tr>
  3329. </table>
  3330. </section>
  3331. <section id="Permission">
  3332. <table>
  3333. <tr>
  3334. <th class="command">perm.clear</th>
  3335. <th class="desc">removes all permissions from a player</th>
  3336. </tr>
  3337. <tr>
  3338. <td class="bold">Format</td>
  3339. <td>perm.clear(player)</td>
  3340. </tr>
  3341. </table>
  3342. <table>
  3343. <tr>
  3344. <th class="command">perm.add</th>
  3345. <th class="desc">adds a permission to a player</th>
  3346. </tr>
  3347. <tr>
  3348. <td class="bold">Format</td>
  3349. <td>perm.add(perm, player)</td>
  3350. </tr>
  3351. </table>
  3352. <table>
  3353. <tr>
  3354. <th class="command">perm.remove</th>
  3355. <th class="desc">removes a permission from a player</th>
  3356. </tr>
  3357. <tr>
  3358. <td class="bold">Format</td>
  3359. <td>perm.remove(perm, player)</td>
  3360. </tr>
  3361. </table>
  3362. <table>
  3363. <tr>
  3364. <th class="command">perm.has</th>
  3365. <th class="desc">returns true if a player has the permission</th>
  3366. </tr>
  3367. <tr>
  3368. <td class="bold">Format</td>
  3369. <td>perm.has(perm, player)</td>
  3370. </tr>
  3371. </table>
  3372. <table>
  3373. <tr>
  3374. <th class="command">perm.update</th>
  3375. <th class="desc">updates the permissions of a player</th>
  3376. </tr>
  3377. <tr>
  3378. <td class="bold">Format</td>
  3379. <td>perm.update(player)</td>
  3380. </tr>
  3381. <tr>
  3382. <td class="bold">Info</td>
  3383. <td>call this after adding all player permissions</td>
  3384. </tr>
  3385. </table>
  3386. </section>
  3387. <section id="Player">
  3388. <table>
  3389. <tr>
  3390. <th class="command">players.toList</th>
  3391. <th class="desc">returns a list with all players in a world</th>
  3392. </tr>
  3393. <tr>
  3394. <td class="bold">Format</td>
  3395. <td>players.toList(World)</td>
  3396. </tr>
  3397. </table>
  3398. <table>
  3399. <tr>
  3400. <th class="command">players.near</th>
  3401. <th class="desc">returns a list with all players within a radius of a location</th>
  3402. </tr>
  3403. <tr>
  3404. <td class="bold">Format</td>
  3405. <td>players.near(location, radius)</td>
  3406. </tr>
  3407. </table>
  3408. <table>
  3409. <tr>
  3410. <th class="command">players.getAmount</th>
  3411. <th class="desc">returns the number of online players</th>
  3412. </tr>
  3413. <tr>
  3414. <td class="bold">Format</td>
  3415. <td>players.getAmount()</td>
  3416. </tr>
  3417. </table>
  3418. <table>
  3419. <tr>
  3420. <th class="command">player.getHead</th>
  3421. <th class="desc">returns the head of a player as an itemstack</th>
  3422. </tr>
  3423. <tr>
  3424. <td class="bold">Format</td>
  3425. <td>player.getHead(uuid, name)</td>
  3426. </tr>
  3427. <tr>
  3428. <td class="bold">Arguments</td>
  3429. <td>uuid and(!) name of the same(!) player</td>
  3430. </tr>
  3431. </table>
  3432. <table>
  3433. <tr>
  3434. <th class="command">player.getNearest</th>
  3435. <th class="desc">returns the next player to a location</th>
  3436. </tr>
  3437. <tr>
  3438. <td class="bold">Format</td>
  3439. <td>player.getNearest(location)</td>
  3440. </tr>
  3441. <tr>
  3442. <td class="bold">Info</td>
  3443. <td>searches in a radius of 10 blocks</td>
  3444. </tr>
  3445. </table>
  3446. <table>
  3447. <tr>
  3448. <th class="command">player.setDisplayName</th>
  3449. <th class="desc">sets the name of a player in the tab list</th>
  3450. </tr>
  3451. <tr>
  3452. <td class="bold">Format</td>
  3453. <td>player.setDisplayName(player, text)</td>
  3454. </tr>
  3455. </table>
  3456. <table>
  3457. <tr>
  3458. <th class="command">player.action</th>
  3459. <th class="desc">shows a message in the action bar</th>
  3460. </tr>
  3461. <tr>
  3462. <td class="bold">Format</td>
  3463. <td>player.action(receiver, text)</td>
  3464. </tr>
  3465. <tr>
  3466. <td class="bold">Info</td>
  3467. <td>receiver:<br>sender (player / console)<br>"dev" (perm "script.debug" needed)<br>"online"<br>"server"</td>
  3468. </tr>
  3469. </table>
  3470. <table>
  3471. <tr>
  3472. <th class="command">player.getTargetBlock</th>
  3473. <th class="desc">returns the block a player is looking at</th>
  3474. </tr>
  3475. <tr>
  3476. <td class="bold">Format</td>
  3477. <td>player.getTargetBlock(player, radius, [fluidmode|false])</td>
  3478. </tr>
  3479. <tr>
  3480. <td class="bold">Arguments</td>
  3481. <td>
  3482. Vanilla default radius: 5<br>
  3483. radius will be cast to int<br>
  3484. fluidmode: true does not ignore water
  3485. </td>
  3486. </tr>
  3487. </table>
  3488. <table>
  3489. <tr>
  3490. <th class="command">player.getName</th>
  3491. <th class="desc">returns the name of a player</th>
  3492. </tr>
  3493. <tr>
  3494. <td class="bold">Format</td>
  3495. <td>player.getName(uuid / uuid_string / player)</td>
  3496. </tr>
  3497. <tr>
  3498. <td class="bold">Info</td>
  3499. <td>uuid and uuid_string can return null</td>
  3500. </tr>
  3501. </table>
  3502. <table>
  3503. <tr>
  3504. <th class="command">player.getUuid</th>
  3505. <th class="desc">returns the uuid of a player</th>
  3506. </tr>
  3507. <tr>
  3508. <td class="bold">Format</td>
  3509. <td>player.getUuid(player / player_name)</td>
  3510. </tr>
  3511. <tr>
  3512. <td class="bold">Info</td>
  3513. <td>player_name can return null</td>
  3514. </tr>
  3515. </table>
  3516. <table>
  3517. <tr>
  3518. <th class="command">player.getUuidFromId</th>
  3519. <th class="desc">returns the uuid of a player from their id</th>
  3520. </tr>
  3521. <tr>
  3522. <td class="bold">Format</td>
  3523. <td>player.getUuidFromId(player_id)</td>
  3524. </tr>
  3525. </table>
  3526. <table>
  3527. <tr>
  3528. <th class="command">player.getNameFromId</th>
  3529. <th class="desc">returns the name of a player from their id</th>
  3530. </tr>
  3531. <tr>
  3532. <td class="bold">Format</td>
  3533. <td>player.getNameFromId(player_id)</td>
  3534. </tr>
  3535. </table>
  3536. <table>
  3537. <tr>
  3538. <th class="command">player.getId</th>
  3539. <th class="desc">returns the id of a player</th>
  3540. </tr>
  3541. <tr>
  3542. <td class="bold">Format</td>
  3543. <td>player.getId(player / uuid / uuid_string)</td>
  3544. </tr>
  3545. </table>
  3546. <table>
  3547. <tr>
  3548. <th class="command">player.get</th>
  3549. <th class="desc">returns a player</th>
  3550. </tr>
  3551. <tr>
  3552. <td class="bold">Format</td>
  3553. <td>player.get(player / uuid / uuid_string)</td>
  3554. </tr>
  3555. </table>
  3556. <table>
  3557. <tr>
  3558. <th class="command">player.respawn</th>
  3559. <th class="desc">forces the respawn of a dead player</th>
  3560. </tr>
  3561. <tr>
  3562. <td class="bold">Format</td>
  3563. <td>player.respawn(player)</td>
  3564. </tr>
  3565. </table>
  3566. <table>
  3567. <tr>
  3568. <th class="command">player.setCompass</th>
  3569. <th class="desc">sets the target of a compass</th>
  3570. </tr>
  3571. <tr>
  3572. <td class="bold">Format</td>
  3573. <td>player.setCompass(player, location)</td>
  3574. </tr>
  3575. </table>
  3576. <table>
  3577. <tr>
  3578. <th class="command">player.setHunger</th>
  3579. <th class="desc">sets the hunger of a player</th>
  3580. </tr>
  3581. <tr>
  3582. <td class="bold">Format</td>
  3583. <td>player.setHunger(player, number)</td>
  3584. </tr>
  3585. <tr>
  3586. <td class="bold">Info</td>
  3587. <td>Vanilla default: 0-20</td>
  3588. </tr>
  3589. </table>
  3590. <table>
  3591. <tr>
  3592. <th class="command">player.getHunger</th>
  3593. <th class="desc">returns the hunger of a player</th>
  3594. </tr>
  3595. <tr>
  3596. <td class="bold">Format</td>
  3597. <td>player.getHunger(player)</td>
  3598. </tr>
  3599. </table>
  3600. <table>
  3601. <tr>
  3602. <th class="command">player.setSaturation</th>
  3603. <th class="desc">sets the saturation of a player</th>
  3604. </tr>
  3605. <tr>
  3606. <td class="bold">Format</td>
  3607. <td>player.setSaturation(player, number)</td>
  3608. </tr>
  3609. <tr>
  3610. <td class="bold">Info</td>
  3611. <td>Vanilla default: 5, maximum: 20</td>
  3612. </tr>
  3613. </table>
  3614. <table>
  3615. <tr>
  3616. <th class="command">player.getSaturation</th>
  3617. <th class="desc">returns the saturation of a player</th>
  3618. </tr>
  3619. <tr>
  3620. <td class="bold">Format</td>
  3621. <td>player.getSaturation(player)</td>
  3622. </tr>
  3623. </table>
  3624. <table>
  3625. <tr>
  3626. <th class="command">player.setGamemode</th>
  3627. <th class="desc">set the gamemode for a player</th>
  3628. </tr>
  3629. <tr>
  3630. <td class="bold">Format</td>
  3631. <td>player.setGamemode(player, gamemode)</td>
  3632. </tr>
  3633. <tr>
  3634. <td class="bold">Arguments</td>
  3635. <td>gamemode as "SURVIVAL" / "CREATIVE" / "ADVENTURE" / "SPECTATOR"</td>
  3636. </tr>
  3637. </table>
  3638. <table>
  3639. <tr>
  3640. <th class="command">player.isSurvival</th>
  3641. <th class="desc">returns true if a player is in gamemode survival</th>
  3642. </tr>
  3643. <tr>
  3644. <td class="bold">Format</td>
  3645. <td>player.isSurvival(player)</td>
  3646. </tr>
  3647. </table>
  3648. <table>
  3649. <tr>
  3650. <th class="command">player.isCreative</th>
  3651. <th class="desc">returns true if a player is in gamemode creative</th>
  3652. </tr>
  3653. <tr>
  3654. <td class="bold">Format</td>
  3655. <td>player.isCreative(player)</td>
  3656. </tr>
  3657. </table>
  3658. <table>
  3659. <tr>
  3660. <th class="command">player.isAdventure</th>
  3661. <th class="desc">returns true if a player is in gamemode adventure</th>
  3662. </tr>
  3663. <tr>
  3664. <td class="bold">Format</td>
  3665. <td>player.isAdventure(player)</td>
  3666. </tr>
  3667. </table>
  3668. <table>
  3669. <tr>
  3670. <th class="command">player.isSpectator</th>
  3671. <th class="desc">returns true if a player is in gamemode spectator</th>
  3672. </tr>
  3673. <tr>
  3674. <td class="bold">Format</td>
  3675. <td>player.isSpectator(player)</td>
  3676. </tr>
  3677. </table>
  3678. <table>
  3679. <tr>
  3680. <th class="command">player.hasFly</th>
  3681. <th class="desc">returns true if a player is allowed to fly</th>
  3682. </tr>
  3683. <tr>
  3684. <td class="bold">Format</td>
  3685. <td>player.hasFly(player)</td>
  3686. </tr>
  3687. </table>
  3688. <table>
  3689. <tr>
  3690. <th class="command">player.isFlying</th>
  3691. <th class="desc">returns true if a player is flying</th>
  3692. </tr>
  3693. <tr>
  3694. <td class="bold">Format</td>
  3695. <td>player.isFlying(player)</td>
  3696. </tr>
  3697. </table>
  3698. <table>
  3699. <tr>
  3700. <th class="command">player.setFly</th>
  3701. <th class="desc">set if a player is allowed to fly</th>
  3702. </tr>
  3703. <tr>
  3704. <td class="bold">Format</td>
  3705. <td>player.setFly(player, boolean)</td>
  3706. </tr>
  3707. </table>
  3708. <table>
  3709. <tr>
  3710. <th class="command">player.dropInventory</th>
  3711. <th class="desc">drops the inventory of a player at a location</th>
  3712. </tr>
  3713. <tr>
  3714. <td class="bold">Format</td>
  3715. <td>player.dropInventory(player, location)</td>
  3716. </tr>
  3717. </table>
  3718. <table>
  3719. <tr>
  3720. <th class="command">player.getItemAmount</th>
  3721. <th class="desc">returns the amount of an exact itemstack from a players inventory</th>
  3722. </tr>
  3723. <tr>
  3724. <td class="bold">Format</td>
  3725. <td>player.getItemAmount(player, itemstack)</td>
  3726. </tr>
  3727. <table>
  3728. <tr>
  3729. <th class="command">player.damageItem</th>
  3730. <th class="desc">damages the item in the hand of a player</th>
  3731. </tr>
  3732. <tr>
  3733. <td class="bold">Format</td>
  3734. <td>player.damageItem(player, damage_amount)</td>
  3735. </tr>
  3736. <tr>
  3737. <td class="bold">Info</td>
  3738. <td>unbreaking (and more) is considered</td>
  3739. </tr>
  3740. </table>
  3741. <table>
  3742. <tr>
  3743. <th class="command">player.setSpawn</th>
  3744. <th class="desc">sets the spawn location of a player</th>
  3745. </tr>
  3746. <tr>
  3747. <td class="bold">Format</td>
  3748. <td>player.setSpawn(player, location)</td>
  3749. </tr>
  3750. </table>
  3751. <table>
  3752. <tr>
  3753. <th class="command">player.getSpawn</th>
  3754. <th class="desc">returns the spawn location of a player</th>
  3755. </tr>
  3756. <tr>
  3757. <td class="bold">Format</td>
  3758. <td>player.getSpawn(player)</td>
  3759. </tr>
  3760. <tr>
  3761. <td class="bold">Format</td>
  3762. <td>spawn is linked to the bed spawn, if no bed spawn exists the return value may be null</td>
  3763. </tr>
  3764. </table>
  3765. <table>
  3766. <tr>
  3767. <th class="command">player.giveItem</th>
  3768. <th class="desc">gives an itemstack to a player and returns the item amount which did not fit in a players inventory</th>
  3769. </tr>
  3770. <tr>
  3771. <td class="bold">Format</td>
  3772. <td>player.giveItem(player, itemstack)</td>
  3773. </tr>
  3774. </table>
  3775. <table>
  3776. <tr>
  3777. <th class="command">player.addItem</th>
  3778. <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>
  3779. </tr>
  3780. <tr>
  3781. <td class="bold">Format</td>
  3782. <td>player.addItem(player, itemstack)</td>
  3783. </tr>
  3784. </table>
  3785. <table>
  3786. <tr>
  3787. <th class="command">player.removeItem</th>
  3788. <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>
  3789. </tr>
  3790. <tr>
  3791. <td class="bold">Format</td>
  3792. <td>player.removeItem(player, itemstack)</td>
  3793. </tr>
  3794. </table>
  3795. <table>
  3796. <tr>
  3797. <th class="command">player.getIP</th>
  3798. <th class="desc">returns the ip-address of a player as string</th>
  3799. </tr>
  3800. <tr>
  3801. <td class="bold">Format</td>
  3802. <td>player.getIp(player)</td>
  3803. </tr>
  3804. </table>
  3805. <table>
  3806. <tr>
  3807. <th class="command">player.getInv</th>
  3808. <th class="desc">returns the (non-copy) inventory of a player</th>
  3809. </tr>
  3810. <tr>
  3811. <td class="bold">Format</td>
  3812. <td>player.getInv(player)</td>
  3813. </tr>
  3814. </table>
  3815. <table>
  3816. <tr>
  3817. <th class="command">player.getEnderInv</th>
  3818. <th class="desc">returns the (non-copy) ender inventory of a player</th>
  3819. </tr>
  3820. <tr>
  3821. <td class="bold">Format</td>
  3822. <td>player.getEnderInv(player)</td>
  3823. </tr>
  3824. </table>
  3825. <table>
  3826. <tr>
  3827. <th class="command">player.getTargetEntity</th>
  3828. <th class="desc">returns the targeted entity</th>
  3829. </tr>
  3830. <tr>
  3831. <td class="bold">Format</td>
  3832. <td>player.getTargetEntity(player, radius)</td>
  3833. </tr>
  3834. <tr>
  3835. <td class="bold">Arguments</td>
  3836. <td>radius will be cast to int<br></td>
  3837. </tr>
  3838. </table>
  3839. <table>
  3840. <tr>
  3841. <th class="command">player.getTargetCitizen</th>
  3842. <th class="desc">returns the targeted citizen</th>
  3843. </tr>
  3844. <tr>
  3845. <td class="bold">Format</td>
  3846. <td>player.getTargetCitizen(player, radius)</td>
  3847. </tr>
  3848. <tr>
  3849. <td class="bold">Arguments</td>
  3850. <td>radius will be cast to int<br></td>
  3851. </tr>
  3852. </table>
  3853. <table>
  3854. <tr>
  3855. <th class="command">player.getLevel</th>
  3856. <th class="desc">returns the level of a player</th>
  3857. </tr>
  3858. <tr>
  3859. <td class="bold">Format</td>
  3860. <td>player.getLevel(player)</td>
  3861. </tr>
  3862. </table>
  3863. <table>
  3864. <tr>
  3865. <th class="command">player.setLevel</th>
  3866. <th class="desc">sets the level of a player</th>
  3867. </tr>
  3868. <tr>
  3869. <td class="bold">Format</td>
  3870. <td>player.setLevel(player, level)</td>
  3871. </tr>
  3872. <tr>
  3873. <td class="bold">Arguments</td>
  3874. <td>level is cast to int</td>
  3875. </tr>
  3876. </table>
  3877. <table>
  3878. <tr>
  3879. <th class="command">player.getExp</th>
  3880. <th class="desc">returns the experience of a player</th>
  3881. </tr>
  3882. <tr>
  3883. <td class="bold">Format</td>
  3884. <td>player.getExp(player)</td>
  3885. </tr>
  3886. </table>
  3887. <table>
  3888. <tr>
  3889. <th class="command">player.setExp</th>
  3890. <th class="desc">sets the experience of a player</th>
  3891. </tr>
  3892. <tr>
  3893. <td class="bold">Format</td>
  3894. <td>player.setExp(player, exp)</td>
  3895. </tr>
  3896. <tr>
  3897. <td class="bold">Arguments</td>
  3898. <td>exp is cast to float</td>
  3899. </tr>
  3900. </table>
  3901. <table>
  3902. <tr>
  3903. <th class="command">player.addTotalExp</th>
  3904. <th class="desc">modifies the experience of a player</th>
  3905. </tr>
  3906. <tr>
  3907. <td class="bold">Format</td>
  3908. <td>player.addTotalExp(player, exp)</td>
  3909. </tr>
  3910. <tr>
  3911. <td class="bold">Arguments</td>
  3912. <td>exp is cast to int</td>
  3913. </tr>
  3914. </table>
  3915. <table>
  3916. <tr>
  3917. <th class="command">player.hide</th>
  3918. <th class="desc">hides a player from another player</th>
  3919. </tr>
  3920. <tr>
  3921. <td class="bold">Format</td>
  3922. <td>player.hide(player, player_to_hide)</td>
  3923. </tr>
  3924. </table>
  3925. <table>
  3926. <tr>
  3927. <th class="command">player.show</th>
  3928. <th class="desc">shows a player or another player</th>
  3929. </tr>
  3930. <tr>
  3931. <td class="bold">Format</td>
  3932. <td>player.show(player, player_to_show)</td>
  3933. </tr>
  3934. </table>
  3935. <table>
  3936. <tr>
  3937. <th class="command">player.setFlySpeed</th>
  3938. <th class="desc">sets the fly speed of a player</th>
  3939. </tr>
  3940. <tr>
  3941. <td class="bold">Format</td>
  3942. <td>player.setFlySpeed(player, speed)</td>
  3943. </tr>
  3944. <tr>
  3945. <td class="bold">Arguments</td>
  3946. <td>speed is cast to float</td>
  3947. </tr>
  3948. </table>
  3949. <table>
  3950. <tr>
  3951. <th class="command">player.setWalkSpeed</th>
  3952. <th class="desc">sets the walk speed of a player</th>
  3953. </tr>
  3954. <tr>
  3955. <td class="bold">Format</td>
  3956. <td>player.setWalkSpeed(player, speed)</td>
  3957. </tr>
  3958. <tr>
  3959. <td class="bold">Arguments</td>
  3960. <td>speed is cast to float</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. </section>
  4008. <section id="Inventory">
  4009. <table>
  4010. <tr>
  4011. <th class="command">inv.new</th>
  4012. <th class="desc">returns a new custom inventory</th>
  4013. </tr>
  4014. <tr>
  4015. <td class="bold">Format</td>
  4016. <td>inv.new(slotdata, title)</td>
  4017. </tr>
  4018. <tr>
  4019. <td class="bold">Arguments</td>
  4020. <td>
  4021. slotdata as string:<br>
  4022. 0 = no slot, throws no event<br>
  4023. 1 = normal slot, throws inv_click event<br>
  4024. 2 = button slot, throws snuvi_click event
  4025. </td>
  4026. </tr>
  4027. <tr>
  4028. <td class="bold">Examples</td>
  4029. <td>inv.new("002122000", ...)</td>
  4030. </tr>
  4031. </table>
  4032. </table>
  4033. <table>
  4034. <tr>
  4035. <th class="command">inv.getSize</th>
  4036. <th class="desc">returns the size of an inventory</th>
  4037. </tr>
  4038. <tr>
  4039. <td class="bold">Format</td>
  4040. <td>inv.getSize(inventory)</td>
  4041. </tr>
  4042. <table>
  4043. <tr>
  4044. <th class="command">inv.setItem</th>
  4045. <th class="desc">sets an itemstack on a specific slot in an inventory</th>
  4046. </tr>
  4047. <tr>
  4048. <td class="bold">Format</td>
  4049. <td>inv.setItem(inventory, slotindex, itemstack)</td>
  4050. </tr>
  4051. </table>
  4052. <table>
  4053. <tr>
  4054. <th class="command">inv.getItem</th>
  4055. <th class="desc">returns an itemstack from a specific slot of an inventory</th>
  4056. </tr>
  4057. <tr>
  4058. <td class="bold">Format</td>
  4059. <td>inv.getItem(inventory, slotindex)</td>
  4060. </tr>
  4061. </table>
  4062. <table>
  4063. <tr>
  4064. <th class="command">inv.open</th>
  4065. <th class="desc">shows an inventory to a player</th>
  4066. </tr>
  4067. <tr>
  4068. <td class="bold">Format</td>
  4069. <td>inv.open(inventory, player)</td>
  4070. </tr>
  4071. </table>
  4072. <table>
  4073. <tr>
  4074. <th class="command">inv.close</th>
  4075. <th class="desc">closes an inventory of a player</th>
  4076. </tr>
  4077. <tr>
  4078. <td class="bold">Format</td>
  4079. <td>inv.close(player)</td>
  4080. </tr>
  4081. </table>
  4082. <table>
  4083. <tr>
  4084. <th class="command">inv.clear</th>
  4085. <th class="desc">clears an inventory</th>
  4086. </tr>
  4087. <tr>
  4088. <td class="bold">Format</td>
  4089. <td>inv.clear(inv)</td>
  4090. </tr>
  4091. </table>
  4092. <table>
  4093. <tr>
  4094. <th class="command">inv.getID</th>
  4095. <th class="desc">returns the id of an inventory or -1 if no custom inventory</th>
  4096. </tr>
  4097. <tr>
  4098. <td class="bold">Format</td>
  4099. <td>inv.getID(inventory)</td>
  4100. </tr>
  4101. </table>
  4102. <table>
  4103. <tr>
  4104. <th class="command">inv.closeAll()</th>
  4105. <th class="desc">closes all custom inventories of all players</th>
  4106. </tr>
  4107. <tr>
  4108. <td class="bold">Format</td>
  4109. <td>inv.closeAll()</td>
  4110. </tr>
  4111. </table>
  4112. </section>
  4113. <section id="World">
  4114. <table>
  4115. <tr>
  4116. <th class="command">world.get</th>
  4117. <th class="desc">returns a world</th>
  4118. </tr>
  4119. <tr>
  4120. <td class="bold">Format</td>
  4121. <td>world.get(name)</td>
  4122. </tr>
  4123. </table>
  4124. <table>
  4125. <tr>
  4126. <th class="command">world.getName</th>
  4127. <th class="desc">returns the name of a world</th>
  4128. </tr>
  4129. <tr>
  4130. <td class="bold">Format</td>
  4131. <td>world.getName(world)</td>
  4132. </tr>
  4133. </table>
  4134. <table>
  4135. <tr>
  4136. <th class="command">world.getPlayers</th>
  4137. <th class="desc">returns a list with all players in a world</th>
  4138. </tr>
  4139. <tr>
  4140. <td class="bold">Format</td>
  4141. <td>world.getPlayers(world)</td>
  4142. </tr>
  4143. </table>
  4144. <table>
  4145. <tr>
  4146. <th class="command">world.setDifficulty</th>
  4147. <th class="desc">sets the difficulty of a world</th>
  4148. </tr>
  4149. <tr>
  4150. <td class="bold">Format</td>
  4151. <td>world.setDifficulty(world, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Difficulty.html" target="_blank">difficulty</a>)</td>
  4152. </tr>
  4153. </table>
  4154. <table>
  4155. <tr>
  4156. <th class="command">world.setSpawn</th>
  4157. <th class="desc">sets the world spawn</th>
  4158. </tr>
  4159. <tr>
  4160. <td class="bold">Format</td>
  4161. <td>world.setSpawn(location)</td>
  4162. </tr>
  4163. </table>
  4164. <table>
  4165. <tr>
  4166. <th class="command">world.getSpawn</th>
  4167. <th class="desc">returns the world spawn as location</th>
  4168. </tr>
  4169. <tr>
  4170. <td class="bold">Format</td>
  4171. <td>world.getSpawn(world)</td>
  4172. </tr>
  4173. </table>
  4174. <table>
  4175. <tr>
  4176. <th class="command">world.getAll</th>
  4177. <th class="desc">returns a list with all loaded worlds</th>
  4178. </tr>
  4179. <tr>
  4180. <td class="bold">Format</td>
  4181. <td>world.getAll()</td>
  4182. </tr>
  4183. </table>
  4184. <table>
  4185. <tr>
  4186. <th class="command">world.setTime</th>
  4187. <th class="desc">sets the time for a world</th>
  4188. </tr>
  4189. <tr>
  4190. <td class="bold">Format</td>
  4191. <td>world.setTime(world, time)</td>
  4192. </tr>
  4193. <tr>
  4194. <td class="bold">Arguments</td>
  4195. <td>time from 0 to 24000</td>
  4196. </tr>
  4197. </table>
  4198. <table>
  4199. <tr>
  4200. <th class="command">world.getTime</th>
  4201. <th class="desc">returns the time of a world</th>
  4202. </tr>
  4203. <tr>
  4204. <td class="bold">Format</td>
  4205. <td>world.getTime(world)</td>
  4206. </tr>
  4207. </table>
  4208. <table>
  4209. <tr>
  4210. <th class="command">world.hasRain</th>
  4211. <th class="desc">returns true if it is raining in the world</th>
  4212. </tr>
  4213. <tr>
  4214. <td class="bold">Format</td>
  4215. <td>world.hasStorm(world)</td>
  4216. </tr>
  4217. </table>
  4218. <table>
  4219. <tr>
  4220. <th class="command">world.hasThunder</th>
  4221. <th class="desc">returns true if there is thunder in the world</th>
  4222. </tr>
  4223. <tr>
  4224. <td class="bold">Format</td>
  4225. <td>world.hasThunder(world)</td>
  4226. </tr>
  4227. </table>
  4228. <table>
  4229. <tr>
  4230. <th class="command">world.clearWeather</th>
  4231. <th class="desc">clears the weather of a world</th>
  4232. </tr>
  4233. <tr>
  4234. <td class="bold">Format</td>
  4235. <td>world.clearWeather(world, ticks)</td>
  4236. </tr>
  4237. <tr>
  4238. <td class="bold">Info</td>
  4239. <td>ticks when the next rain is allowed to start</td>
  4240. </tr>
  4241. </table>
  4242. <table>
  4243. <tr>
  4244. <th class="command">world.setRain</th>
  4245. <th class="desc">sets the weather of a world to rain</th>
  4246. </tr>
  4247. <tr>
  4248. <td class="bold">Format</td>
  4249. <td>world.setRain(world, ticks)</td>
  4250. </tr>
  4251. <tr>
  4252. <td class="bold">Info</td>
  4253. <td>ticks how long the rain stays</td>
  4254. </tr>
  4255. </table>
  4256. <table>
  4257. <tr>
  4258. <th class="command">world.setThunder</th>
  4259. <th class="desc">sets the weather of a world to thunder</th>
  4260. </tr>
  4261. <tr>
  4262. <td class="bold">Format</td>
  4263. <td>world.setThunder(world, ticks)</td>
  4264. </tr>
  4265. <tr>
  4266. <td class="bold">Info</td>
  4267. <td>ticks how long the thunder stays</td>
  4268. </tr>
  4269. </table>
  4270. <table>
  4271. <tr>
  4272. <th class="command">world.getEntities</th>
  4273. <th class="desc">returns a list with all entities in a world</th>
  4274. </tr>
  4275. <tr>
  4276. <td class="bold">Format</td>
  4277. <td>world.getEntities(world)</td>
  4278. </tr>
  4279. </table>
  4280. <table>
  4281. <tr>
  4282. <th class="command">world.load</th>
  4283. <th class="desc">returns the loaded world</th>
  4284. </tr>
  4285. <tr>
  4286. <td class="bold">Format</td>
  4287. <td>world.load(name)</td>
  4288. </tr>
  4289. </table>
  4290. <table>
  4291. <tr>
  4292. <th class="command">world.unload</th>
  4293. <th class="desc">returns true if unloading a world is successful</th>
  4294. </tr>
  4295. <tr>
  4296. <td class="bold">Format</td>
  4297. <td>world.unload(world)</td>
  4298. </tr>
  4299. </table>
  4300. <table>
  4301. <tr>
  4302. <th class="command">world.getLoadedChunks</th>
  4303. <th class="desc">returns an array with all loaded chunks</th>
  4304. </tr>
  4305. <tr>
  4306. <td class="bold">Format</td>
  4307. <td>world.getLoadedChunks(world)</td>
  4308. </tr>
  4309. </table>
  4310. <table>
  4311. <tr>
  4312. <th class="command">world.unloadChunk</th>
  4313. <th class="desc">returns true if unloading a chunk is successful</th>
  4314. </tr>
  4315. <tr>
  4316. <td class="bold">Format</td>
  4317. <td>world.unloadChunk(chunk)</td>
  4318. </tr>
  4319. </table>
  4320. <table>
  4321. <tr>
  4322. <th class="command">world.getChunkX</th>
  4323. <th class="desc">returns the x chunk coordinate</th>
  4324. </tr>
  4325. <tr>
  4326. <td class="bold">Format</td>
  4327. <td>world.getChunkX(chunk)</td>
  4328. </tr>
  4329. </table>
  4330. <table>
  4331. <tr>
  4332. <th class="command">world.getChunkZ</th>
  4333. <th class="desc">returns the x chunk coordinate</th>
  4334. </tr>
  4335. <tr>
  4336. <td class="bold">Format</td>
  4337. <td>world.getChunkZ(chunk)</td>
  4338. </tr>
  4339. </table>
  4340. <table>
  4341. <tr>
  4342. <th class="command">world.isForceLoadedChunk</th>
  4343. <th class="desc">returns true if a chunk is forced to be loaded</th>
  4344. </tr>
  4345. <tr>
  4346. <td class="bold">Format</td>
  4347. <td>world.isForceLoadedChunk(chunk)</td>
  4348. </tr>
  4349. </table>
  4350. </section>
  4351. <section id="Entity">
  4352. <table>
  4353. <tr>
  4354. <th class="command">entity.getUuid</th>
  4355. <th class="desc">returns the uuid of an entity</th>
  4356. </tr>
  4357. <tr>
  4358. <td class="bold">Format</td>
  4359. <td>entity.getUuid(entity)</td>
  4360. </tr>
  4361. </table>
  4362. <table>
  4363. <tr>
  4364. <th class="command">entity.getType</th>
  4365. <th class="desc">returns the type of an entity as string</th>
  4366. </tr>
  4367. <tr>
  4368. <td class="bold">Format</td>
  4369. <td>entity.getType(entity)</td>
  4370. </tr>
  4371. </table>
  4372. <table>
  4373. <tr>
  4374. <th class="command">entity.setName</th>
  4375. <th class="desc">sets the name of an entity</th>
  4376. </tr>
  4377. <tr>
  4378. <td class="bold">Format</td>
  4379. <td>entity.setName(entity, text, [nameVisibility | false])</td>
  4380. </tr>
  4381. <tr>
  4382. <td class="bold">Info</td>
  4383. <td>nameVisibility true means an always visible name)</td>
  4384. </tr>
  4385. </table>
  4386. <table>
  4387. <tr>
  4388. <th class="command">entity.getName</th>
  4389. <th class="desc">returns the name of an entity as text</th>
  4390. </tr>
  4391. <tr>
  4392. <td class="bold">Format</td>
  4393. <td>entity.getName(entity)</td>
  4394. </tr>
  4395. </table>
  4396. <table>
  4397. <tr>
  4398. <th class="command">entity.getLocation</th>
  4399. <th class="desc">returns the location of an entity</th>
  4400. </tr>
  4401. <tr>
  4402. <td class="bold">Format</td>
  4403. <td>entity.getLocation(entity)</td>
  4404. </tr>
  4405. </table>
  4406. <table>
  4407. <tr>
  4408. <th class="command">entity.teleport</th>
  4409. <th class="desc">teleports an entity</th>
  4410. </tr>
  4411. <tr>
  4412. <td class="bold">Format</td>
  4413. <td>entity.teleport(entity, location)</td>
  4414. </tr>
  4415. </table>
  4416. <table>
  4417. <tr>
  4418. <th class="command">entity.setInvulnerable</th>
  4419. <th class="desc">sets an entity (in)vulnerable</th>
  4420. </tr>
  4421. <tr>
  4422. <td class="bold">Format</td>
  4423. <td>entity.setInvulnerable(entity, boolean)</td>
  4424. </tr>
  4425. </table>
  4426. <table>
  4427. <tr>
  4428. <th class="command">entity.remove</th>
  4429. <th class="desc">removes an entity</th>
  4430. </tr>
  4431. <tr>
  4432. <td class="bold">Format</td>
  4433. <td>entity.remove(entity)</td>
  4434. </tr>
  4435. </table>
  4436. <table>
  4437. <tr>
  4438. <th class="command">entity.removeAll</th>
  4439. <th class="desc">remove specific entities from an area</th>
  4440. </tr>
  4441. <tr>
  4442. <td class="bold">Format</td>
  4443. <td>entity.removeAll(entity_class, location, radius)</td>
  4444. </tr>
  4445. </table>
  4446. <table>
  4447. <tr>
  4448. <th class="command">entity.setSilent</th>
  4449. <th class="desc">true sets an entity silent</th>
  4450. </tr>
  4451. <tr>
  4452. <td class="bold">Format</td>
  4453. <td>entity.setSilent(entity, boolean)</td>
  4454. </tr>
  4455. </table>
  4456. <table>
  4457. <tr>
  4458. <th class="command">entity.mount</th>
  4459. <th class="desc">lets an entity ride another entity</th>
  4460. </tr>
  4461. <tr>
  4462. <td class="bold">Format</td>
  4463. <td>entity.mount(entity, mount_entity)</td>
  4464. </tr>
  4465. </table>
  4466. <table>
  4467. <tr>
  4468. <th class="command">entity.unmount</th>
  4469. <th class="desc">unmounts an entity</th>
  4470. </tr>
  4471. <tr>
  4472. <td class="bold">Format</td>
  4473. <td>entity.unmount(entity)</td>
  4474. </tr>
  4475. </table>
  4476. <table>
  4477. <tr>
  4478. <th class="command">entity.getMount</th>
  4479. <th class="desc">returns the mount of an entity</th>
  4480. </tr>
  4481. <tr>
  4482. <td class="bold">Format</td>
  4483. <td>entity.getMount(entity)</td>
  4484. </tr>
  4485. </table>
  4486. <table>
  4487. <tr>
  4488. <th class="command">entity.getPassengers</th>
  4489. <th class="desc">returns a list of passengers of an entity</th>
  4490. </tr>
  4491. <tr>
  4492. <td class="bold">Format</td>
  4493. <td>entity.getPassengers(entity)</td>
  4494. </tr>
  4495. </table>
  4496. <table>
  4497. <tr>
  4498. <th class="command">entity.isWet</th>
  4499. <th class="desc">returns true if an entity is wet</th>
  4500. </tr>
  4501. <tr>
  4502. <td class="bold">Format</td>
  4503. <td>entity.isWet(entity)</td>
  4504. </tr>
  4505. </table>
  4506. <table>
  4507. <tr>
  4508. <th class="command">entity.isBurning</th>
  4509. <th class="desc">returns true if an entity burns</th>
  4510. </tr>
  4511. <tr>
  4512. <td class="bold">Format</td>
  4513. <td>entity.isBurning(entity)</td>
  4514. </tr>
  4515. </table>
  4516. <table>
  4517. <tr>
  4518. <th class="command">entity.setBurning</th>
  4519. <th class="desc">sets an entity on fire</th>
  4520. </tr>
  4521. <tr>
  4522. <td class="bold">Format</td>
  4523. <td>entity.setBurning(entity, ticks)</td>
  4524. </tr>
  4525. <tr>
  4526. <td class="bold">Info</td>
  4527. <td>0 ticks extinguish the entity</td>
  4528. </tr>
  4529. </table>
  4530. <table>
  4531. <tr>
  4532. <th class="command">entity.setNoPickup</th>
  4533. <th class="desc">sets an arrow_entity not pickupable</th>
  4534. </tr>
  4535. <tr>
  4536. <td class="bold">Format</td>
  4537. <td>entity.setNoPickup(arrow_entity)</td>
  4538. </tr>
  4539. </table>
  4540. <table>
  4541. <tr>
  4542. <th class="command">entity.get</th>
  4543. <th class="desc">returns the next entity to a location or null</th>
  4544. </tr>
  4545. <tr>
  4546. <td class="bold">Format</td>
  4547. <td>entity.get(location, radius, entity_class)</td>
  4548. </tr>
  4549. </table>
  4550. <table>
  4551. <tr>
  4552. <th class="command">entity.spawn</th>
  4553. <th class="desc">spawns an entity and returns it</th>
  4554. </tr>
  4555. <tr>
  4556. <td class="bold">Format</td>
  4557. <td>entity.spawn(location, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/entity/EntityType.html" target="_blank">type</a>)</td>
  4558. </tr>
  4559. </table>
  4560. <table>
  4561. <tr>
  4562. <th class="command">entity.setGravity</th>
  4563. <th class="desc">toggles the gravity of an entity</th>
  4564. </tr>
  4565. <tr>
  4566. <td class="bold">Format</td>
  4567. <td>entity.setGravity(entity, boolean)</td>
  4568. </tr>
  4569. </table>
  4570. <table>
  4571. <tr>
  4572. <th class="command">entity.setGrowingAge</th>
  4573. <th class="desc">sets the growing age of an entity</th>
  4574. </tr>
  4575. <tr>
  4576. <td class="bold">Format</td>
  4577. <td>entity.setGrowingAge(entity, age_int)</td>
  4578. </tr>
  4579. </table>
  4580. <table>
  4581. <tr>
  4582. <th class="command">entity.getPotionType</th>
  4583. <th class="desc">returns the itemstack of a thrown potion</th>
  4584. </tr>
  4585. <tr>
  4586. <td class="bold">Format</td>
  4587. <td>entity.getPotionType(potion_entity)</td>
  4588. </tr>
  4589. </table>
  4590. <table>
  4591. <tr>
  4592. <th class="command">entity.near</th>
  4593. <th class="desc">returns a list with all entities within a location / a radius of an entity</th>
  4594. </tr>
  4595. <tr>
  4596. <td class="bold">Format</td>
  4597. <td>entity.near(location / entity, radius)</td>
  4598. </tr>
  4599. </table>
  4600. <table>
  4601. <tr>
  4602. <th class="command">entity.getLook</th>
  4603. <th class="desc">returns the look direction as array</th>
  4604. </tr>
  4605. <tr>
  4606. <td class="bold">Format</td>
  4607. <td>entity.getLook(entity)</td>
  4608. </tr>
  4609. </table>
  4610. <table>
  4611. <tr>
  4612. <th class="command">entity.setLook</th>
  4613. <th class="desc">sets the look of an entity</th>
  4614. </tr>
  4615. <tr>
  4616. <td class="bold">Format</td>
  4617. <td>entity.setLook(entity, x, y, z)</td>
  4618. </tr>
  4619. </table>
  4620. <table>
  4621. <tr>
  4622. <th class="command">entity.getMotion</th>
  4623. <th class="desc">returns the motion as array</th>
  4624. </tr>
  4625. <tr>
  4626. <td class="bold">Format</td>
  4627. <td>entity.getMotion(entity)</td>
  4628. </tr>
  4629. </table>
  4630. <table>
  4631. <tr>
  4632. <th class="command">entity.setMotion</th>
  4633. <th class="desc">sets the motion of an entity</th>
  4634. </tr>
  4635. <tr>
  4636. <td class="bold">Format</td>
  4637. <td>entity.setMotion(entity, x, y, z)</td>
  4638. </tr>
  4639. <tr>
  4640. <td class="bold">Info</td>
  4641. <td>x/y/z is clamped in the interval from -3.9 to 3.9 by Minecraft</td>
  4642. </tr>
  4643. </table>
  4644. <table>
  4645. <tr>
  4646. <th class="command">entity.frame.spawn</th>
  4647. <th class="desc">spawns an itemframe with an itemstack</th>
  4648. </tr>
  4649. <tr>
  4650. <td class="bold">Format</td>
  4651. <td>entity.frame.spawn(location, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/block/BlockFace.html" target="_blank">block_face</a>, itemstack)</td>
  4652. </tr>
  4653. </table>
  4654. <table>
  4655. <tr>
  4656. <th class="command">entity.frame.getItem</th>
  4657. <th class="desc">returns the itemstack of an itemframe</th>
  4658. </tr>
  4659. <tr>
  4660. <td class="bold">Format</td>
  4661. <td>entity.frame.getItem(entity_frame)</td>
  4662. </tr>
  4663. </table>
  4664. <table>
  4665. <tr>
  4666. <th class="command">entity.frame.hide</th>
  4667. <th class="desc">hides an itemframe</th>
  4668. </tr>
  4669. <tr>
  4670. <td class="bold">Format</td>
  4671. <td>entity.frame.hide(entity_frame)</td>
  4672. </tr>
  4673. </table>
  4674. <table>
  4675. <tr>
  4676. <th class="command">entity.frame.show</th>
  4677. <th class="desc">shows an itemframe</th>
  4678. </tr>
  4679. <tr>
  4680. <td class="bold">Format</td>
  4681. <td>entity.frame.show(entity_frame)</td>
  4682. </tr>
  4683. </table>
  4684. <table>
  4685. <tr>
  4686. <th class="command">entity.frame.setFixed</th>
  4687. <th class="desc">sets the fixed tag for an itemframe</th>
  4688. </tr>
  4689. <tr>
  4690. <td class="bold">Format</td>
  4691. <td>entity.frame.setFixed(entity_frame, boolean)</td>
  4692. </tr>
  4693. </table>
  4694. <table>
  4695. <tr>
  4696. <th class="command">creeper.explode</th>
  4697. <th class="desc">lets a creeper explode</th>
  4698. </tr>
  4699. <tr>
  4700. <td class="bold">Format</td>
  4701. <td>creeper.explode(entity)</td>
  4702. </tr>
  4703. </table>
  4704. <table>
  4705. <tr>
  4706. <th class="command">sheep.isSheared</th>
  4707. <th class="desc">returns true if a sheep is sheared</th>
  4708. </tr>
  4709. <tr>
  4710. <td class="bold">Format</td>
  4711. <td>sheep.isSheared(entity)</td>
  4712. </tr>
  4713. </table>
  4714. <table>
  4715. <tr>
  4716. <th class="command">sheep.getColor</th>
  4717. <th class="desc">returns the color of a sheep as string</th>
  4718. </tr>
  4719. <tr>
  4720. <td class="bold">Format</td>
  4721. <td>sheep.getColor(entity)</td>
  4722. </tr>
  4723. </table>
  4724. <table>
  4725. <tr>
  4726. <th class="command">pet.isTamed</th>
  4727. <th class="desc">returns true if a pet is tamed</th>
  4728. </tr>
  4729. <tr>
  4730. <td class="bold">Format</td>
  4731. <td>pet.isTamed(tameable_entity)</td>
  4732. </tr>
  4733. </table>
  4734. <table>
  4735. <tr>
  4736. <th class="command">pet.setTamed</th>
  4737. <th class="desc">sets tame state for a tameable entity</th>
  4738. </tr>
  4739. <tr>
  4740. <td class="bold">Format</td>
  4741. <td>pet.setTamed(tameable_entity, boolean, [owner])</td>
  4742. </tr>
  4743. <tr>
  4744. <td class="bold">Example</td>
  4745. <td>
  4746. pet.setTamed(horse, true)<br>
  4747. pet.setTamed(horse, false)<br>
  4748. pet.setTamed(horse, true, player)<br>
  4749. pet.setTamed(horse, false, player)<br>
  4750. </td>
  4751. </tr>
  4752. </table>
  4753. <table>
  4754. <tr>
  4755. <th class="command">pet.getOwner</th>
  4756. <th class="desc">returns the owner of a pet</th>
  4757. </tr>
  4758. <tr>
  4759. <td class="bold">Format</td>
  4760. <td>pet.getOwner(tameable_entity)</td>
  4761. </tr>
  4762. </table>
  4763. </section>
  4764. <section id="Living">
  4765. <table>
  4766. <tr>
  4767. <th class="command">living.setHealth</th>
  4768. <th class="desc">sets the health points of a living entity</th>
  4769. </tr>
  4770. <tr>
  4771. <td class="bold">Format</td>
  4772. <td>living.setHealth(living_entity, amount)</td>
  4773. </tr>
  4774. </table>
  4775. <table>
  4776. <tr>
  4777. <th class="command">living.getHealth</th>
  4778. <th class="desc">returns the health points of a living entity</th>
  4779. </tr>
  4780. <tr>
  4781. <td class="bold">Format</td>
  4782. <td>living.getHealth(living_entity)</td>
  4783. </tr>
  4784. </table>
  4785. <table>
  4786. <tr>
  4787. <th class="command">living.damage</th>
  4788. <th class="desc">damages a living entity</th>
  4789. </tr>
  4790. <tr>
  4791. <td class="bold">Format</td>
  4792. <td>living.damage(living_entity, damage_amount, damagesource)</td>
  4793. </tr>
  4794. <tr>
  4795. <td class="bold">Info</td>
  4796. <td>triggers events on the next server tick</td>
  4797. </tr>
  4798. </table>
  4799. <table>
  4800. <tr>
  4801. <th class="command">living.heal</th>
  4802. <th class="desc">heals a living entity</th>
  4803. </tr>
  4804. <tr>
  4805. <td class="bold">Format</td>
  4806. <td>living.heal(living_entity, heal_amount)</td>
  4807. </tr>
  4808. <tr>
  4809. <td class="bold">Info</td>
  4810. <td>triggers events on the next server tick</td>
  4811. </tr>
  4812. </table>
  4813. <table>
  4814. <tr>
  4815. <th class="command">living.setEquip</th>
  4816. <th class="desc">sets the equipment of a living entity</th>
  4817. </tr>
  4818. <tr>
  4819. <td class="bold">Format</td>
  4820. <td>living.setEquip(living_entity, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot</a>, itemstack)</td>
  4821. </tr>
  4822. </table>
  4823. <table>
  4824. <tr>
  4825. <th class="command">living.getEquip</th>
  4826. <th class="desc">returns the equipment of a living_entity</th>
  4827. </tr>
  4828. <tr>
  4829. <td class="bold">Format</td>
  4830. <td>living.getEquip(living_entity, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot</a>)</td>
  4831. </tr>
  4832. </table>
  4833. <table>
  4834. <tr>
  4835. <th class="command">living.near</th>
  4836. <th class="desc">returns a list with all living entities within a location / a radius of a living entity</th>
  4837. </tr>
  4838. <tr>
  4839. <td class="bold">Format</td>
  4840. <td>living.near(location / living_entity, radius)</td>
  4841. </tr>
  4842. </table>
  4843. <table>
  4844. <tr>
  4845. <th class="command">living.setAi</th>
  4846. <th class="desc">sets if the AI of an entity is active</th>
  4847. </tr>
  4848. <tr>
  4849. <td class="bold">Format</td>
  4850. <td>living.setAi(living_entity, boolean)</td>
  4851. </tr>
  4852. </table>
  4853. <table>
  4854. <tr>
  4855. <th class="command">generic living commands</th>
  4856. <th class="desc">commands for living properties</th>
  4857. </tr>
  4858. <tr>
  4859. <td class="bold">Format</td>
  4860. <td>
  4861. living.get...(living_entity)<br>
  4862. living.set...(living_entity, value)<br>
  4863. living.reset...(living_entity)
  4864. </td>
  4865. </tr>
  4866. <tr>
  4867. <td class="bold">Properties</td>
  4868. <td><a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/attribute/Attribute.html" target="_blank">attributes</a> without "GENERIC" and "_"</td>
  4869. </tr>
  4870. </table>
  4871. <table>
  4872. <tr>
  4873. <th class="command">living.shootProjectile</th>
  4874. <th class="desc">returns the shooten entity</th>
  4875. </tr>
  4876. <tr>
  4877. <td class="bold">Format</td>
  4878. <td>living.shootProjectile(living_entity, entity_class)</td>
  4879. </tr>
  4880. </table>
  4881. <table>
  4882. <tr>
  4883. <th class="command">living.setInvisible</th>
  4884. <th class="desc">sets a living_entity (in)visible</th>
  4885. </tr>
  4886. <tr>
  4887. <td class="bold">Format</td>
  4888. <td>living.setInvisible(living_entity, boolean)</td>
  4889. </tr>
  4890. </table>
  4891. <table>
  4892. <tr>
  4893. <th class="command">living.addEffect</th>
  4894. <th class="desc">adds an effect to a living_entity</th>
  4895. </tr>
  4896. <tr>
  4897. <td class="bold">Format</td>
  4898. <td>living.addEffect(living_entity, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/potion/PotionEffectType.html" target="_blank">effect</a>, ticks, amplifier, [particle | true])</td>
  4899. </tr>
  4900. <tr>
  4901. <td class="bold">Arguments</td>
  4902. <td>amplifier 0 means potion level 1</td>
  4903. </tr>
  4904. </table>
  4905. <table>
  4906. <tr>
  4907. <th class="command">living.clearEffects</th>
  4908. <th class="desc">removes all effects from a living entity</th>
  4909. </tr>
  4910. <tr>
  4911. <td class="bold">Format</td>
  4912. <td>living.clearEffects(living_entity)</td>
  4913. </tr>
  4914. </table>
  4915. <table>
  4916. <tr>
  4917. <th class="command">living.getEffectAmplifier</th>
  4918. <th class="desc">returns the amplifier (effect level), -1 if not existing</th>
  4919. </tr>
  4920. <tr>
  4921. <td class="bold">Format</td>
  4922. <td>living.getEffectAmplifier(entity, <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/potion/PotionEffectType.html" target="_blank">effect</a>)</td>
  4923. </tr>
  4924. </table>
  4925. </section>
  4926. <section id="Particle">
  4927. <table>
  4928. <tr>
  4929. <th class="command">particle.get</th>
  4930. <th class="desc">returns a particle</th>
  4931. </tr>
  4932. <tr>
  4933. <td class="bold">Format</td>
  4934. <td>particle.get(<a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Particle.html" target="_blank">name</a>)</td>
  4935. </tr>
  4936. </table>
  4937. <table>
  4938. <tr>
  4939. <th class="command">particle.getAll</th>
  4940. <th class="desc">returns an array of all particles</th>
  4941. </tr>
  4942. <tr>
  4943. <td class="bold">Format</td>
  4944. <td>particle.getAll()</td>
  4945. </tr>
  4946. </table>
  4947. <table>
  4948. <tr>
  4949. <th class="command">particle.spawn</th>
  4950. <th class="desc">spawns a particle</th>
  4951. </tr>
  4952. <tr>
  4953. <td class="bold">Format</td>
  4954. <td>particle.spawn(location, particle, [count | 1], [speed | 0.0], [offX | 0.0], [offY | 0.0], [offZ | 0.0])</td>
  4955. </tr>
  4956. </table>
  4957. <table>
  4958. <tr>
  4959. <th class="command">particle.spawnPlayer</th>
  4960. <th class="desc">spawns a particle</th>
  4961. </tr>
  4962. <tr>
  4963. <td class="bold">Format</td>
  4964. <td>particle.spawnPlayer(location, particle, player, [count | 1], [speed | 0.0], [offX | 0.0], [offY | 0.0], [offZ | 0.0])</td>
  4965. </tr>
  4966. </table>
  4967. </section>
  4968. <section id="Sound">
  4969. <table>
  4970. <tr>
  4971. <th class="command">sound.get</th>
  4972. <th class="desc">returns a sound</th>
  4973. </tr>
  4974. <tr>
  4975. <td class="bold">Format</td>
  4976. <td>sound.get(<a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/Sound.html" target="_blank">name</a>)</td>
  4977. </tr>
  4978. </table>
  4979. <table>
  4980. <tr>
  4981. <th class="command">sound.getCategory</th>
  4982. <th class="desc">returns a sound category</th>
  4983. </tr>
  4984. <tr>
  4985. <td class="bold">Format</td>
  4986. <td>sound.getCategory(<a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/SoundCategory.html" target="_blank">name</a>)</td>
  4987. </tr>
  4988. </table>
  4989. <table>
  4990. <tr>
  4991. <th class="command">sound.spawn</th>
  4992. <th class="desc">plays a sound</th>
  4993. </tr>
  4994. <tr>
  4995. <td class="bold">Format</td>
  4996. <td>sound.spawn(location, sound, sound_category, [volume | 1.0], [pitch | random from 0.9 to 1.0])</td>
  4997. </tr>
  4998. </table>
  4999. <table>
  5000. <tr>
  5001. <th class="command">sound.spawnForPlayer</th>
  5002. <th class="desc">plays a sound for a player</th>
  5003. </tr>
  5004. <tr>
  5005. <td class="bold">Format</td>
  5006. <td>sound.spawnForPlayer(player, sound, sound_category, [volume | 1.0], [pitch | random from 0.9 to 1.0])</td>
  5007. </tr>
  5008. </table>
  5009. </section>
  5010. <section id="Shop">
  5011. <table>
  5012. <tr>
  5013. <th class="command">shop.new</th>
  5014. <th class="desc">returns a new shop</th>
  5015. </tr>
  5016. <tr>
  5017. <td class="bold">Format</td>
  5018. <td>shop.new(text)</td>
  5019. </tr>
  5020. </table>
  5021. <table>
  5022. <tr>
  5023. <th class="command">shop.addOffer</th>
  5024. <th class="desc">adds an offer to a shop</th>
  5025. </tr>
  5026. <tr>
  5027. <td class="bold">Format</td>
  5028. <td>shop.addOffer(shop, buy_item, sell_item, max_uses)</td>
  5029. </tr>
  5030. </table>
  5031. <table>
  5032. <tr>
  5033. <th class="command">shop.addDoubleOffer</th>
  5034. <th class="desc">adds a double offer to a shop</th>
  5035. </tr>
  5036. <tr>
  5037. <td class="bold">Format</td>
  5038. <td>shop.addDoubleOffer(shop, buy_item_1, buy_item_2, sell_item, max_uses)</td>
  5039. </tr>
  5040. </table>
  5041. <table>
  5042. <tr>
  5043. <th class="command">shop.open</th>
  5044. <th class="desc">shows a shop to a player</th>
  5045. </tr>
  5046. <tr>
  5047. <td class="bold">Format</td>
  5048. <td>shop.open(shop, player)</td>
  5049. </tr>
  5050. </table>
  5051. </section>
  5052. <section id="Boss">
  5053. <table>
  5054. <tr>
  5055. <th class="command">boss.create</th>
  5056. <th class="desc">returns a bossbar</th>
  5057. </tr>
  5058. <tr>
  5059. <td class="bold">Format</td>
  5060. <td>boss.create(title, color, barstyle)</td>
  5061. </tr>
  5062. <tr>
  5063. <td class="bold">Arguments</td>
  5064. <td>
  5065. title as string<br>
  5066. <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/boss/BarColor.html" target="_blank">color</a> as string<br>
  5067. <a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/boss/BarStyle.html" target="_blank">barstyle</a> as string
  5068. </td>
  5069. </tr>
  5070. </table>
  5071. <table>
  5072. <tr>
  5073. <th class="command">boss.addPlayer</th>
  5074. <th class="desc">add a player to the bossbar</th>
  5075. </tr>
  5076. <tr>
  5077. <td class="bold">Format</td>
  5078. <td>boss.addPlayer(bossbar, player)</td>
  5079. </tr>
  5080. </table>
  5081. <table>
  5082. <tr>
  5083. <th class="command">boss.removePlayer</th>
  5084. <th class="desc">remove a player from the bossbar</th>
  5085. </tr>
  5086. <tr>
  5087. <td class="bold">Format</td>
  5088. <td>boss.removePlayer(bossbar, player)</td>
  5089. </tr>
  5090. </table>
  5091. <table>
  5092. <tr>
  5093. <th class="command">boss.removeAll</th>
  5094. <th class="desc">remove all players from the bossbar</th>
  5095. </tr>
  5096. <tr>
  5097. <td class="bold">Format</td>
  5098. <td>boss.removeAll(bossbar)</td>
  5099. </tr>
  5100. </table>
  5101. <table>
  5102. <tr>
  5103. <th class="command">boss.addFlag</th>
  5104. <th class="desc">adds a flag to the bossbar</th>
  5105. </tr>
  5106. <tr>
  5107. <td class="bold">Format</td>
  5108. <td>boss.addFlag(bossbar, flag)</td>
  5109. </tr>
  5110. <tr>
  5111. <td class="bold">Arguments</td>
  5112. <td><a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/boss/BarFlag.html" target="_blank">flag</a> as string</td>
  5113. </tr>
  5114. </table>
  5115. <table>
  5116. <tr>
  5117. <th class="command">boss.removeFlag</th>
  5118. <th class="desc">removes a flag from the bossbar</th>
  5119. </tr>
  5120. <tr>
  5121. <td class="bold">Format</td>
  5122. <td>boss.removeFlag(bossbar, flag)</td>
  5123. </tr>
  5124. <tr>
  5125. <td class="bold">Arguments</td>
  5126. <td><a href="https://papermc.io/javadocs/paper/1.20/org/bukkit/boss/BarFlag.html" target="_blank">flag</a> as string</td>
  5127. </tr>
  5128. </table>
  5129. <table>
  5130. <tr>
  5131. <th class="command">boss.setTitle</th>
  5132. <th class="desc">sets the title for the bossbar</th>
  5133. </tr>
  5134. <tr>
  5135. <td class="bold">Format</td>
  5136. <td>boss.setTitle(bossbar, string)</td>
  5137. </tr>
  5138. </table>
  5139. <table>
  5140. <tr>
  5141. <th class="command">boss.setProgress</th>
  5142. <th class="desc">sets the progress of the bossbar</th>
  5143. </tr>
  5144. <tr>
  5145. <td class="bold">Format</td>
  5146. <td>boss.setProgress(bossbar, double)</td>
  5147. </tr>
  5148. <tr>
  5149. <td class="bold">Arguments</td>
  5150. <td>double from 0 to 1</td>
  5151. </tr>
  5152. </table>
  5153. </section>
  5154. <section id="Whitelist">
  5155. <table>
  5156. <tr>
  5157. <th class="command">whitelist.enable</th>
  5158. <th class="desc">enables the whitelist</th>
  5159. </tr>
  5160. <tr>
  5161. <td class="bold">Format</td>
  5162. <td>whitelist.enable()</td>
  5163. </tr>
  5164. </table>
  5165. <table>
  5166. <tr>
  5167. <th class="command">whitelist.disable</th>
  5168. <th class="desc">disables the whitelist</th>
  5169. </tr>
  5170. <tr>
  5171. <td class="bold">Format</td>
  5172. <td>whitelist.disable()</td>
  5173. </tr>
  5174. </table>
  5175. <table>
  5176. <tr>
  5177. <th class="command">whitelist.add</th>
  5178. <th class="desc">adds a player to the whitelist</th>
  5179. </tr>
  5180. <tr>
  5181. <td class="bold">Format</td>
  5182. <td>whitelist.add(uuid / uuid_string / player)</td>
  5183. </tr>
  5184. </table>
  5185. <table>
  5186. <tr>
  5187. <th class="command">whitelist.remove</th>
  5188. <th class="desc">removes a player from the whitelist</th>
  5189. </tr>
  5190. <tr>
  5191. <td class="bold">Format</td>
  5192. <td>whitelist.remove(uuid / uuid_string / player)</td>
  5193. </tr>
  5194. </table>
  5195. <table>
  5196. <tr>
  5197. <th class="command">whitelist.clear</th>
  5198. <th class="desc">clears the whitelist</th>
  5199. </tr>
  5200. <tr>
  5201. <td class="bold">Format</td>
  5202. <td>whitelist.clear()</td>
  5203. </tr>
  5204. </table>
  5205. </section>
  5206. <section id="Armorstand">
  5207. <table>
  5208. <tr>
  5209. <th class="command">as.getBodyPose</th>
  5210. <th class="desc">returns the body pose of an armor stand</th>
  5211. </tr>
  5212. <tr>
  5213. <td class="bold">Format</td>
  5214. <td>as.getBodyPose(armor_stand)</td>
  5215. </tr>
  5216. </table>
  5217. <table>
  5218. <tr>
  5219. <th class="command">as.getHeadPose</th>
  5220. <th class="desc">returns the head pose of an armor stand</th>
  5221. </tr>
  5222. <tr>
  5223. <td class="bold">Format</td>
  5224. <td>as.getHeadPose(armor_stand)</td>
  5225. </tr>
  5226. </table>
  5227. <table>
  5228. <tr>
  5229. <th class="command">as.getLeftArmPose</th>
  5230. <th class="desc">returns the left arm pose of an armor stand</th>
  5231. </tr>
  5232. <tr>
  5233. <td class="bold">Format</td>
  5234. <td>as.getLeftArmPose(armor_stand)</td>
  5235. </tr>
  5236. </table>
  5237. <table>
  5238. <tr>
  5239. <th class="command">as.getRightArmPose</th>
  5240. <th class="desc">returns the right arm pose of an armor stand</th>
  5241. </tr>
  5242. <tr>
  5243. <td class="bold">Format</td>
  5244. <td>as.getRightArmPose(armor_stand)</td>
  5245. </tr>
  5246. </table>
  5247. <table>
  5248. <tr>
  5249. <th class="command">as.getLeftLegPose</th>
  5250. <th class="desc">returns the left leg pose of an armor stand</th>
  5251. </tr>
  5252. <tr>
  5253. <td class="bold">Format</td>
  5254. <td>as.getLeftLegPose(armor_stand)</td>
  5255. </tr>
  5256. </table>
  5257. <table>
  5258. <tr>
  5259. <th class="command">as.getRightLegPose</th>
  5260. <th class="desc">returns the right leg pose of an armor stand</th>
  5261. </tr>
  5262. <tr>
  5263. <td class="bold">Format</td>
  5264. <td>as.getRightLegPose(armor_stand)</td>
  5265. </tr>
  5266. </table>
  5267. <table>
  5268. <tr>
  5269. <th class="command">as.hasArms</th>
  5270. <th class="desc">returns true if an armor stand has arms</th>
  5271. </tr>
  5272. <tr>
  5273. <td class="bold">Format</td>
  5274. <td>as.hasArms(armor_stand)</td>
  5275. </tr>
  5276. </table>
  5277. <table>
  5278. <tr>
  5279. <th class="command">as.hasBasePlate</th>
  5280. <th class="desc">returns true if an armor stand has a base plate</th>
  5281. </tr>
  5282. <tr>
  5283. <td class="bold">Format</td>
  5284. <td>as.hasBasePlate(armor_stand)</td>
  5285. </tr>
  5286. </table>
  5287. <table>
  5288. <tr>
  5289. <th class="command">as.isMarker</th>
  5290. <th class="desc">returns true if an armor stand is a marker</th>
  5291. </tr>
  5292. <tr>
  5293. <td class="bold">Format</td>
  5294. <td>as.isMarker(armor_stand)</td>
  5295. </tr>
  5296. </table>
  5297. <table>
  5298. <tr>
  5299. <th class="command">as.isSmall</th>
  5300. <th class="desc">returns true if an armor stand is small</th>
  5301. </tr>
  5302. <tr>
  5303. <td class="bold">Format</td>
  5304. <td>as.isSmall(armor_stand)</td>
  5305. </tr>
  5306. </table>
  5307. <table>
  5308. <tr>
  5309. <th class="command">as.setArms</th>
  5310. <th class="desc">sets that an armor stand can have arms</th>
  5311. </tr>
  5312. <tr>
  5313. <td class="bold">Format</td>
  5314. <td>as.setArms(armor_stand, boolean)</td>
  5315. </tr>
  5316. </table>
  5317. <table>
  5318. <tr>
  5319. <th class="command">as.setBasePlate</th>
  5320. <th class="desc">sets that an armor stand can have a base plate</th>
  5321. </tr>
  5322. <tr>
  5323. <td class="bold">Format</td>
  5324. <td>as.setBasePlate(armor_stand, boolean)</td>
  5325. </tr>
  5326. </table>
  5327. <table>
  5328. <tr>
  5329. <th class="command">as.setMarker</th>
  5330. <th class="desc">sets that an armor stand can be a marker</th>
  5331. </tr>
  5332. <tr>
  5333. <td class="bold">Format</td>
  5334. <td>as.setMarker(armor_stand, boolean)</td>
  5335. </tr>
  5336. </table>
  5337. <table>
  5338. <tr>
  5339. <th class="command">as.setSmall</th>
  5340. <th class="desc">sets that an armor stand is small</th>
  5341. </tr>
  5342. <tr>
  5343. <td class="bold">Format</td>
  5344. <td>as.setSmall(armor_stand, boolean)</td>
  5345. </tr>
  5346. </table>
  5347. <table>
  5348. <tr>
  5349. <th class="command">as.canMove</th>
  5350. <th class="desc">sets that an armor stand can move</th>
  5351. </tr>
  5352. <tr>
  5353. <td class="bold">Format</td>
  5354. <td>as.canMove(armor_stand, boolean)</td>
  5355. </tr>
  5356. </table>
  5357. <table>
  5358. <tr>
  5359. <th class="command">as.canTick</th>
  5360. <th class="desc">sets that an armor stand can tick</th>
  5361. </tr>
  5362. <tr>
  5363. <td class="bold">Format</td>
  5364. <td>as.canTick(armor_stand, boolean)</td>
  5365. </tr>
  5366. </table>
  5367. <table>
  5368. <tr>
  5369. <th class="command">as.setBodyPose</th>
  5370. <th class="desc">sets the body pose of an armor stand</th>
  5371. </tr>
  5372. <tr>
  5373. <td class="bold">Format</td>
  5374. <td>as.setBodyPose(armor_stand, euler_angle)</td>
  5375. </tr>
  5376. </table>
  5377. <table>
  5378. <tr>
  5379. <th class="command">as.setHeadPose</th>
  5380. <th class="desc">sets the head pose of an armor stand</th>
  5381. </tr>
  5382. <tr>
  5383. <td class="bold">Format</td>
  5384. <td>as.setHeadPose(armor_stand, euler_angle)</td>
  5385. </tr>
  5386. </table>
  5387. <table>
  5388. <tr>
  5389. <th class="command">as.setLeftArmPose</th>
  5390. <th class="desc">sets the left arm pose of an armor stand</th>
  5391. </tr>
  5392. <tr>
  5393. <td class="bold">Format</td>
  5394. <td>as.setLeftArmPose(armor_stand, euler_angle)</td>
  5395. </tr>
  5396. </table>
  5397. <table>
  5398. <tr>
  5399. <th class="command">as.setRightArmPose</th>
  5400. <th class="desc">sets the right arm pose of an armor stand</th>
  5401. </tr>
  5402. <tr>
  5403. <td class="bold">Format</td>
  5404. <td>as.setRightArmPose(armor_stand, euler_angle)</td>
  5405. </tr>
  5406. </table>
  5407. <table>
  5408. <tr>
  5409. <th class="command">as.setLeftLegPose</th>
  5410. <th class="desc">sets the left leg pose of an armor stand</th>
  5411. </tr>
  5412. <tr>
  5413. <td class="bold">Format</td>
  5414. <td>as.setLeftLegPose(armor_stand, euler_angle)</td>
  5415. </tr>
  5416. </table>
  5417. <table>
  5418. <tr>
  5419. <th class="command">as.setRightLegPose</th>
  5420. <th class="desc">sets the right leg pose of an armor stand</th>
  5421. </tr>
  5422. <tr>
  5423. <td class="bold">Format</td>
  5424. <td>as.setRightLegPose(armor_stand, euler_angle)</td>
  5425. </tr>
  5426. </table>
  5427. <table>
  5428. <tr>
  5429. <th class="command">euler.new</th>
  5430. <th class="desc">returns a new created euler angle</th>
  5431. </tr>
  5432. <tr>
  5433. <td class="bold">Format</td>
  5434. <td>euler.new(x, y, z)</td>
  5435. </tr>
  5436. </table>
  5437. <table>
  5438. <tr>
  5439. <th class="command">euler.getX</th>
  5440. <th class="desc">returns the x angle of an euler angle</th>
  5441. </tr>
  5442. <tr>
  5443. <td class="bold">Format</td>
  5444. <td>euler.getX(euler_angle)</td>
  5445. </tr>
  5446. </table>
  5447. <table>
  5448. <tr>
  5449. <th class="command">euler.getY</th>
  5450. <th class="desc">returns the y angle of an euler angle</th>
  5451. </tr>
  5452. <tr>
  5453. <td class="bold">Format</td>
  5454. <td>euler.getY(euler_angle)</td>
  5455. </tr>
  5456. </table>
  5457. <table>
  5458. <tr>
  5459. <th class="command">euler.getZ</th>
  5460. <th class="desc">returns the z angle of an euler angle</th>
  5461. </tr>
  5462. <tr>
  5463. <td class="bold">Format</td>
  5464. <td>euler.getZ(euler_angle)</td>
  5465. </tr>
  5466. </table>
  5467. <table>
  5468. <tr>
  5469. <th class="command">euler.setX</th>
  5470. <th class="desc">sets the x angle of an euler angle</th>
  5471. </tr>
  5472. <tr>
  5473. <td class="bold">Format</td>
  5474. <td>euler.setX(euler_angle, value)</td>
  5475. </tr>
  5476. </table>
  5477. <table>
  5478. <tr>
  5479. <th class="command">euler.setY</th>
  5480. <th class="desc">sets the y angle of an euler angle</th>
  5481. </tr>
  5482. <tr>
  5483. <td class="bold">Format</td>
  5484. <td>euler.setY(euler_angle, value)</td>
  5485. </tr>
  5486. </table>
  5487. <table>
  5488. <tr>
  5489. <th class="command">euler.setZ</th>
  5490. <th class="desc">sets the z angle of an euler angle</th>
  5491. </tr>
  5492. <tr>
  5493. <td class="bold">Format</td>
  5494. <td>euler.setZ(euler_angle, value)</td>
  5495. </tr>
  5496. </table>
  5497. </section>