1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993 |
- <section id="Event-List">
- <table>
- <tr>
- <th class="command"></th>
- <th class="desc">footnote</th>
- </tr>
- <tr>
- <td class="bold">*</td>
- <td>writable</td>
- </tr>
- <tr>
- <td class="bold">**</td>
- <td>can be null</td>
- </tr>
- <tr>
- <td class="bold">receiver</td>
- <td>"dev" / "online" / "SERVER" / player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_hurt</th>
- <th class="desc">an entity gets hurt</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>damage_source<br>*damage_amount<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_heal</th>
- <th class="desc">an entity gets healed</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>*heal_amount<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_death</th>
- <th class="desc">an entity dies</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>damage_source<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_drop</th>
- <th class="desc">a destroyed block drops something</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>**entity<br>**item<br>location<br>block<br>block_type<br>*drops with item-entities as list</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_experience_drop</th>
- <th class="desc">an entity dies and drops exp</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>*experience<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_drop</th>
- <th class="desc">an entity dies and drops something</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>damage_source<br>*drops with item-entities as list<br>looting (as double)<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_click</th>
- <th class="desc">an entity gets right_clicked</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>entity<br>hand ("MAIN_HAND", "OFF_HAND")<br>*cancel</td>
- </tr>
- </table>
- </table>
- <table>
- <tr>
- <th class="command">entity_join</th>
- <th class="desc">an entity spawns</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_leave</th>
- <th class="desc">an entity despawns</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">animal_tame</th>
- <th class="desc">an entity gets tamed</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>animal<br>tamer<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_mount</th>
- <th class="desc">an entity (dis)mounts another entity</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>rider<br>entity<br>mounting as boolean<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_login</th>
- <th class="desc">a player joins the server</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_logout</th>
- <th class="desc">a player leaves the server</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_pre_respawn</th>
- <th class="desc">the players will respawn</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>devs can set the spawn-location on this event</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_post_respawn</th>
- <th class="desc">the players has respawned</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>devs can refill the inventory on this event</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_pre_hurt</th>
- <th class="desc">an entity gets hurt (event is thrown before living_hurt and cancels damage-animation and knockback)</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>damage_source<br>*damage_amount<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_jump</th>
- <th class="desc">an entity jumps</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_sneak</th>
- <th class="desc">a player sneaks</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>sneak as boolean</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">mob_griefing</th>
- <th class="desc">an entity destroys the world</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_toss</th>
- <th class="desc">a player tosses an item</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>item<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_pickup</th>
- <th class="desc">a player picks up an item</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>entity (item)<br>item<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_move</th>
- <th class="desc">a player moves in an before defined area</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>id</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_break</th>
- <th class="desc">a block is broken</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>block as object<br>block_loc<br>block_type (e.g. "minecraft:wool", "km:artefact")<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_place</th>
- <th class="desc">a block is placed</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>block as object<br>block_loc<br>block_type</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_click</th>
- <th class="desc">a block gets clicked</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>block as object<br>block_loc<br>block_type<br>action ("left", "right")<br>hand ("MAIN_HAND", "OFF_HAND")<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bucket_use</th>
- <th class="desc">a bucket is filled / vacated</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>has_block as boolean<br>**block<br>**block_loc<br>**block_type<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv_click</th>
- <th class="desc">a slot in an inventory gets clicked</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>item<br>inv<br>inv_name<br>inv_slot as number<br>inv_id<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv_close</th>
- <th class="desc">an inventory gets closed</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>inv<br>inv_id<br>inv_name</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item_use_start</th>
- <th class="desc">an item gets started to be used with rightclick</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>item<br>duration as number<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item_use_finish</th>
- <th class="desc">an item gets finished to be used with rightclick</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>living_entity<br>item<br>result (result item)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">craft</th>
- <th class="desc">a player crafts an item</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>*result</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">portal</th>
- <th class="desc">a player switches the world</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>from world as string<br>to world as string</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">fishing</th>
- <th class="desc">a player fishes something</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>rod_damage<br>hook (entity)<br>*drops with itemstacks as list<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command</th>
- <th class="desc">a player uses a vanilla command</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>command as string<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">custom_command</th>
- <th class="desc">a player (or console) uses a custom-command</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player (null if console)<br>player_name (null if console) (deprecated)<br>command as string<br>args as list</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">chat</th>
- <th class="desc">a player writes into chat</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>message as string<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">projectile_hit</th>
- <th class="desc">a thrown projectile hits a block or an entity</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>shooter<br>projectile<br>**entity_hit (=hitted entity)<br>**loc_hit (=hitted location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item_hit</th>
- <th class="desc">the item thrown with living.shootProjectile() hits a block or an entity</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>shooter<br>projectile (=thrown entity)<br>item<br>**entity_hit (=hitted entity)<br>**loc_hit (=hitted location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item_air_click</th>
- <th class="desc">a player makes a rightclick into air with an item</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>hand ("MAIN_HAND", "OFF_HAND")<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">left_click_air</th>
- <th class="desc">a player makes a leftclick into air</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">function_key</th>
- <th class="desc">a player pushes one of the mod-functional-keys</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>key as number from 1 to 9<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">human_hurt</th>
- <th class="desc">an entity beats a human</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>entity<br>human</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pre_explosion</th>
- <th class="desc">explosions are cancelled on default</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>location<br>damage_source<br>*cancel|true</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">explosion</th>
- <th class="desc">explosion</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>location<br>damage_source<br>*affected_blocks as list with BlockPos<br>affected_entities as list</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">missing_command</th>
- <th class="desc">a player uses an non-existing command</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>**player<br>**player_name (deprecated)<br>command_name<br>sender_name</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">missing_perm</th>
- <th class="desc">a player has no permissions for a used command</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>**player<br>**player_name (deprecated)<br>command_name<br>sender_name</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_data_tick</th>
- <th class="desc">thrown if timer from data.setTimer reached 0</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)<br>var</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_elytra_start</th>
- <th class="desc">thrown if a player starts using an elytra</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_elytra_stop</th>
- <th class="desc">thrown if a player stops using an elytra</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>player<br>player_name (deprecated)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world_load</th>
- <th class="desc">a world gets loaded</th>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>world</td>
- </tr>
- </table>
- </section>
- <section id="Event">
- <table>
- <tr>
- <th class="command">event.addMoveData</th>
- <th class="desc">defines an area for player_move event and returns the move_id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.addMoveData(location1, location2, cooldown, livingtime, [uuid / string_uuid / player])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- cooldown: -1 terminated after a single trigger<br>
- cooldown: > 0 clock rate in Ticks. no termination<br>
- livingtime: -1 area lives forever<br>
- livingtime: > 0 stays amount of ticks alive<br>
- player / uuid: event only triggers for this player
- </td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>on script termination this area will be removed</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">event.removeMoveData</th>
- <th class="desc">removes a defined area for player_move event</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.removeMoveData(id)</td>
- </tr>
- </table>
- </section>
- <section id="Ban">
- <table>
- <tr>
- <th class="command">ban.add</th>
- <th class="desc">bans a player from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.add(uuid / string_uuid / player, reason, banner, [end_date])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- reason as string<br>
- banner as string (the person who bans, almost you can write in here what you want)<br>
- end_date as calendar object
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ban.remove</th>
- <th class="desc">unbans a player from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.remove(uuid / string_uuid / player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ban.kick</th>
- <th class="desc">kicks a player from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.kick(player, reason)</td>
- </tr>
- </table>
- </section>
- <section id="Block">
- <table>
- <tr>
- <th class="command">block.set</th>
- <th class="desc">set a block at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.set(location, ItemString, [boolean|false])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true places without block update</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>block.set(loc, "km:apricot_leaves")<br>block.set(loc, "minecraft:oak_log[axis=x]")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.clone</th>
- <th class="desc">clone a block from a location to another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.clone(from-location, to-location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setSpawnerType</th>
- <th class="desc">sets the spawnertype</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setSpawnerType(location, entity_class)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setSign</th>
- <th class="desc">set text on a sign and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setSign(location, row, text)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>block.setSign(row: 0 to 3)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getSign</th>
- <th class="desc">returns the text of a sign from a specific row or null if block is no sign</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getSign(location, row)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>block.setSign(row: 0 to 3)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.addItem</th>
- <th class="desc">adds an itemstack to a container</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.addItem(location, itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the modified original itemstack that has not fit in. air itemstack if done perfectly</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.subItem</th>
- <th class="desc">removes an itemstack from a container</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.subItem(location, itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the modified original itemstack that could not be removed. air itemstack if done perfectly</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.get</th>
- <th class="desc">returns a block object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.get(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getSecChest</th>
- <th class="desc">returns the second location of a doublechest</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getSecChest(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getInv</th>
- <th class="desc">returns the (non-copy) inventory of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getInv(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getType</th>
- <th class="desc">returns the type of a block at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getType(location)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>returns "minecraft:wool" / "km:artefact"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.toStack</th>
- <th class="desc">returns an itemstack from a block at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.toStack(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getItemAmount</th>
- <th class="desc">returns the amount from a specific itemtype in an container</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getItemAmount(location, boolean, itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>false means exact itemstack</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setDoorStatus</th>
- <th class="desc">true opens a door</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setDoorStatus(location, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getDoorStatus</th>
- <th class="desc">returns true if the door is open</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getDoorStatus(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setTrapdoorStatus</th>
- <th class="desc">true opens a trapdoor</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setTrapdoorStatus(location, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getTrapdoorStatus</th>
- <th class="desc">returns true if the trapdoor is open</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getTrapdoorStatus(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isAir</th>
- <th class="desc">returns true if the block at the location is an air block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isAir(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.countAir</th>
- <th class="desc">returns the amount of air blocks a location surrounded with</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.countAir(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isSolid</th>
- <th class="desc">returns true if the block is solid</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isSolid(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getTag</th>
- <th class="desc">returns a tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getTag(String tag_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.hasTag</th>
- <th class="desc">returns true if a block has a tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.hasTag(tag, Block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getProperties</th>
- <th class="desc">returns a collection of properties</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getProperties(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getProperty</th>
- <th class="desc">returns a property</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getProperty(String property_name)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>some properties has to be renamed. look here: <a href="https://git.hammerle.me/kjhammerle/minecraft-kajetans-mod/src/master/src/main/java/me/km/utils/Mapper.java" target="_blank">me.km.utils.Mapper</a></td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.property.getValue</th>
- <th class="desc">returns the value of a property as double, string or boolean, demanding on the property</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.property.getValue(location, property)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.property.setInt</th>
- <th class="desc">sets the value of a property</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.property.setInt(location, property, int)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.property.setBool</th>
- <th class="desc">sets the value of a property</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.property.setBool(location, property, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.property.setEnum</th>
- <th class="desc">sets the value of a property</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.property.setEnum(location, property, string))</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setState</th>
- <th class="desc">sets the state of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setState(location, state, [boolean])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.newState</th>
- <th class="desc">creates a block state</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.newState(state)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>block.newState("minecraft:stone")</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>returns null if invalid state</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.break</th>
- <th class="desc">breaks a block and drops the item</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.break(location, entity)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>entity can be null</td>
- </tr>
- </table>
- </section>
- <section id="Databank">
- <table>
- <tr>
- <th class="command">databank.prepare</th>
- <th class="desc">returns the prepared statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.prepare(sql-query, [boolean autoclose|true])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setInt</th>
- <th class="desc">sets an int into a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setInt(statement, index, int)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setDouble</th>
- <th class="desc">sets a double into a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setDouble(statement, index, double)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setLong</th>
- <th class="desc">sets a long into a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setLong(statement, index, long)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setString</th>
- <th class="desc">sets a string into a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setString(statement, index, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setBool</th>
- <th class="desc">sets a boolean into a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setBool(statement, index, boolean)</td>
- </tr>
- </table>
-
- <table>
- <tr>
- <th class="command">databank.getInt</th>
- <th class="desc">returns an int from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getInt(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getDouble</th>
- <th class="desc">returns a double from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getDouble(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getLong</th>
- <th class="desc">returns a long from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getLong(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getString</th>
- <th class="desc">returns a string from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getString(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getBool</th>
- <th class="desc">returns a boolean from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getBool(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.execute</th>
- <th class="desc">returns a result-set after executing the statement (for all reading queries like SHOW, SELECT)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.execute(statement)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.workerExecute</th>
- <th class="desc">executing the statement (for all writing queries like UPDATE, DELETE, CREATE, INSERT, DROP)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.workerExecute(statement)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.next</th>
- <th class="desc">returns true and jumps to the next entry if the result-set has a next entry</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.next(result-set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.close</th>
- <th class="desc">manual closing of a result-set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.close(result-set)</td>
- </tr>
- </table>
- </section>
- <section id="Config">
- <table>
- <tr>
- <th class="command">config.saveAsync</th>
- <th class="desc">saves a config asynchronous</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.saveAsync(config)</td>
- </tr>
- </table>
- </section>
- <section id="Gamerule">
- <table>
- <tr>
- <th class="command">gamerule.getKey</th>
- <th class="desc">returns the gamerule_key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.getKey(gamerule_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.getValue</th>
- <th class="desc">return the gamerule_value from a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.getValue(world, gamerule_key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.isBool</th>
- <th class="desc">returns true if the value is a boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.isBool(gamerule_value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.isInt</th>
- <th class="desc">returns true if the value is an integer</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.isInt(gamerule_value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.getBool</th>
- <th class="desc">returns the gamerule_value as boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.getBool(gamerule_value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.getInt</th>
- <th class="desc">returns the gamerule_value as integer</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.getInt(gamerule_value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.setBool</th>
- <th class="desc">sets a gamerule_value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.setBool(gamerule_value, boolean)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>Gamerules in other worlds than the overworld are not persistent.</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.setInt</th>
- <th class="desc">sets a gamerule_value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.setInt(gamerule_value, value)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>Gamerules in other worlds than the overworld are not persistent.</td>
- </tr>
- </table>
- </table>
- </section>
- <section id="General">
- <table>
- <tr>
- <th class="command">msg</th>
- <th class="desc">sends a message</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>msg(receiver, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">print</th>
- <th class="desc">prints a text for devs</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>print(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command</th>
- <th class="desc">executes a Minecraft command from console</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command(minecraft command syntax as string without /)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">worker.hasWork</th>
- <th class="desc">returns true if the worker is working</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>worker.hasWork()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isPlayer</th>
- <th class="desc">returns true if the argument is a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isPlayer(anything)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isLiving</th>
- <th class="desc">returns true if the argument is a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isLiving(anything)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">setMOTD</th>
- <th class="desc">sets the server text in the server list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>setMOTD(text)</td>
- </tr>
- </table>
- </section>
- <section id="Item">
- <table>
- <tr>
- <th class="command">item.drop</th>
- <th class="desc">drops an itemstack at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.drop(location, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.get</th>
- <th class="desc">returns an item as object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.get(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getType</th>
- <th class="desc">returns the type of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getType(itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>"minecraft:wool" / "km:artefact"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getAmount</th>
- <th class="desc">returns the amount of items in an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getAmount(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setAmount</th>
- <th class="desc">sets the amount of items for an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setAmount(itemstack, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getName</th>
- <th class="desc">returns the name of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getName(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setName</th>
- <th class="desc">sets the name of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setName(itemstack, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getLore</th>
- <th class="desc">returns a list with all lores of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getLore(ItemStack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setLore</th>
- <th class="desc">sets the lore for an itemstack with the elements in the list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setLore(itemstack, List)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addLore</th>
- <th class="desc">sets the lore for an itemstack for a specific row</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addLore(itemstack, lore, row)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addAttribute</th>
- <th class="desc">adds an attribute to an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addAttribute(itemstack, attribute, slot, double, operation)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>
- attributes: generic.max_health, generic.follow_range, generic.knockback_resistance, generic.movement_speed, generic.flying_speed, generic.attack_damage, generic.attack_damage, generic.attack_knockback, generic.attack_speed, generic.armor, generic.armor_toughness, generic.luck, zombie.spawn_reinforcements, horse.jump_strength<br>
- slots: mainhand, offhand, head, chest, legs, feet<br>
- operation: 0 (ADDITION), 1 (MULTIPLY_BASE), 2 (MULTIPLY_TOTAL)
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.hide</th>
- <th class="desc">hides something on an itemstack and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.hide(itemstack, name)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>name: "enchantments" / "attributes" / "unbreakable" / "destroys" / "placed_on" / "potion_effects"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addPotion</th>
- <th class="desc">unknown</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addPotion(itemstack, potion_name, duration, power)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setCoolDown</th>
- <th class="desc">sets the cooldown for an item-type</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setCoolDown(player, itemstack, ticks)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.clone</th>
- <th class="desc">returns a copy of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.clone(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getTag</th>
- <th class="desc">returns a tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getTag(String tag_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.hasTag</th>
- <th class="desc">returns true if an itemstack has a tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.hasTag(tag, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.hasName</th>
- <th class="desc">returns true if the itemstack has a modified name</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.hasName(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getFullText</th>
- <th class="desc">returns the full text object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getFullText(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.isDamageable</th>
- <th class="desc">returns true if the itemstack is damageable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.isDamageable(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getMaxDamage</th>
- <th class="desc">returns the maximum damage the itemstack can get</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getMaxDamage(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setDamage</th>
- <th class="desc">sets the damage of the itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setDamage(itemstack, amount)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getMaxAmount</th>
- <th class="desc">returns the maximum amount of stackable items</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getMaxAmount(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.get</th>
- <th class="desc">returns an itemstack from an item-entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.get(item-entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.set</th>
- <th class="desc">sets an itemstack to an item-entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.set(item-entity, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.new</th>
- <th class="desc">creates an item-entity from an itemstack and returns the item-entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.new(location, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.spawn</th>
- <th class="desc">spawns an item-entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.spawn(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.setLifespan</th>
- <th class="desc">sets the lifespan of an item-entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.setLifespan(item-entity, ticks)</td>
- </tr>
- </table>
- </section>
- <section id="Enchantment">
- <table>
- <tr>
- <th class="command">enchantment.get</th>
- <th class="desc">returns an enchantment</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.get(enchantment_string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td><a href="https://minecraft-de.gamepedia.com/Verzauberung#Verzauberungen" target="_blank">Minecraft Wiki Verzauberungen</a> (ID-Name verwenden)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.add</th>
- <th class="desc">adds an enchantment to an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.add(enchantment, itemstack, level)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.getLevel</th>
- <th class="desc">returns the level of an enchantment an itemstack has</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.getLevel(enchantment, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.readFromItem</th>
- <th class="desc">returns a map with all enchantments from an item with the level as value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.readFromItem(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.writeToItem</th>
- <th class="desc">transfers all enchantments from the map on the itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.writeToItem(map, itemstack)</td>
- </tr>
- </table>
- </section>
- <section id="Error">
- <table>
- <tr>
- <th class="command">error.clear</th>
- <th class="desc">clears all cached errors</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.getSize</th>
- <th class="desc">returns the amount of all cached errors</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.getSize()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.getIndex</th>
- <th class="desc">returns the error from an index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.getIndex(index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.setConsolePrint</th>
- <th class="desc">true prints snuvi errors on console (not stack traces)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.setConsolePrint(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.clear</th>
- <th class="desc">clears all cached debug-messages</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.getSize</th>
- <th class="desc">returns the amount of all cached debug-messages</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.getSize()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.getIndex</th>
- <th class="desc">returns the debug-message from an index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.getIndex(index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.setConsolePrint</th>
- <th class="desc">true prints snuvi debug-messages on console (not stack traces)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.setConsolePrint(boolean)</td>
- </tr>
- </table>
- </section>
- <section id="Location">
- <table>
- <tr>
- <th class="command">loc.new</th>
- <th class="desc">creates a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.new(World, x, y, z)<br>loc.new(World, x, y, z, yaw, pitch)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getX</th>
- <th class="desc">returns the x coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getX(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setX</th>
- <th class="desc">sets the x coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setX(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.addX</th>
- <th class="desc">adds the value to the x coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.addX(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getY</th>
- <th class="desc">returns the y coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getY(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setY</th>
- <th class="desc">sets the y coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setY(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.addY</th>
- <th class="desc">adds the value to the y coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.addY(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getZ</th>
- <th class="desc">returns the z coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getZ(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setZ</th>
- <th class="desc">sets the z coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setZ(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.addZ</th>
- <th class="desc">adds the value to the z coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.addZ(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setYaw</th>
- <th class="desc">sets the yaw of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setYaw(location, Yaw)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getYaw</th>
- <th class="desc">returns the yaw of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getYaw(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setPitch</th>
- <th class="desc">sets the pitch of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setPitch(location, Pitch)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getPitch</th>
- <th class="desc">returns the pitch of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getPitch(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getWorld</th>
- <th class="desc">returns the world of a location as object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getWorld(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.distance</th>
- <th class="desc">returns the difference between two locations</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.distance(location1, location2)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>there is no error if the two locations have not the same world</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.isBetween</th>
- <th class="desc">returns true if the location is between two other locations</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.isBetween(location, location1, location2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.mod</th>
- <th class="desc">returns a modified copy of the location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.mod(location, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.add</th>
- <th class="desc">modifies the original location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.add(location, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.set</th>
- <th class="desc">modifies the original location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.set(location, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getCoord</th>
- <th class="desc">returns information from location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getCoord(location, w/x/y/z/bx/by/bz)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>w as world_name_string<br>b are block coordinates</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.sort</th>
- <th class="desc">sort in lowest and highest coordinates</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.sort(location1, location2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setBlockPos</th>
- <th class="desc">sets the coordinates of a location from a blockPos</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setBlockPos(location, blockPos)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.iterator</th>
- <th class="desc">returns the iterator for the area</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.iterator(world, x1, y1, z1, x2, y2, z2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.trace</th>
- <th class="desc">returns the traced original location or false if no block is found</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.trace(location, direction_x, direction_y, direction_z, steps, boolean)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true means the block before the last one</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.explode</th>
- <th class="desc">makes an explosion at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.explode(location, entity, radius, fire_bool, block_damage_bool)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>entity can be null</td>
- </tr>
- </table>
- </section>
- <section id="Read">
- <table>
- <tr>
- <th class="command">read.spawnMob</th>
- <th class="desc">spawns a mob and returns the entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.spawnMob(location, nbt-tag)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.player</th>
- <th class="desc">returns the object player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.player(playername)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.item</th>
- <th class="desc">returns an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- read.item(nbt-tag)<br>
- read.item(item_type)<br>
- read.item(item_type, item_amount)<br>
- read.item(item_type, item_amount)<br>
- read.item(item_type, item_amount, name)<br>
- read.item(item_type, item_amount, name, lore1, lore2, ...)
- </td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>returns null if the item does not exist</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.location</th>
- <th class="desc">returns a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.location("location")</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>worldname:x:y:z[:yaw:pitch]</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>read.location("gpvpnew:234:100:-341")<br>read.location("gpvpnew:234:100:-341:90:15")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.uuid</th>
- <th class="desc">returns a uuid</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.uuid("uuid")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.slot</th>
- <th class="desc">returns a slot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.slot(slot)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>slot: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
- </tr>
- </table>
- </section>
- <section id="Text">
- <table>
- <tr>
- <th class="command">text.item</th>
- <th class="desc">returns an nbt-tag from an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.item(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.location</th>
- <th class="desc">returns a string from a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.location(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.locationBlock</th>
- <th class="desc">returns a string with rounded coordinates from a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.locationBlock(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.entity</th>
- <th class="desc">returns a string from a entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.entity(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">removeFormat</th>
- <th class="desc">removes formatting</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>removeFormat(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.click</th>
- <th class="desc">returns a clickable text object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.click(show_text, execute_text)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>
- msg(player, text.click("Click me", "and i will appear in the player's text screen"));<br>
- <br>
- msg(player, text.click("Click me", "/wusi"));<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.hover</th>
- <th class="desc">returns a hoverable text object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.hover(show_text, execute_text)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>
- msg(player, text.hover("Move over this text", "to see this text"));<br>
- <br>
- msg(player, text.hover(text.click("Click or move over me", "to print text or execute a command like /wusi"), "or to show this hover_text"));<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.link</th>
- <th class="desc">returns a clickable message for links</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.link(message, link)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.copyText</th>
- <th class="desc">returns a clickable message to copy text from a website</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.copyText(message, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.clipBoard</th>
- <th class="desc">returns a clickable message to set text to the clipboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.clipBoard(message, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.concat2</th>
- <th class="desc">connects all given arguments and returns a string object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.concat2(arg, ...)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>Colorcodes gets lost with this.</td>
- </tr>
- </table>
- </section>
- <section id="Plot">
- <table>
- <tr>
- <th class="command">plot.add</th>
- <th class="desc">returns the created plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.add(location1, location2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.remove</th>
- <th class="desc">removes a plot from a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.remove(plot, world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getId</th>
- <th class="desc">returns the plot_id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getId(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.setName</th>
- <th class="desc">sets the name of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.setName(plot, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getName</th>
- <th class="desc">returns the name of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getName(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.get</th>
- <th class="desc">returns a list with all plots at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.get(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMinX</th>
- <th class="desc">returns the lowest x coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMinX(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMinY</th>
- <th class="desc">returns the lowest y coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMinY(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMinZ</th>
- <th class="desc">returns the lowest z coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMinZ(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMaxX</th>
- <th class="desc">returns the lowest x coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMaxX(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMaxY</th>
- <th class="desc">returns the lowest y coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMaxY(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMaxZ</th>
- <th class="desc">returns the lowest z coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMaxZ(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.intersecting</th>
- <th class="desc">returns a list with all intersecting plots</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.intersecting(world, x1, y1, z1, x2, y2, z2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.setFlags</th>
- <th class="desc">sets all flags to the boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.setFlags(plot, flags, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getFlags</th>
- <th class="desc">returns all flags as double</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getFlags(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.hasFlags</th>
- <th class="desc">returns true if all flags existing</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.hasFlags(plot, flags)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getOwners</th>
- <th class="desc">returns a list with all owners as uuid (modifying the list changes the owners)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getOwners(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.check</th>
- <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>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.check(location, player, Int flags, Boolean empty)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <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>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>
- plot.check(loc, null, 1, false) ==> true if place_flag existing<br>
- plot.check(loc, null, 2, false) ==> true if break_flag existing<br>
- plot.check(loc, null, 3, false) ==> true if break_flag and place_flag existing<br>
- plot.check(loc, player, 0, false) ==> true if player is owner<br>
- plot.check(loc, player, 0, true) ==> true if player is owner or if there is no plot
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.iterator</th>
- <th class="desc">returns the iterator for the plots in a world [for a player]</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.iterator(world, [uuid])</td>
- </tr>
- </table>
- </section>
- <section id="Table">
- <table>
- <tr>
- <th class="command">table.new</th>
- <th class="desc">returns a table object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.new(color, width, width, width, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.getStart</th>
- <th class="desc">returns the tables head</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.getStart(table)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.getMiddle</th>
- <th class="desc">returns a tables middle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.getMiddle(table)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.getEnd</th>
- <th class="desc">returns the tables end</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.getEnd(table)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.get</th>
- <th class="desc">returns a tables line</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.get(table, args...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.setSize</th>
- <th class="desc">defines the pixel size of a character</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.setSize("character", pixel_int)</td>
- </tr>
- </table>
- </section>
- <section id="Command">
- <table>
- <tr>
- <th class="command">command.add</th>
- <th class="desc">registers a custom command</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.add(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.remove</th>
- <th class="desc">removes a custom command</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.remove(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.clear</th>
- <th class="desc">removes all custom commands</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.exists</th>
- <th class="desc">returns true if a custom command exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.exists(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.addIgnored</th>
- <th class="desc">ignores a (vanilla) command-help</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.addIgnored(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.clearIgnored</th>
- <th class="desc">removes all ignored command-helps</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.clearIgnored()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelp</th>
- <th class="desc">returns a help-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelp(string, perm)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpLiteral</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpLiteral(string, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpBool</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpBool(string, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpDouble</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpDouble(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpFloat</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpFloat(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpInt</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpInt(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpLong</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpLong(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpString</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpString(string, boolean, [perm])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true means greedy</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpSpecial</th>
- <th class="desc">returns a help-sub-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpSpecial(type, string, [perm])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>type = "Item", "Block", "Potion", "Enchantment", "Player"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.addHelp</th>
- <th class="desc">registers a command-help</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.addHelp(help-object)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.addHelpChild</th>
- <th class="desc">help-sub-object2 is added tp help-(sub-)object1 as a new argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.addHelpChild(help-(sub-)object1, help-sub-object2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.addHelpAlias</th>
- <th class="desc">help-object1 refers to help-object2</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.addHelpAlias(help-object1, help-object2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.sendHelp</th>
- <th class="desc">sends all registered command-helps to all players</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.sendHelp()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.clearHelp</th>
- <th class="desc">removes all registered command-helps</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.clearHelp()</td>
- </tr>
- </table>
- </section>
- <section id="Scoreboard">
- <table>
- <tr>
- <th class="command">sb.add</th>
- <th class="desc">add text to the scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.add(receiver, index, string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 1 to 99</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>vanilla handling:<br>
- maximum 12 rows<br>
- rows with the same content are only shown once<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.remove</th>
- <th class="desc">removes a row from the scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.remove(receiver, index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 1 to 99</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.reset</th>
- <th class="desc">removes the whole scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.reset(receiver)</td>
- </tr>
- </table>
- </section>
- <section id="Display">
- <table>
- <tr>
- <th class="command">display.add</th>
- <th class="desc">add icons or text to the players display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>display.add(receiver, index, string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 1 to 99</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>maximum 32 characters each row<br>
- you will find all icons in the mod file .minecraft/mods/km-x.xx/assets/km/textures/gui/icons<br>
- every icon has an id beginning with 1 in the left upper corner<br>
- you show icons in this format: "#id-amount-" e.g. "#3-1-"<br>
- fallback id is 0 (shows nothing)
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">display.remove</th>
- <th class="desc">removes a row from the display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>display.remove(receiver, index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 1 to 99</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">display.reset</th>
- <th class="desc">removes the whole display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>display.reset(receiver)</td>
- </tr>
- </table>
- </section>
- <section id="Stacks">
- <table>
- <tr>
- <th class="command">stacks.set</th>
- <th class="desc">fills a slot of the stacks-display with an icon</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>stacks.set(receiver, index, item_name)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 0 to 8</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">stacks.setActive</th>
- <th class="desc">shows/removes the stacks-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>stacks.setActive(receiver, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">stacks.clearIndex</th>
- <th class="desc">clears a slot from the stacks-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>stacks.clearIndex(receiver, index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 0 to 8</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">stacks.clear</th>
- <th class="desc">clears the whole stacks-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>stacks.clear(receiver)</td>
- </tr>
- </table>
- </section>
- <section id="Script">
- <table>
- <tr>
- <th class="command">script.start</th>
- <th class="desc">connects all scripts, starts them as one script and returns the script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.start(scriptpath1, scriptpath2, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.startNamed</th>
- <th class="desc">connects all scripts, starts them as one script and returns the script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.startNamed(custom_name, scriptpath1, scriptpath2, ...)</td>
- </tr>
- <td class="bold">Info</td>
- <td>named scripts can be selected with script.get by their custom_name</td>
- <tr>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.callEvent</th>
- <th class="desc">calls an event</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.callEvent(event, [script])</td>
- </tr>
- </table>
- </section>
- <section id="Head">
- <table>
- <tr>
- <th class="command">head.add</th>
- <th class="desc">shows a player's head on the screen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>head.add(receiver, id, head_player_name, x, y, width, height)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- id: free selectable, non-global, per-player<br>
- x/y/width/height: scale from 0 to 1<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">head.remove</th>
- <th class="desc">removes a shown head</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>head.remove(receiver, id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">head.reset</th>
- <th class="desc">Removes all shown heads</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>head.reset(receiver)</td>
- </tr>
- </table>
- </section>
- <section id="Title">
- <table>
- <tr>
- <th class="command">title.send</th>
- <th class="desc">shows a player a title (and subtitle if set)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.send(player, title)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">title.setSub</th>
- <th class="desc">sets a subtitle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.setSub(player, subtitle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">title.setTime</th>
- <th class="desc">sets the times for title</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.setTime(player, fadeIn|20, show|60, fadeOut|20)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>times in ticks</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">title.reset</th>
- <th class="desc">resets the times for title to default</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.reset(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">title.clear</th>
- <th class="desc">removes the shown title</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.clear(player)</td>
- </tr>
- </table>
- </section>
- <section id="Permission">
- <table>
- <tr>
- <th class="command">perm.clear</th>
- <th class="desc">removes all permissions</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.registerGroup</th>
- <th class="desc">adds a permission to a permission-group</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.registerGroup(id, permission)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>id 0 = default<br>id 1 = worldedit</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.registerPlayer</th>
- <th class="desc">adds a permission-group to a a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.registerPlayer(uuid / string_uuid / player, id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.unregisterPlayer</th>
- <th class="desc">removes a permission-group from a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.unregisterPlayer(uuid / string_uuid / player, id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.has</th>
- <th class="desc">returns true if the player has the permission</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.has(player, permission)</td>
- </tr>
- </table>
- </section>
- <section id="Player">
- <table>
- <tr>
- <th class="command">players.toList</th>
- <th class="desc">returns a list with all players online</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.toList()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">players.toWorldList</th>
- <th class="desc">returns a list with all players in a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.toWorldList(World)</td>
- </tr>
- <tr>
- <td class="bold">Alias</td>
- <td>world.getPlayers(World)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">players.near</th>
- <th class="desc">returns a list with all players within a radius of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.near(location, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.damageArmor</th>
- <th class="desc">damages an players armor, portioned on all armor parts</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.damageArmor(player, damage_float, damage_source)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.near</th>
- <th class="desc">returns a list with all players within a radius of a player (without that player)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.near(player, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">players.getAmount</th>
- <th class="desc">returns the number of online players</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.getAmount()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getHead</th>
- <th class="desc">returns a players head as an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getHead(uuid, name)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>uuid and(!) name of the player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getNearest</th>
- <th class="desc">returns the next player to a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getNearest(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setDisplayName</th>
- <th class="desc">set the name over players head</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setDisplayName(player, display_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.speak (deprecated)</th>
- <th class="desc">sends a message with prefix</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.speak(receiver, präfix, text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.action</th>
- <th class="desc">shows a message in the action bar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.action(receiver, text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getTarget</th>
- <th class="desc">returns the location from the block the player is looking at</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getTarget(player, radius|5, [blockmode|true], [fluidmode|true])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>blockmode: true ignores blocks without player collision<br>fluidmode: true does not ignores water</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.inventoryToList</th>
- <th class="desc">returns a list with the inventory of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.inventoryToList(player)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>an empty slot is null<br>changes effects the player inventory directly</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getName</th>
- <th class="desc">returns the name of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getName(uuid / string_uuid / player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getUuid</th>
- <th class="desc">returns the uuid of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getUuid(player / player_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getUuidFromId</th>
- <th class="desc">returns the uuid of a player from his id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getUuidFromId(player_id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getNameFromId</th>
- <th class="desc">returns the name of a player from his id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getNameFromId(player_id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getId</th>
- <th class="desc">returns the id of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getId(player / uuid / string_uuid)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.get</th>
- <th class="desc">returns the player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.get(uuid / string_uuid)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.respawn</th>
- <th class="desc">awakes a player from death if the parser reaches wait() and activates the respawn events</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.respawn(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setCompass</th>
- <th class="desc">set the direction for a players compass</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setCompass(player, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setHunger</th>
- <th class="desc">set the players hunger (vanilla default: 0-20)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setHunger(player, number)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getHunger</th>
- <th class="desc">returns the players hunger as number</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getHunger(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSaturation</th>
- <th class="desc">set the players saturation (vanilla default: 0-20)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setSaturation(player, number)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getSaturation</th>
- <th class="desc">returns the players saturation as number</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getSaturation(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setGamemode</th>
- <th class="desc">set the gamemode for a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setGamemode(player, gamemode)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>gamemode as "survival" / "creative" / "adventure" / "spectator"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isSurvival</th>
- <th class="desc">returns true if the player is in gamemode survival or adventure</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isSurvival(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isCreative</th>
- <th class="desc">returns true if the player is in gamemode creative</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isCreative(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isAdventure</th>
- <th class="desc">returns true if the player is in gamemode adventure or spectator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isAdventure(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isSpectator</th>
- <th class="desc">returns true if the player is in gamemode spectator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isSpectator(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.hasFly</th>
- <th class="desc">returns true if the player can fly</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.hasFly(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setFly</th>
- <th class="desc">set true for a flying player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setFly(player, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getLastDamager</th>
- <th class="desc">returns the entity which harmed the player the last time</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getLastDamager(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.dropInventory</th>
- <th class="desc">drops the inventory from a player at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.dropInventory(player, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getItemAmount</th>
- <th class="desc">returns the amount of an item-type from a players inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getItemAmount(player, boolean, itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>true means exact itemstack</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.damageItem</th>
- <th class="desc">damages the item in a player's hand and returns true if the item breaks</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.damageItem(player, damage_amount)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>unbreaking (and more) is considered</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setBedSpawn</th>
- <th class="desc">sets the spawn-location for a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- player.setBedSpawn(player, location, [yaw])<br>
- player.setSpawn(player, location, [yaw])
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getBedSpawn</th>
- <th class="desc">returns the spawn-location for a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- player.getBedSpawn(player)<br>
- player.getSpawn(player)
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.giveItem</th>
- <th class="desc">gives an itemstack to a player and returns the itemstack which didn't fit in the players inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.giveItem(player, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.removeItem</th>
- <th class="desc">removes an itemstack from a player and returns the itemstack which couldn't be removed from the players inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.removeItem(player, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.say</th>
- <th class="desc">send a message to global chat, like a player has written the message by himself</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.say(player, text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getIP</th>
- <th class="desc">returns the ip-address of a player as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getIp(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.clearInventory</th>
- <th class="desc">clears the inventory of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.clearInventory(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.openEnderchest</th>
- <th class="desc">opens the enderchest from a player and shows it to a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.openEnderchest(from_player, to_player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getInv</th>
- <th class="desc">returns the (non-copy) players inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getInv(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getEnderInv</th>
- <th class="desc">returns the (non-copy) players ender inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getEnderInv(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getTargetEntity</th>
- <th class="desc">returns the targeted entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getTargetEntity(player, radius, class)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>player.getTargetEntity(player, 4, "net.minecraft.entity.player.EntityPlayer")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getLevel</th>
- <th class="desc">returns the level of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getLevel(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setLevel</th>
- <th class="desc">sets the level of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setLevel(player, level)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getExp</th>
- <th class="desc">returns the exp of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getExp(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setExp</th>
- <th class="desc">sets the exp of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setExp(player, exp)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.addTotalExp</th>
- <th class="desc">modifies the exp of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.addTotalExp(player, exp)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.hide</th>
- <th class="desc">hides a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.hide(player)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>bug: effects show the player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.show</th>
- <th class="desc">shows a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.show(player)</td>
- </tr>
- </table>
- </section>
- <section id="Inventory">
- <table>
- <tr>
- <th class="command">inv.new</th>
- <th class="desc">returns a new created custom-inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.new(String slotdata)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>slotdata: 0 = no slot / 1 = normal slot / 2 = button throws inv_click event, backgroundcolor like frame / 3 = button throws inv_click event, backgroundcolor different to frame</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>inv.new("002133")</td>
- </tr>
- </table>
- </table>
- <table>
- <tr>
- <th class="command">inv.getSize</th>
- <th class="desc">returns the size of an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.getSize(inventory)</td>
- </tr>
- <table>
- <tr>
- <th class="command">inv.setItem</th>
- <th class="desc">sets an itemstack on a specific slot in an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.setItem(inventory, slotindex, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.getItem</th>
- <th class="desc">returns an itemstack from a specific slot of an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.getItem(inventory, slotindex)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.open</th>
- <th class="desc">shows an custom-inventory to a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.open(inventory, player, inv_title)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.close</th>
- <th class="desc">closes an inventory from a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.close(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.update</th>
- <th class="desc">updates an inventory from a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.update(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.loadChest</th>
- <th class="desc">copies the content of a chest and put it into an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.loadChest(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.getID</th>
- <th class="desc">returns the id of an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.getID(inventory)</td>
- </tr>
- </table>
- </section>
- <section id="World">
- <table>
- <tr>
- <th class="command">world.get</th>
- <th class="desc">returns a world as object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.get(world_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getName</th>
- <th class="desc">returns the name of a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getName(World)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setDifficulty</th>
- <th class="desc">sets the difficulty of a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setDifficulty(difficulty_string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>difficulty_string: PEACEFUL, EASY, NORMAL, HARD</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setSpawn</th>
- <th class="desc">sets the world spawn</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setSpawn(World, Location, [yaw])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getSpawn</th>
- <th class="desc">returns the world spawn as location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getSpawn(World)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getAll</th>
- <th class="desc">returns a list with all loaded worlds</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getAll()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setTime</th>
- <th class="desc">sets the time (0 - 24000) for a minecraft world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setTime(World, time)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getTime</th>
- <th class="desc">returns the time (0 - 24000) of a minecraft world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getTime(World)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.hasStorm</th>
- <th class="desc">returns true if it is raining in the world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.hasStorm(World)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.clearWeather</th>
- <th class="desc">clears the weather in a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.clearWeather(World, time)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>effect of time unknown</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setRain</th>
- <th class="desc">sets the weather in a world to rain</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setRain(World, time)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>effect of time unknown</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setThunder</th>
- <th class="desc">sets the weather in a world to thunder</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setThunder(World, time)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>effect of time unknown</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getEntities</th>
- <th class="desc">returns a list with all entities from a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getEntities(world)</td>
- </tr>
- </table>
- </section>
- <section id="Entity">
- <table>
- <tr>
- <th class="command">entity.getType</th>
- <th class="desc">returns the type of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getType(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setName</th>
- <th class="desc">sets the name of an entity, true for an always visible name</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setName(entity, name, nameVisibility|false)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getName</th>
- <th class="desc">returns the name of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getName(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getLocation</th>
- <th class="desc">returns the location of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getLocation(entity / player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.teleport</th>
- <th class="desc">teleports an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.teleport(entity / player, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setInvulnerable</th>
- <th class="desc">sets an entity (in)vulverable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setInvulnerable(entity / player, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.throw</th>
- <th class="desc">throws an entity in relative direction to the entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.throw(entity / player, x, y, z)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>x/y/z is claimed in the interval from -3.9 to 3.9 by minecraft</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setInvisible</th>
- <th class="desc">sets an entity (in)visible</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setInvisible(entity / player, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.clearEffects</th>
- <th class="desc">remove all effects from an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.clearEffects(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.remove</th>
- <th class="desc">removes an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.remove(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.removeAll</th>
- <th class="desc">remove specific entities from an area</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.removeAll(entity_class, location, radius)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>not all entity_classes are allowed (filtered and blocked)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>entity.removeAll("net.minecraft.entity.passive.CowEntity", location, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setSilent</th>
- <th class="desc">true sets an entity silent</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setSilent(entity, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.mount</th>
- <th class="desc">let an entity ride another entity (for any living entities)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.mount(entity, horse_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.unmount</th>
- <th class="desc">unmounts the rider</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.unmount(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.isWet</th>
- <th class="desc">returns true if an entity is wet</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.isWet(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.isBurning</th>
- <th class="desc">returns true if an entity burns</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.isBurning(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setBurning</th>
- <th class="desc">sets an entity on fire</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setBurning(entity, seconds)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>0 seconds extinguish the entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setNoPickup</th>
- <th class="desc">this arrow-entity cannot be picked up</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setNoPickup(arrow-entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.get</th>
- <th class="desc">returns the next entity to a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.get(location, radius, entity_class)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>entity.get(location, radius, "net.minecraft.entity.passive.CowEntity")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getItemFromFrame</th>
- <th class="desc">returns the itemstack of an itemframe</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getItemFromFrame(itemframe-entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.spawnItemFrame</th>
- <th class="desc">sets an itemframe with an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.spawnItemFrame(location, direction, itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>direction "north" / "east" / "south" / "west"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.spawn</th>
- <th class="desc">spawns an entity and returns the entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.spawn(type, location, [daten])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getEnchantmentModifier</th>
- <th class="desc">returns the summarized enchantment modificator of the armor for the damagesource</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getEnchantmentModifier(entity, damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setGravity</th>
- <th class="desc">toggles the gravity of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setGravity(entity, boolean)</td>
- </tr>
- <table>
- <tr>
- <th class="command">entity.setPickupDelay</th>
- <th class="desc">unknown</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setPickupDelay(item-entity, ticks)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setGrowingAge</th>
- <th class="desc">sets the growing age of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setGrowingAge(entity, age_int)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getEffectAmplifier</th>
- <th class="desc">returns the amplifier (effect level), 0 if not existing</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.hasEffect(entity / player, effect)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>String <a href="https://minecraft-de.gamepedia.com/Statuseffekt" target="_blank">effect</a></td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.addEffect</th>
- <th class="desc">adds an effect to an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.addEffect(entity / player, effect, ticks, amplifier, [particle|true])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>String <a href="https://minecraft-de.gamepedia.com/Statuseffekt" target="_blank">effect</a> / number ticks (infinite: 32760) / number amplifier (1 means potion-level 1)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getPotionType</th>
- <th class="desc">returns the type of a potion</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getPotionType(potion-entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.near</th>
- <th class="desc">returns a list with all entities within a location / a radius of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.near(location / entity, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getLook</th>
- <th class="desc">returns an array with vectors</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getLook(entity / player)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>array[0] = x<br>array[1] = y<br>array[2] = z</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getMotion</th>
- <th class="desc">returns an array with vectors</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getMotion(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">creeper.explode</th>
- <th class="desc">let a creeper explode</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>creeper.explode(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sheep.isSheared</th>
- <th class="desc">returns true if a sheep is sheared</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sheep.isSheared(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sheep.getColor(entity)</th>
- <th class="desc">returns the color of a sheep</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sheep.getColor(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pet.isTamed</th>
- <th class="desc">returns true if a pet is tamed</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>pet.isTamed(tamable_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pet.setTamed</th>
- <th class="desc">set tame state for a tamable entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- pet.setTamed(tamable_entity, boolean, [owner])
- </td>
- </tr>
- <tr>
- <td class="bold">Example</td>
- <td>
- pet.setTamed(horse, true)<br>
- pet.setTamed(horse, false)<br>
- pet.setTamed(horse, true, owner)<br>
- pet.setTamed(horse, false, owner)<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pet.getOwner</th>
- <th class="desc">returns the owner's uuid from an pet</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>pet.getOwner(tamable_entity)</td>
- </tr>
- </table>
- </section>
- <section id="Living">
- <table>
- <tr>
- <th class="command">living.setHealth</th>
- <th class="desc">sets the health points for an living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.setHealth(living_entity, amount)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.getHealth</th>
- <th class="desc">returns the health points from an living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.getHealth(living_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.damage</th>
- <th class="desc">damages an living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.damage(living_entity, damage_amount, [damagesource])</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>triggers events on the next server tick</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.heal</th>
- <th class="desc">heals an living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.heal(living_entity, heal_amount)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>triggers events on the next server tick</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.setEquip</th>
- <th class="desc">set the equipment of an living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.setEquip(living_entity, bodypart, itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.getEquip</th>
- <th class="desc">returns the equipment of an living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.getEquip(living_entity, bodypart)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bodypart: "head" / "chest" / "legs" / "feet" / "hand" / "offhand"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.near</th>
- <th class="desc">returns a list with all living entities within a location / a radius of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.near(location / entity, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.removeAi</th>
- <th class="desc">removes the AI of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.removeAi(living_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command"></th>
- <th class="desc">commands for living properties</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- living.get...(living_entity)<br>
- living.getBase...(living_entity)<br>
- living.set..(living_entity, value)<br>
- living.setPersistent...(living_entity, value)
- </td>
- </tr>
- <tr>
- <td class="bold">Properties</td>
- <td>
- ...maxHealth<br>
- ...AttackKnockback<br>
- ...AttackDamage<br>
- ...AttackSpeed<br>
- ...FollowRange<br>
- ...Luck<br>
- ...Armor<br>
- ...ArmorThoughness<br>
- ...MovementSpeed<br>
- ...FlyingSpeed<br>
- ...KnockbackResistance
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.shootProjectile</th>
- <th class="desc">returns the shooten entity. A projectile is shooten into viewing direction of the player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.shootProjectile(living_entity, String entity_class, Number power, [data])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- data: always null, except for arrows and potions use itemstacks<br>
- <br>
- entity_classes:<br>
- <br>
- me.km.entities.EntityItemProjectile<br>
- net.minecraft.entity.projectile.SnowballEntity<br>
- net.minecraft.entity.projectile.EggEntity<br>
- net.minecraft.entity.item.EnderPearlEntity<br>
- net.minecraft.entity.projectile.PotionEntity<br>
- net.minecraft.entity.item.ExpBottleEntity<br>
- net.minecraft.entity.projectile.ArrowEntity<br>
- net.minecraft.entity.projectile.TippedArrowEntity<br>
- net.minecraft.entity.projectile.SpectralArrowEntity<br>
- net.minecraft.entity.projectile.ArrowEntity<br>
- net.minecraft.entity.projectile.SmallFireballEntity<br>
- net.minecraft.entity.projectile.WitherSkullEntity<br>
- net.minecraft.entity.projectile.DragonFireballEntity<br>
- net.minecraft.entity.projectile.FireballEntity
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.isBlocking</th>
- <th class="desc">returns true if an entity is blocking (e.g. activated shield)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.isBlocking(entity)</td>
- </tr>
- </table>
- </section>
- <section id="Particle">
- <table>
- <tr>
- <th class="command">particle.get</th>
- <th class="desc">returns particle data</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.get(name, [data])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>block particle: data = block_name<br>dust particle: data = float red, float green, float blue, float alpha<br>item particle: data = item_name</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.getAll</th>
- <th class="desc">returns a list with all particles</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.getAll()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.spawn</th>
- <th class="desc">spawns particle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.spawn(location, particle_data, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.spawnPlayer</th>
- <th class="desc">spawns particle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.spawnPlayer(location, particle_data, player, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.spawnCircle</th>
- <th class="desc">spawns particle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.spawnCircle(location, particle_data, instances, radius, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])<br>particle.spawnCircle(location, particle_data, instances, stepX, stepY, stepZ, [count|1], [speed,0.0], [offX,0.0], [offY,0.0], [offZ,0.0])</td>
- </tr>
- </table>
- </section>
- <section id="Sound">
- <table>
- <tr>
- <th class="command">sound.get</th>
- <th class="desc">returns a sound</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.get(String sound_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sound.getCategory</th>
- <th class="desc">returns a sound category</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.getCategory(String sound_category|"master")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sound.spawn</th>
- <th class="desc">plays a sound</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.spawn(location, sound, soundCategory, [volume|1.0], [pitch|random von 0.9 - 1.0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sound.spawnForPlayer</th>
- <th class="desc">plays a sound for a player (not hearable for that one player!)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.spawnForPlayer(player, sound, soundCategory, [volume|1.0], [pitch|random von 0.9 - 1.0])</td>
- </tr>
- </table>
- </section>
- <section id="Human">
- <table>
- <tr>
- <th class="command">human.spawn</th>
- <th class="desc">returns the new created human</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>human.spawn(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">human.setSkin</th>
- <th class="desc">sets the skin of a human</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>human.setSkin(human, file_name OR uuid)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>file_name is for skins saved local on our own server. if file_name not found, global skin are searched via uuid</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">human.setSlim</th>
- <th class="desc">true makes the human slim (slim is for alex skins)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>human.setSlim(human, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">human.setScale</th>
- <th class="desc">sets the size of the human</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>human.setScale(human, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">human.setStatue</th>
- <th class="desc">toggles between human and statue</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>human.setStatue(human, bool)</td>
- </tr>
- </table>
- </section>
- <section id="Damage">
- <table>
- <tr>
- <th class="command">damage.get</th>
- <th class="desc">returns a damagesource</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- damage.get(String damage_name)<br><br>
- damage.get("thorns", entity)<br><br>
- damage.get(entity, creative, armor, absolute, explosion, fire, magic, projectile)
- </td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- damage_name = inFire, lightningBolt, onFire, lava, hot_floor, inWall, cramming, drown, starve, cactus, fall, fyIntoWall, outOfWorld, generic, magic, wither, anvil, falling_block, dragon_breath, dryout, sweet_berry_bush
- <br><br>
- creative: boolean, true also deals damage in creative mode<br>
- armor: boolean, true ignores armor<br>
- absolute: boolean, true ignores enchantments and potions<br>
- explosion: boolean, tag for explosion enchantment<br>
- fire: boolean, tag for fire enchantment<br>
- magic: boolean, true makes the damage magic<br>
- projectile: boolean, tag for projectile enchantment<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.getType</th>
- <th class="desc">returns the type of a damagesource as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.getType(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.getImmediateSource</th>
- <th class="desc">returns the direct damager entity of a damagesource</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.getImmediateSource(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.getTrueSource</th>
- <th class="desc">returns the indirect damager entity of a damagesource</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.getTrueSource(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isCreativePlayer</th>
- <th class="desc">returns true if the damagesource can damage an creative player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isCreativePlayer(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isAbsolute</th>
- <th class="desc">returns true if the damage ignores modifications by potion effects or enchantments</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isAbsolute(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isDifficultyscaled</th>
- <th class="desc">returns true if the damagesource will have its damageamount scaled based on the current difficulty</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isDifficultyscaled(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isExplosion</th>
- <th class="desc">returns true if the damage is explosion based</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isExplosion(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isFire</th>
- <th class="desc">returns true if the damage is fire based</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isFire(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isMagic</th>
- <th class="desc">returns true if the damage is magic based</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isMagic(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isProjectile</th>
- <th class="desc">returns true if the damage is projectile based</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isProjectile(damagesource)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isUnblockable</th>
- <th class="desc">returns true if the damage cannot be blocked by armor</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isUnblockable(damagesource)</td>
- </tr>
- </table>
- </section>
- <section id="Data">
- <table>
- <tr>
- <th class="command">data.set</th>
- <th class="desc">sets data for a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.set(player, String varname, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.get</th>
- <th class="desc">returns data from a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.get(player, String varname)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.setTimer</th>
- <th class="desc">sets timed data for a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.setTimer(player, String varname, ticks)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>set ticks to -1 to delete the timer. after the timer expires the event player_data_tick is thrown</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.getTimer</th>
- <th class="desc">returns the remaining ticks of timed data (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.getTimer(player, String varname)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.clear</th>
- <th class="desc">deletes all datas from a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.clear(player)</td>
- </tr>
- </table>
- </section>
- <section id="Shop">
- <table>
- <tr>
- <th class="command">shop.new</th>
- <th class="desc">returns a new shop</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>shop.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">shop.addOffer</th>
- <th class="desc">adds an offer to a shop</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>shop.addOffer(shop, buy_item, sell_item, max_uses)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">shop.addDoubleOffer</th>
- <th class="desc">adds a double offer to a shop</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>shop.addDoubleOffer(shop, buy_item_1, buy_item_2, sell_item, max_uses)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">shop.open</th>
- <th class="desc">shows a shop to a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>shop.open(shop, player, shop_name)</td>
- </tr>
- </table>
- </section>
- <section id="Status">
- <table>
- <tr>
- <th class="command">status.add</th>
- <th class="desc">adds a message to the enchantment-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>status.add(receiver, byte index, message)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">status.addTimed</th>
- <th class="desc">adds a timed message to the enchantment-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>status.addTimed(receiver, byte index, int time, message)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">status.remove</th>
- <th class="desc">removes a single message from the enchantment-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>status.remove(receiver, byte index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">status.reset</th>
- <th class="desc">removes all messages from the enchantment-display</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>status.reset(receiver)</td>
- </tr>
- </table>
- </section>
- <section id="Boss">
- <table>
- <tr>
- <th class="command">boss.setColor</th>
- <th class="desc">sets the color for the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setColor("PINK" / "BLUE" / "RED" / "GREEN" / "YELLOW" / "PURPLE" / "WHITE")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setCreateFog</th>
- <th class="desc">sets a property for the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setCreateFog(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setDarkenSky</th>
- <th class="desc">sets a property for the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setDarkenSky(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setPlayEndbossmusic</th>
- <th class="desc">sets a property for the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setPlayEndbossmusic(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setName</th>
- <th class="desc">sets the name for the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setName(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setOverlay</th>
- <th class="desc">sets an overlay to split the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setOverlay("PROGRESS" / "NOTCHED_6" / "NOTCHED_10" / "NOTCHED_12" / "NOTCHED_20")</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setPercent</th>
- <th class="desc">sets the progress of the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setPercent(0 - 1)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.send</th>
- <th class="desc">sends the bossbar to the players</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.send(receiver, "ADD" / "REMOVE" / "UPDATE_PCT" / "UPDATE_NAME" / "UPDATE_STYLE" / "UPDATE_PROPERTIES")</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- ADD sends name, percent, color, overlay, properties(booleans)<br>
- UPDATE_PCT sends percent<br>
- UPDATE_NAME sends name<br>
- UPDATE_STYLE sends color, overlay<br>
- UPDATE_PROPERTIES sends properties(booleans)<br>
- </td>
- </tr>
- </table>
- </section>
|