# Table of Contents - [Home | Hypixel Cry | LuaAPI](#home-hypixel-cry-luaapi) - [Custom Fixer | WinBooster](#custom-fixer-winbooster) - [Custom Game Optimize | WinBooster](#custom-game-optimize-winbooster) - [Custom clear | WinBooster](#custom-clear-winbooster) - [Custom DNS | WinBooster](#custom-dns-winbooster) - [DNSList | WinBooster](#dnslist-winbooster) - [Files | WinBooster](#files-winbooster) - [GameList | WinBooster](#gamelist-winbooster) - [FixerData | WinBooster](#fixerdata-winbooster) - [DirectoryFullAndroid | WinBooster](#directoryfullandroid-winbooster) - [DirectoryPatern | WinBooster](#directorypatern-winbooster) - [DirectoryFull | WinBooster](#directoryfull-winbooster) - [GameOptimizeI | WinBooster](#gameoptimizei-winbooster) - [FixerI | WinBooster](#fixeri-winbooster) - [General | Hypixel Cry | LuaAPI](#general-hypixel-cry-luaapi) - [Threads | Hypixel Cry | LuaAPI](#threads-hypixel-cry-luaapi) - [Events | Hypixel Cry | LuaAPI](#events-hypixel-cry-luaapi) - [Encoding | Hypixel Cry | LuaAPI](#encoding-hypixel-cry-luaapi) - [Creator | Hypixel Cry | LuaAPI](#creator-hypixel-cry-luaapi) - [TCP | Hypixel Cry | LuaAPI](#tcp-hypixel-cry-luaapi) - [Http | Hypixel Cry | LuaAPI](#http-hypixel-cry-luaapi) - [Json | Hypixel Cry | LuaAPI](#json-hypixel-cry-luaapi) - [Catboost | Hypixel Cry | LuaAPI](#catboost-hypixel-cry-luaapi) - [Cat Boost Model | Hypixel Cry | LuaAPI](#cat-boost-model-hypixel-cry-luaapi) - [Cat Boost Predictions | Hypixel Cry | LuaAPI](#cat-boost-predictions-hypixel-cry-luaapi) - [Map | Hypixel Cry | LuaAPI](#map-hypixel-cry-luaapi) - [Entity | Hypixel Cry | LuaAPI](#entity-hypixel-cry-luaapi) - [Constants | Hypixel Cry | LuaAPI](#constants-hypixel-cry-luaapi) - [Draw list | Hypixel Cry | LuaAPI](#draw-list-hypixel-cry-luaapi) - [Block | Hypixel Cry | LuaAPI](#block-hypixel-cry-luaapi) - [Item | Hypixel Cry | LuaAPI](#item-hypixel-cry-luaapi) - [Box | Hypixel Cry | LuaAPI](#box-hypixel-cry-luaapi) - [Inventory | Hypixel Cry | LuaAPI](#inventory-hypixel-cry-luaapi) - [PathFinder | Hypixel Cry | LuaAPI](#pathfinder-hypixel-cry-luaapi) - [Network | Hypixel Cry | LuaAPI](#network-hypixel-cry-luaapi) - [2D renderer | Hypixel Cry | LuaAPI](#2d-renderer-hypixel-cry-luaapi) - [ImGUI | Hypixel Cry | LuaAPI](#imgui-hypixel-cry-luaapi) - [Input | Hypixel Cry | LuaAPI](#input-hypixel-cry-luaapi) - [World | Hypixel Cry | LuaAPI](#world-hypixel-cry-luaapi) - [World renderer | Hypixel Cry | LuaAPI](#world-renderer-hypixel-cry-luaapi) - [Player | Hypixel Cry | LuaAPI](#player-hypixel-cry-luaapi) --- # Home | Hypixel Cry | LuaAPI Welcome to the Hypixel Cry LuaAPI wiki! Lua version: 5.2 Currently wiki only for default branch Directory for scripts config\\hypixelcry\\scripts\\ [hashtag](https://skillshop.gitbook.io/hypixelcry#variables) Variables --------------------------------------------------------------------------- * [player](https://skillshop.gitbook.io/hypixelcry/player-objects/player) * [world](https://skillshop.gitbook.io/hypixelcry/world-objects/world) * [modules](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder) * [http](https://skillshop.gitbook.io/hypixelcry/libs/http) * [json](https://skillshop.gitbook.io/hypixelcry/libs/json) [NextGeneralchevron-right](https://skillshop.gitbook.io/hypixelcry/general/general) Last updated 1 month ago --- # Custom Fixer | WinBooster Copy //dll WinBoosterDataBase.dll //dll WinBoosterNative.dll //using System.Runtime.InteropServices; //using WinBooster.DataBase; //using WinBooster.Native; MCC.LoadScript(new BetterCleanerPath()); //Script Extensions public class BetterCleanerPath : Script { [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool AllocConsole(); [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool FreeConsole(); public override void Initialize() { if (AllocConsole()) { Console.WriteLine(FixerData.fixers.Count); FixerData.fixers.Add(new CustomFixer()); Console.WriteLine(FixerData.fixers.Count); } } public override void OnErrorFixerStart() { Console.WriteLine("Error Fixer Started"); } public override void OnErrorFixerDone() { Console.WriteLine("Error Fixer Done"); } public class CustomFixer : FixerI { public bool NeedFix() { return true; } public void Fix() { Console.WriteLine("Типо фикс"); } } } [PreviousCustom Game Optimizechevron-left](https://skillshop.gitbook.io/winbooster) [NextCustom clearchevron-right](https://skillshop.gitbook.io/winbooster/examples/custom-clear) Last updated 3 years ago --- # Custom Game Optimize | WinBooster Copy //dll WinBoosterDataBase.dll //dll WinBoosterNative.dll //using System.Runtime.InteropServices; //using WinBooster.DataBase; //using WinBooster.Native; MCC.LoadScript(new CustomGameOptimizer()); //Script Extensions public class CustomGameOptimizer: Script { [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool AllocConsole(); [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool FreeConsole(); public override void Initialize() { if (AllocConsole()) { Console.WriteLine(GameList.games.Count); GameList.games.Add(new CustomGameOptimize()); Console.WriteLine(GameList.games.Count); } } public override void OnGameOptimizeStart() { Console.WriteLine("Game Optimize Started"); } public override void OnGameOptimizeDone() { Console.WriteLine("Game Optimize Done"); } public class CustomGameOptimize : GameOptimizeI { public bool GameInstalled() { return true; } public string GameName() { return "My Game"; } public void Optimize() { Console.WriteLine("Типо оптимизация"); } public void SetOptimizeData(params int[] data) { throw new NotImplementedException(); } } } [NextCustom Fixerchevron-right](https://skillshop.gitbook.io/winbooster/examples/custom-fixer) Last updated 3 years ago --- # Custom clear | WinBooster Copy //using System.Runtime.InteropServices; //dll WinBoosterDataBase.dll //dll WinBoosterNative.dll //using WinBooster.DataBase; //using WinBooster.Native; MCC.LoadScript(new BetterCleanerPath()); //Script Extensions public class BetterCleanerPath : Script { [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool AllocConsole(); [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool FreeConsole(); public override void Initialize() { if (AllocConsole()) { int logs_size = Files.logs.Count; Console.WriteLine(logs_size); Files.logs.Add(new DirectoryPatern("path", "patern")); Files.logs.Add(new DirectoryFull("path")); logs_size = Files.logs.Count; Console.WriteLine(logs_size); } } public override void OnClearStart(bool cheats, bool logs, bool cache, bool lastactivity, bool registry, bool images, bool video) { Console.WriteLine("Cleaned started"); } public override void OnClearDone(bool cheats, bool logs, bool cache, bool lastactivity, bool registry, bool images, bool video, long size) { Console.WriteLine("Cleaned done"); } } [PreviousCustom Fixerchevron-left](https://skillshop.gitbook.io/winbooster/examples/custom-fixer) [NextCustom DNSchevron-right](https://skillshop.gitbook.io/winbooster/examples/custom-dns) Last updated 3 years ago --- # Custom DNS | WinBooster Copy //using System.Runtime.InteropServices; //dll WinBoosterDataBase.dll //dll WinBoosterNative.dll //using WinBooster.DataBase; //using WinBooster.Native; MCC.LoadScript(new BetterDNS()); //Script Extensions public class BetterDNS: Script { public override void Initialize() { DNSList.list.Add(new DNSInfo("212.46.234.217", "RU", "PVimpelCom")); } } [PreviousCustom clearchevron-left](https://skillshop.gitbook.io/winbooster/examples/custom-clear) [NextDNSListchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.database/dnslist) Last updated 3 years ago --- # DNSList | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.database/dnslist#class-names) Class names ----------------------------------------------------------------------------------------------------------- Available Files classes: `list` [PreviousCustom DNSchevron-left](https://skillshop.gitbook.io/winbooster/examples/custom-dns) [NextFileschevron-right](https://skillshop.gitbook.io/winbooster/winbooster.database/files) Last updated 3 years ago --- # Files | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.database/files#class-names) Class names --------------------------------------------------------------------------------------------------------- Available Files classes: `cheats`, `logs`, `cache`, `lastactivity_safe`, `lastactivity_full`, `images`, `media` [PreviousDNSListchevron-left](https://skillshop.gitbook.io/winbooster/winbooster.database/dnslist) [NextFixerDatachevron-right](https://skillshop.gitbook.io/winbooster/winbooster.database/fixerdata) Last updated 3 years ago --- # GameList | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.database/gamelist#class-names) Class names ------------------------------------------------------------------------------------------------------------ Available GameList classes: `games` [PreviousFixerDatachevron-left](https://skillshop.gitbook.io/winbooster/winbooster.database/fixerdata) [NextDirectoryFullAndroidchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid) Last updated 3 years ago --- # FixerData | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.database/fixerdata#class-names) Class names ------------------------------------------------------------------------------------------------------------- Available FixerData classes: `fixers` [PreviousFileschevron-left](https://skillshop.gitbook.io/winbooster/winbooster.database/files) [NextGameListchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.database/gamelist) Last updated 3 years ago --- # DirectoryFullAndroid | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid#methods) Methods -------------------------------------------------------------------------------------------------------------- **string GetDirectory()** [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid#arguments) **Arguments** ---------------------------------------------------------------------------------------------------------------------- Name Type Directiry string Path to android directory [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid#example) **Example** ------------------------------------------------------------------------------------------------------------------ Copy new DirectoryFullAndroid("MIUI") new DirectoryFullAndroid("DCIM\\Camera"), new DirectoryFullAndroid("Android\\media\\org.telegram.messenger\\Telegram\\Telegram Images"), [PreviousGameListchevron-left](https://skillshop.gitbook.io/winbooster/winbooster.database/gamelist) [NextDirectoryFullchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull) Last updated 3 years ago * [Methods](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid#methods) * [Arguments](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid#arguments) * [Example](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid#example) --- # DirectoryPatern | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern#methods) Methods --------------------------------------------------------------------------------------------------------- **string GetDirectory()** **string GetPattern()** [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern#arguments) **Arguments** ----------------------------------------------------------------------------------------------------------------- Name Type Description Placeholders Placeholder description Directory string Directory path %username% System username Patern string Search patern %cycdrive% System Disk %steam% Steam path %unknowfolder% All directories in path [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern#example) **Example** ------------------------------------------------------------------------------------------------------------- Copy new DirectoryPatern("%steam%", "*.log") new DirectoryPatern("%cycdrive%\\Program Files\\Google\\Chrome\\%unknowfolder%", "*.log"), [PreviousDirectoryFullchevron-left](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull) [NextGameOptimizeIchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.native/gameoptimizei) Last updated 3 years ago * [Methods](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern#methods) * [Arguments](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern#arguments) * [Example](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern#example) --- # DirectoryFull | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull#methods) Methods ------------------------------------------------------------------------------------------------------- **string GetDirectory()** [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull#arguments) **Arguments** --------------------------------------------------------------------------------------------------------------- Name Type Description Placeholders Placeholder description Directory string Directory path %username% System username %cycdrive% System Disk %steam% Steam path %unknowfolder% All directories in path [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull#example) **Example** ----------------------------------------------------------------------------------------------------------- Copy new DirectoryFull("%steam%\\logs") [PreviousDirectoryFullAndroidchevron-left](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfullandroid) [NextDirectoryPaternchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern) Last updated 3 years ago * [Methods](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull#methods) * [Arguments](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull#arguments) * [Example](https://skillshop.gitbook.io/winbooster/winbooster.native/directoryfull#example) --- # GameOptimizeI | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/gameoptimizei#methods) Methods ------------------------------------------------------------------------------------------------------- **bool GameInstalled()** Check if game installed **string GameName()** Game name **void Optimize()** Optimize game **void SetOptimizeData(params int\[\] data)** Not used [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/gameoptimizei#example) **Example** ----------------------------------------------------------------------------------------------------------- Copy public class CustomGameOptimize : GameOptimizeI { public bool GameInstalled() { return true; } public string GameName() { return "My Game"; } public void Optimize() { Console.WriteLine("Типо оптимизация"); } public void SetOptimizeData(params int[] data) { throw new NotImplementedException(); } } [PreviousDirectoryPaternchevron-left](https://skillshop.gitbook.io/winbooster/winbooster.native/directorypatern) [NextFixerIchevron-right](https://skillshop.gitbook.io/winbooster/winbooster.native/fixeri) Last updated 3 years ago * [Methods](https://skillshop.gitbook.io/winbooster/winbooster.native/gameoptimizei#methods) * [Example](https://skillshop.gitbook.io/winbooster/winbooster.native/gameoptimizei#example) --- # FixerI | WinBooster [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/fixeri#methods) Methods ------------------------------------------------------------------------------------------------ **bool NeedFix()** Check if fix need **void Fix()** Fix software or windows [hashtag](https://skillshop.gitbook.io/winbooster/winbooster.native/fixeri#example) Example ------------------------------------------------------------------------------------------------ Copy public class TaskManager : FixerI { public void Fix() { RegistryKey regkey; string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"; try { regkey = Registry.CurrentUser.OpenSubKey(subKey, true); regkey.DeleteValue("DisableTaskMgr"); regkey.Close(); } catch { } } public bool NeedFix() { RegistryKey regkey; string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"; try { regkey = Registry.CurrentUser.OpenSubKey(subKey, true); var value = regkey.GetValue("DisableTaskMgr"); if (value.GetType() == typeof(int)) { int valueInt = (int)value; if (valueInt > 0) { return true; } } else { return true; } regkey.Close(); } catch { } return false; } } [PreviousGameOptimizeIchevron-left](https://skillshop.gitbook.io/winbooster/winbooster.native/gameoptimizei) Last updated 3 years ago * [Methods](https://skillshop.gitbook.io/winbooster/winbooster.native/fixeri#methods) * [Example](https://skillshop.gitbook.io/winbooster/winbooster.native/fixeri#example) --- # General | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/general/general#variables) Variables ------------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/general#currentscriptname-string) **currentScriptName** (_string_) [hashtag](https://skillshop.gitbook.io/hypixelcry/general/general#functions) Functions ------------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/general#registercommand-command-function-commandname-args-player-function-autocomplete) `registerCommand(command, function(commandName, args, player), function(autocomplete))` Send get request. **Parameters:** * `command` (string). * `callback` (function). * `auto complete` (function) **Example Usage:** Copy -- Example code showing how to use the function registerCommand("config", function(commandName, args, sender) local setting = args[1] or "" local value = args[2] or "" print("Config: " .. setting .. " = " .. value) end, function(info) local parts = {} for word in info.fullInput:gmatch("%S+") do table.insert(parts, word) end if #parts <= 2 then return {"render", "gameplay", "chat", "debug"} elseif #parts == 3 then local category = parts[2] if category == "render" then return {"fps", "distance", "shadows", "particles"} elseif category == "gameplay" then return {"difficulty", "autosave", "hints"} elseif category == "chat" then return {"filter", "timestamp", "colors"} end end return {} end ) [PreviousHomechevron-left](https://skillshop.gitbook.io/hypixelcry) [NextEventschevron-right](https://skillshop.gitbook.io/hypixelcry/general/events) Last updated 14 days ago * [Variables](https://skillshop.gitbook.io/hypixelcry/general/general#variables) * [currentScriptName (string)](https://skillshop.gitbook.io/hypixelcry/general/general#currentscriptname-string) * [Functions](https://skillshop.gitbook.io/hypixelcry/general/general#functions) * [registerCommand(command, function(commandName, args, player), function(autocomplete))](https://skillshop.gitbook.io/hypixelcry/general/general#registercommand-command-function-commandname-args-player-function-autocomplete) --- # Threads | Hypixel Cry | LuaAPI triangle-exclamation Don't use Minecraft methods in threads for avoid banning [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/threads#startthread-function) `startThread(function)` ----------------------------------------------------------------------------------------------------------------- Start thread **Parameters:** * `function` (function). **Return:** * number **Example Usage:** Copy -- Example code showing how to use the function local threadId = threads.startThread(function() local notification_command = 'snoretoast -t "' .. title .. '" -m "' .. message .. '"' os.execute(notification_command) end) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/threads#sleep-delay) `sleep(delay)` ----------------------------------------------------------------------------------------------- Sleep in thread **Parameters:** * `function` (function). **Example Usage:** [PreviousCreatorchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/creator) [NextHttpchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/http) Last updated 29 days ago * [startThread(function)](https://skillshop.gitbook.io/hypixelcry/libs/threads#startthread-function) * [sleep(delay)](https://skillshop.gitbook.io/hypixelcry/libs/threads#sleep-delay) Copy -- Example code showing how to use the function threads.sleep(100) --- # Events | Hypixel Cry | LuaAPI ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerunloadcallback-function) `registerUnloadCallback(function)` Registers a tick handler **Parameters:** * `function` (function). **Example Usage:** Copy -- Example code showing how to use the function registerUnloadCallback(function() print("Script unloaded") end) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerclienttick-function) `registerClientTick(function)` Registers a tick handler **Parameters:** * `function` (function). **Example Usage:** Copy -- Example code showing how to use the function local tick = 0 registerClientTick(function() tick = tick + 1 end) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerworldrenderer-function-context) `registerWorldRenderer(function(context))` Registers a world renderer handler **Parameters:** * `function` (function ([WorldRendererObject](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer) )). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#register2drenderer-function-context) `register2DRenderer(function(context))` Registers a world renderer handler **Parameters:** * `function` (function ([2DRendererObject](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer) )). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerlocationchangeevent-function-location) `registerLocationChangeEvent(function(location))` Registers a world renderer handler **Parameters:** * `function` (function ([2DRendererObject](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer) )). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registermessageevent-function-text-overlay-json) `registerMessageEvent(function(text, overlay, json))` Registers a world renderer handler **Parameters:** * `function` (function (text, overlay)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registersendmessageevent-function-text) `registerSendMessageEvent(function(text))` Registers a world renderer handler **Parameters:** * `function` (function (text, overlay)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registersendcommandevent-function-text) `registerSendCommandEvent(function(text))` Registers a world renderer handler **Parameters:** * `function` (function (text, overlay)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerkeyevent-function-key-action) `registerKeyEvent(function(key, action))` Registers a keyboard and mouse event **Parameters:** * `function` (function (key, action)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerblockupdate-function-update) `registerBlockUpdate(function(update))` Registers a keyboard and mouse event **Parameters:** * `function` (function ([old](https://skillshop.gitbook.io/hypixelcry/datatypes/block) , [new](https://skillshop.gitbook.io/hypixelcry/datatypes/block) )). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerserversiderotationevent-function-yaw-pitch) `registerServerSideRotationEvent(function(yaw, pitch))` Registers a player rotations from server **Parameters:** * `function` (function (yaw, pitch)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerserverteleportevent-function-yaw-pitch) `registerServerTeleportEvent(function(yaw, pitch))` Registers a player rotations from server **Parameters:** * `function` (function (yaw, pitch)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerinventoryitemchange-function-slot-item) `registerInventoryItemChange(function(slot, item))` Executed whenever there is a change in inventory or container **Parameters:** * `function` (function (slot, item)). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/general/events#registerspawnparticle-function-data) `registerSpawnParticle(function(data))` Executed when a particle spawns **Parameters:** * `function` (function (data)). **Example Usage:** [PreviousGeneralchevron-left](https://skillshop.gitbook.io/hypixelcry/general/general) [NextEncodingchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/encoding) Last updated 22 days ago * [registerUnloadCallback(function)](https://skillshop.gitbook.io/hypixelcry/general/events#registerunloadcallback-function) * [registerClientTick(function)](https://skillshop.gitbook.io/hypixelcry/general/events#registerclienttick-function) * [registerWorldRenderer(function(context))](https://skillshop.gitbook.io/hypixelcry/general/events#registerworldrenderer-function-context) * [register2DRenderer(function(context))](https://skillshop.gitbook.io/hypixelcry/general/events#register2drenderer-function-context) * [registerLocationChangeEvent(function(location))](https://skillshop.gitbook.io/hypixelcry/general/events#registerlocationchangeevent-function-location) * [registerMessageEvent(function(text, overlay, json))](https://skillshop.gitbook.io/hypixelcry/general/events#registermessageevent-function-text-overlay-json) * [registerSendMessageEvent(function(text))](https://skillshop.gitbook.io/hypixelcry/general/events#registersendmessageevent-function-text) * [registerSendCommandEvent(function(text))](https://skillshop.gitbook.io/hypixelcry/general/events#registersendcommandevent-function-text) * [registerKeyEvent(function(key, action))](https://skillshop.gitbook.io/hypixelcry/general/events#registerkeyevent-function-key-action) * [registerBlockUpdate(function(update))](https://skillshop.gitbook.io/hypixelcry/general/events#registerblockupdate-function-update) * [registerServerSideRotationEvent(function(yaw, pitch))](https://skillshop.gitbook.io/hypixelcry/general/events#registerserversiderotationevent-function-yaw-pitch) * [registerServerTeleportEvent(function(yaw, pitch))](https://skillshop.gitbook.io/hypixelcry/general/events#registerserverteleportevent-function-yaw-pitch) * [registerInventoryItemChange(function(slot, item))](https://skillshop.gitbook.io/hypixelcry/general/events#registerinventoryitemchange-function-slot-item) * [registerSpawnParticle(function(data))](https://skillshop.gitbook.io/hypixelcry/general/events#registerspawnparticle-function-data) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local filled = { x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, alpha = 140, through_walls = false } context.renderFilled(filled) end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local obj2 = { x = 3, y = 3, scale = 1, text = "§6Hypixel Cry §7v1.1.3", red = 0, green = 0, blue = 0 } context.renderText(obj2) local obj3 = { x = 3, y = 13, scale = 0.75, text = "§7by §bNeki_play§7, §bKreedMan", red = 0, green = 0, blue = 0 } context.renderText(obj3) end) Copy -- Example code showing how to use the function registerLocationChangeEvent(function(location) print(location) end) Copy -- Example code showing how to use the function registerMessageEvent(function(text, overlay, json) if text and not overlay then print(text) print(json) end end) Copy -- Example code showing how to use the function registerSendMessageEvent(function(text) if text then print(text) end end) Copy -- Example code showing how to use the function registerSendCommandEvent(function(text) if text then print(text) end end) Copy -- Example code showing how to use the function registerKeyEvent(function(key, action) if action == "Release" then elseif action == "Press" then end end) Copy -- Example code showing how to use the function registerBlockUpdate(function(update) local x = update.x local y = update.y local z = update.z local oldState = update.old local newState = update.new end) Copy -- Example code showing how to use the function registerServerSideRotationEvent(function(yaw, pitch) if yaw and pitch then if (yaw ~= config.rotations.yaw and pitch ~= config.rotations.pitch) and (pitch ~= 0 and yaw ~= 0) and (pitch ~= 0 and yaw ~= 90) and (pitch ~= 0 and yaw ~= 180) and (pitch ~= 0 and yaw ~= 270) then notifications.snowNotifty("Farm Macro", "You got rotated!") end end end) Copy -- Example code showing how to use the function registerServerSideTeleportEvent(function(x, y, z) if x and y and z then notifications.snowNotifty("Farm Macro", "You got teleported!") end end) Copy -- Example code showing how to use the function registerInventoryItemChange(function(slot, item) end) Copy -- Example code showing how to use the function registerSpawnParticle(function(data) local id = data.id -- number local x = data.x -- number local y = data.y -- number local z = data.z -- number local x_dist = data.x_dist -- number local y_dist = data.y_dist -- number local z_dist = data.z_dist -- number local max_speed = data.max_speed-- number local count = data.count-- number end) --- # Encoding | Hypixel Cry | LuaAPI chevron-rightSupported encodings[hashtag](https://skillshop.gitbook.io/hypixelcry/libs/encoding#supported-encodings) 1. UTF-8 2. UTF-16 3. UTF-16BE 4. UTF-16LE 5. UTF-32 6. UTF-32BE 7. UTF-32LE 8. ASCII 9. ISO-8859-1 10. CP1251 11. CP1252 12. KOI8-R 13. KOI8-U 14. WINDOWS-1251 [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/encoding#stringtobytes-text-encoding) `stringToBytes(text, encoding)` --------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `text` (string). * `encoding` (encoding). **Return:** * bytes, err **Example Usage:** Copy local text = "Hello, мир!" local bytes, err = encoding.stringToBytes(text, "UTF-8") if bytes then print(" Текст: " .. text) print(" Байты: ", table.concat({table.unpack(bytes)}, ", ")) else print(" Ошибка: " .. err) end [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/encoding#bytestostring-bytes-encoding) `bytesToString(bytes, encoding)` ----------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `bytes` (table). * `encoding` (encoding). **Return:** * string, err **Example Usage:** [PreviousEventschevron-left](https://skillshop.gitbook.io/hypixelcry/general/events) [NextCreatorchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/creator) Last updated 25 days ago * [stringToBytes(text, encoding)](https://skillshop.gitbook.io/hypixelcry/libs/encoding#stringtobytes-text-encoding) * [bytesToString(bytes, encoding)](https://skillshop.gitbook.io/hypixelcry/libs/encoding#bytestostring-bytes-encoding) Copy local decoded, err2 = encoding.bytesToString(bytes, "UTF-8") if decoded then print(" Декодировано: " .. decoded) print(" Совпадает с оригиналом: " .. tostring(decoded == text)) else print(" Ошибка: " .. err2) end --- # Creator | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/creator#createbox-minx-miny-minz-maxx-maxy-maxz) `createBox(minX, minY, minZ, maxX, maxY, maxZ)` ------------------------------------------------------------------------------------------------------------------------------------------------------------ Create [box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) . **Parameters:** * `minX` (double). * `minY` (double). * `minZ` (double). * `maxX` (double). * `maxY` (double). * `maxZ` (double). **Example Usage:** Copy -- Example code showing how to use the function local box = creator.createBox(0, 0, 0, 1, 1 ,1) registerWorldRenderer(function(context) local filled = { box = box, red = 255, green = 0, blue = 0, alpha = 140, through_walls = false } context.renderFilled(filled) end) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/creator#createitemstackfromid-id) `createItemStackFromId(id)` ------------------------------------------------------------------------------------------------------------------------- Create [item](https://skillshop.gitbook.io/hypixelcry/datatypes/item) . **Parameters:** * `id` (string). **Example Usage:** [PreviousEncodingchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/encoding) [NextThreadschevron-right](https://skillshop.gitbook.io/hypixelcry/libs/threads) Last updated 1 month ago * [createBox(minX, minY, minZ, maxX, maxY, maxZ)](https://skillshop.gitbook.io/hypixelcry/libs/creator#createbox-minx-miny-minz-maxx-maxy-maxz) * [createItemStackFromId(id)](https://skillshop.gitbook.io/hypixelcry/libs/creator#createitemstackfromid-id) Copy -- Example code showing how to use the function local hypa = creator.createItemStackFromId("HYPERION") register2DRenderer(function(context) if hypa then context.renderItemStack{ x = 5, y = 5, itemStack = hypa , scale = 0.75 } end end --- # TCP | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/tcp#connect-ip-port-timeout) `connect(ip, port, timeout)` --------------------------------------------------------------------------------------------------------------------- **Parameters:** * `ip` (string). * `port` (number) * `timeout` (number) **Return:** * number **Example Usage:** Copy -- Connect to example.com on port 80 local connectionId = tcp.connect("example.com", 80, 5000) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/tcp#sendbytes-connectionid-bytestable) `sendBytes(connectionId, bytesTable)` ---------------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `connectionId` (number). * `bytesTable` (table) **Return:** * boolean **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/tcp#receivebytes-connectionid-timeout-size) `receiveBytes(connectionId, timeout, size)` --------------------------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `connectionId` (number). * `timeout` (number) * `size` (number) **Return:** * table **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/tcp#disconnect-connectionid) `disconnect(connectionId)` ------------------------------------------------------------------------------------------------------------------- **Parameters:** * `connectionId` (number). **Return:** * boolean **Example Usage:** [PreviousHttpchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/http) [NextJsonchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/json) Last updated 7 days ago * [connect(ip, port, timeout)](https://skillshop.gitbook.io/hypixelcry/libs/tcp#connect-ip-port-timeout) * [sendBytes(connectionId, bytesTable)](https://skillshop.gitbook.io/hypixelcry/libs/tcp#sendbytes-connectionid-bytestable) * [receiveBytes(connectionId, timeout, size)](https://skillshop.gitbook.io/hypixelcry/libs/tcp#receivebytes-connectionid-timeout-size) * [disconnect(connectionId)](https://skillshop.gitbook.io/hypixelcry/libs/tcp#disconnect-connectionid) Copy local connectionId = tcp.connect("example.com", 80, 5000) if connectionId then local bytesTable = {} bytesTable[1] = 72 -- 'H' bytesTable[2] = 105 -- 'i' bytesTable[3] = 10 -- newline local success, sendError = tcp.sendBytes(connectionId, bytesTable) if success then print("✓ Bytes sent successfully") else print("✗ Send bytes failed: " .. sendError) end end Copy local connectionId = tcp.connect("example.com", 80, 5000) if connectionId then local bytesReceived, receiveError = tcp.receiveBytes(connectionId, 1000, 50) if bytesReceived then print("✓ Received " .. bytesReceived.length() .. " bytes") local data = encoding.bytesToString(bytesReceived, "UTF-8") else print("✗ Receive bytes failed: " .. receiveError) end end Copy local connectionId = tcp.connect("example.com", 80, 5000) if connectionId then local bytesReceived, receiveError = tcp.receiveBytes(connectionId, 1000, 50) if bytesReceived then print("✓ Received " .. bytesReceived.length() .. " bytes") local data = encoding.bytesToString(bytesReceived, "UTF-8") else print("✗ Receive bytes failed: " .. receiveError) end tcp.disconnect(connectionId) end --- # Http | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/http#get-url-timeout) `get(url, timeout)` ----------------------------------------------------------------------------------------------------- Send get request. **Parameters:** * `url` (string). * `timeout` (number). **Example Usage:** Copy -- Example code showing how to use the function local response = encoding.bytesToString(http.get("http://ip-api.com/json/24.48.0.1", 5000), "UTF-8") local js = json.parse(response) player.addMessage(js.country) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/http#get_with_headers-url-headers) `get_with_headers(url, headers)` ------------------------------------------------------------------------------------------------------------------------------- Send get request. **Parameters:** * `url` (string). * `headers` (table). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/http#get_async_callback-url-function-response-error) `get_async_callback(url, function(response, error))` --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Send async get request. **Parameters:** * `url` (string). * `function` (function). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/http#get_async_with_headers_callback-url-headers-function-response-error) `get_async_with_headers_callback(url, headers, function(response, error))` ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Send async get request. **Parameters:** * `url` (string). * `headers` (table). * `function` (function). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/http#post_async_with_headers_callback-url-headers-json_body-function-response-error) `post_async_with_headers_callback(url, headers, json_body, function(response, error))` --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Send async post request. **Parameters:** * `url` (string). * `headers` (table). * `json_body` (string). * `function` (function). **Example Usage:** [PreviousThreadschevron-left](https://skillshop.gitbook.io/hypixelcry/libs/threads) [NextTCPchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/tcp) Last updated 25 days ago * [get(url, timeout)](https://skillshop.gitbook.io/hypixelcry/libs/http#get-url-timeout) * [get\_with\_headers(url, headers)](https://skillshop.gitbook.io/hypixelcry/libs/http#get_with_headers-url-headers) * [get\_async\_callback(url, function(response, error))](https://skillshop.gitbook.io/hypixelcry/libs/http#get_async_callback-url-function-response-error) * [get\_async\_with\_headers\_callback(url, headers, function(response, error))](https://skillshop.gitbook.io/hypixelcry/libs/http#get_async_with_headers_callback-url-headers-function-response-error) * [post\_async\_with\_headers\_callback(url, headers, json\_body, function(response, error))](https://skillshop.gitbook.io/hypixelcry/libs/http#post_async_with_headers_callback-url-headers-json_body-function-response-error) Copy -- Example code showing how to use the function local headers = {["User-Agent"] = "LuaJ-HTTP-Client/1.0"} local response = encoding.bytesToString(http.get_with_headers("http://ip-api.com/json/24.48.0.1", headers), "UTF-8") local js = json.parse(response) player.addMessage(js.country) Copy -- Example code showing how to use the function http.get_async_callback("http://ip-api.com/json/88.88.88.88", function(response, error) if error then print("Error:", error) else local js = encoding.bytesToString(json.parse(response), "UTF-8)" player.addMessage(js.country) end end) Copy -- Example code showing how to use the function local headers = {["User-Agent"] = "LuaJ-HTTP-Client/1.0"} http.get_async_with_headers_callback("http://ip-api.com/json/88.88.88.88", headers, function(response, error) if error then print("Error:", error) else local js = encoding.bytesToString(json.parse(response), "UTF-8") player.addMessage(js.country) end end) Copy local headers = { ['Authorization'] = 'Bearer ', ['HTTP-Referer'] = 'https://github.com/Nekiplay/Hypixel-Cry', ['X-Title'] = 'Hypixel Cry', ['Content-Type'] = 'application/json' } local body_data = { model = 'glm-4.7-flash', stream = false, messages = { { role = "user", content = "Hello" } } } local json_body = json.stringify(body_data) http.post_async_with_headers_callback( 'https://api.z.ai/api/paas/v4/chat/completions', headers, json_body, function(response, error) if error then player.addMessage(error) else print(response) local result = encoding.bytesToString(json.parse(response), "UTF-8") player.addMessage("AI response: '" .. result.choices[1].message.content .. "'") end end ) --- # Json | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/json#parse-json) `parse(json)` ------------------------------------------------------------------------------------------ Parse string to table **Parameters:** * `json` (string). **Return:** * table **Example Usage:** Copy -- Example code showing how to use the function local response = http.get("http://ip-api.com/json/24.48.0.1", 5000) local js = json.parse(response) player.addMessage(js.country) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/json#stringify-table) `stringify(table)` ---------------------------------------------------------------------------------------------------- Converts a table to a json string **Parameters:** * table (table). **Return:** * string **Example Usage:** [PreviousTCPchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/tcp) [NextCatboostchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/catboost) Last updated 1 month ago * [parse(json)](https://skillshop.gitbook.io/hypixelcry/libs/json#parse-json) * [stringify(table)](https://skillshop.gitbook.io/hypixelcry/libs/json#stringify-table) Copy -- Example code showing how to use the function local position = { x = 0, y = 0, z = 0 } local js = json.stringify(position) player.addMessage(js) --- # Catboost | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/catboost#loadmodel-path) `loadModel(path)` ------------------------------------------------------------------------------------------------------ Load model from path **Parameters:** * `path` (string). **Return:** * [model](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-model) **Example Usage:** Copy -- Example code showing how to use the function local model = catboost.loadModel("model.cbm") [PreviousJsonchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/json) [NextCat Boost Modelchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-model) Last updated 1 month ago --- # Cat Boost Model | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-model#predict-features-labels) `predict(features, labels)` ----------------------------------------------------------------------------------------------------------------------------------------- Predict **Parameters:** * `features` (list float). * `labels` (list string). **Return:** * [predictions](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-predictions) **Example Usage:** Copy -- Example code showing how to use the function local model = catboost.loadModel("model.cbm") local predictions = model.predict({0, 1}, {"Apple", "Banana"}) [PreviousCatboostchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/catboost) [NextCat Boost Predictionschevron-right](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-predictions) Last updated 1 month ago --- # Cat Boost Predictions | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-predictions#get-onjectindex-predictionindex) `get(onjectIndex, predictionIndex)` --------------------------------------------------------------------------------------------------------------------------------------------------------------- Get result **Parameters:** * `path` (string). **Return:** * number **Example Usage:** Copy -- Example code showing how to use the function local model = catboost.loadModel("model.cbm") local predictions = model.predict({0.1, 0.3, 0.2}, {"foo", "bar", "baz"}) local result = predictions.get(0, 0) [PreviousCat Boost Modelchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-model) [NextImGUIchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/imgui) Last updated 1 month ago --- # Map | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#variables) Variables ----------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#scale-number) **scale** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#locked-boolean) **locked** (_boolean_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#tracking_position-boolean) **tracking\_position (**_boolean_**)** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#unlimited_tracking-boolean) **unlimited\_tracking** (_boolean_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#dimension-string) **dimension** (_string_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#center_x-number) **center\_x** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#center_z-number) **center\_z** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#is_exploration_map-boolean) **is\_exploration\_map** (_boolean_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#tracked_decoration_count-number) **tracked\_decoration\_count** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#banners-list-id-name-color-x-y-z) **banners** (_list_) { id, name, color, x, y, z } ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#decorations-list-type-x-y-rot-name) **decorations** (_list_) { type, x, y, rot, name } ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#frame_markers-list-id-entity_id-x-y-z-rotation) **frame\_markers** (_list_) { id, entity\_id, x, y, z, rotation } ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#color_data-list) **color\_data** (_list_) [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#functions) Functions ----------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#getcolor-x-z) `getColor(x, z)` Get color from map. **Returns:** * (number) Return color. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/map#updatecolor-x-z-color) `updateColor(x, z, color)` Update color in map. **Returns:** * (number) New color. **Example Usage:** [PreviousBoxchevron-left](https://skillshop.gitbook.io/hypixelcry/datatypes/box) [NextItemchevron-right](https://skillshop.gitbook.io/hypixelcry/datatypes/item) Last updated 14 days ago * [Variables](https://skillshop.gitbook.io/hypixelcry/datatypes/map#variables) * [scale (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#scale-number) * [locked (boolean)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#locked-boolean) * [tracking\_position (boolean)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#tracking_position-boolean) * [unlimited\_tracking (boolean)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#unlimited_tracking-boolean) * [dimension (string)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#dimension-string) * [center\_x (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#center_x-number) * [center\_z (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#center_z-number) * [is\_exploration\_map (boolean)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#is_exploration_map-boolean) * [tracked\_decoration\_count (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#tracked_decoration_count-number) * [banners (list) { id, name, color, x, y, z }](https://skillshop.gitbook.io/hypixelcry/datatypes/map#banners-list-id-name-color-x-y-z) * [decorations (list) { type, x, y, rot, name }](https://skillshop.gitbook.io/hypixelcry/datatypes/map#decorations-list-type-x-y-rot-name) * [frame\_markers (list) { id, entity\_id, x, y, z, rotation }](https://skillshop.gitbook.io/hypixelcry/datatypes/map#frame_markers-list-id-entity_id-x-y-z-rotation) * [color\_data (list)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#color_data-list) * [Functions](https://skillshop.gitbook.io/hypixelcry/datatypes/map#functions) * [getColor(x, z)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#getcolor-x-z) * [updateColor(x, z, color)](https://skillshop.gitbook.io/hypixelcry/datatypes/map#updatecolor-x-z-color) Copy -- Example code showing how to use the function local map_item = player.inventory.getStack(8) local map_data = map_item.map if map_data then local color = map_data.getColor(0, 0) end Copy -- Example code showing how to use the function local map_item = player.inventory.getStack(8) local map_data = map_item.map if map_data then map_data.updateColor(0, 0, 0) -- 0 color its transparent end --- # Entity | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/entity#variables) Variables -------------------------------------------------------------------------------------------- **id** (_string_) **uuid** (_string_) **name** (_string_) **display\_name** (_string_) **health** (_number_) **max\_health** (_number_) **is\_alive** (_boolean_) **is\_child** (_boolean_) **type** (_string_) **x** (_number_) **y** (_number_) **z** (_number_) **pos** (table) { x, y, z } **velocity\_x** (_number_) **velocity\_y** (_number_) **velocity\_z** (_number_) **width** (_number_) **height** (_number_) **yaw** (_number_) **pitch** (_number_) **is\_on\_ground** (_boolean_) **is\_touching\_water** (_boolean_) **is\_in\_lava** (_boolean_) **is\_sneaking** (_boolean_) **is\_sprinting** (_boolean_) **age** (_number_) **distance\_to\_player** (**number**) box ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) **item** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) (has only for Item entity and ItemFrame entity) **main\_hand** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) **off\_hand** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) **head** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) **chest** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) **legs** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) **feet** ([_ItemData_](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ) [PreviousItemchevron-left](https://skillshop.gitbook.io/hypixelcry/datatypes/item) [NextBlockchevron-right](https://skillshop.gitbook.io/hypixelcry/datatypes/block) Last updated 1 month ago --- # Constants | Hypixel Cry | LuaAPI Window Flags Cond Color Edit Color Style Table Flags * WindowFlags\_None * WindowFlags\_NoTitleBar * WindowFlags\_NoResize * WindowFlags\_NoMove * WindowFlags\_NoScrollbar * WindowFlags\_NoCollapse * Cond\_Always * Cond\_Once * Cond\_FirstUseEver * ColorEditFlags\_None * ColorEditFlags\_NoAlpha * ColorEditFlags\_NoPicker * Col\_Text * Col\_TextDisabled * Col\_WindowBg * Col\_ChildBg * Col\_PopupBg * Col\_Border * Col\_BorderShadow * Col\_FrameBg * Col\_FrameBgHovered * Col\_FrameBgActive * Col\_TitleBg * Col\_TitleBgActive * Col\_TitleBgCollapsed * Col\_MenuBarBg * Col\_ScrollbarBg * Col\_ScrollbarGrab * Col\_ScrollbarGrabHovered * Col\_ScrollbarGrabActive * Col\_CheckMark * Col\_SliderGrab * Col\_SliderGrabActive * Col\_Button * Col\_ButtonHovered * Col\_ButtonActive * Col\_Header * Col\_HeaderHovered * Col\_HeaderActive * Col\_Separator * Col\_SeparatorHovered * Col\_SeparatorActive * Col\_ResizeGrip * Col\_ResizeGripHovered * Col\_ResizeGripActive * Col\_Tab * Col\_TabHovered * Col\_TabActive * Col\_TabUnfocused * Col\_TabUnfocusedActive * Col\_PlotLines * Col\_PlotLinesHovered * Col\_PlotHistogram * Col\_PlotHistogramHovered * Col\_TableHeaderBg * Col\_TableBorderStrong * Col\_TableBorderLight * Col\_TableRowBg * Col\_TableRowBgAlt * Col\_TextSelectedBg * Col\_DragDropTarget * Col\_NavHighlight * Col\_NavWindowingHighlight * Col\_NavWindowingDimBg * Col\_ModalWindowDimBg * StyleVar\_Alpha * StyleVar\_DisabledAlpha * StyleVar\_WindowPadding * StyleVar\_WindowRounding * StyleVar\_WindowBorderSize * StyleVar\_WindowMinSize * StyleVar\_WindowTitleAlign * StyleVar\_ChildRounding * StyleVar\_ChildBorderSize * StyleVar\_PopupRounding * StyleVar\_PopupBorderSize * StyleVar\_FramePadding * StyleVar\_FrameRounding * StyleVar\_FrameBorderSize * StyleVar\_ItemSpacing * StyleVar\_ItemInnerSpacing * StyleVar\_IndentSpacing * StyleVar\_CellPadding * StyleVar\_ScrollbarSize * StyleVar\_ScrollbarRounding * StyleVar\_GrabMinSize * StyleVar\_GrabRounding * StyleVar\_TabRounding * StyleVar\_ButtonTextAlign * StyleVar\_SelectableTextAlign * TableFlags\_BordersInner * TableFlags\_BordersInnerH * TableFlags\_BordersInnerV * TableFlags\_Resizable [PreviousImGUIchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/imgui) [NextDraw listchevron-right](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list) Last updated 1 month ago --- # Draw list | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#renderline-object) `renderLine(object)` ------------------------------------------------------------------------------------------------------------------- Render line **Parameters:** * `object` (table). **Example Usage:** Copy -- An example on how to use the function register2DRenderer(function(context) local line = { x1 = 100, y1 = 100, x2 = 110, y2 = 110, red = 255, green = 0, blue = 0, alpha = 255 } -- same applies to lines, coordinates are in pixels imgui.dl.renderLine(line) end) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#renderpolygon-object) `renderPolygon(object)` ------------------------------------------------------------------------------------------------------------------------- Render polygon **Parameters:** * `object` (table). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#rendertext-object) `renderText(object)` ------------------------------------------------------------------------------------------------------------------- Render text **Parameters:** * `object` (table). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#renderimage-object) `renderImage(object)` --------------------------------------------------------------------------------------------------------------------- Render image **Parameters:** * `object` (table). **Example Usage:** [PreviousConstantschevron-left](https://skillshop.gitbook.io/hypixelcry/libs/imgui/constants) [NextBoxchevron-right](https://skillshop.gitbook.io/hypixelcry/datatypes/box) Last updated 1 day ago * [renderLine(object)](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#renderline-object) * [renderPolygon(object)](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#renderpolygon-object) * [renderText(object)](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#rendertext-object) * [renderImage(object)](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list#renderimage-object) Copy -- An example on how to use the function register2DRenderer(function(context) local polygon = { points = { { x = 300, y = 150 }, { x = 400, y = 150 }, { x = 400, y = 250 }, { x = 300, y = 250 }, }, red = 255, green = 0, blue = 0, alpha = 255 } -- coordinates are set in PIXELS not minecraft ui coordinates imgui.dl.renderPolygon(polygon) end) Copy -- An example on how to use the function register2DRenderer(function(context) imgui.dl.renderText{ x = 100, y = 100, text = "Hello", red = 255, green = 255, blue = 255, alpha = 255 } end) Copy -- An example on how to use the function local compost_image = imgui.createImageObject() local loading_result = compost_image.loadImage("config/hypixelcry/scripts/images/compost.png") registerUnloadCallback(function() compost_image.release() end) register2DRenderer(function(context) imgui.dl.renderImage{ textureID = compost_image.getId(), x = 0, y = 0, width = 16, height = 16, uvMinX = 0, uvMinY = 0, uvMaxX = 1, uvMaxY = 1, red = 255, green = 255, blue = 255, alpha = 255 } end) --- # Block | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/block#variables) Variables ------------------------------------------------------------------------------------------- **id** (_number_) **name** (_string_) **hardness** (_number_) **blast\_resistance** (_number_) **is\_solid** (_boolean_) **is\_liquid** (_boolean_) **is\_air** (_boolean_) **age** (_number_) (only for crops) **layers** (_number_) (only for snow layers) **extended** (_boolean_) (only for piston) **facing** (_string_) (only for directional blocks) **is\_still** (_boolean_) (only for water or waterloged blocks) **power** (_number_) (only for redstone wire) **delay** (_number_) (only for redstone repeater) [PreviousEntitychevron-left](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) [NextPlayerchevron-right](https://skillshop.gitbook.io/hypixelcry/player-objects/player) Last updated 23 days ago --- # Item | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/item#variables) Variables ------------------------------------------------------------------------------------------ **count** (_number_) **max\_count** (_number_) **name** (_string_) **display\_name** (_string_) **skyblock\_id** (_string_) **neu\_id** (_string_) **uuid** (_string_) **is\_stackable** (_boolean)_ **head\_texture** (_string_) **reforge\_modifier** (_string_) **is\_recombobulated** (_boolean_) **is\_museum\_donated** (_boolean_) **is\_enchanted** _(boolean)_ **lore** (_table list_) **enchantmets** (_table list_) **map** ([Map](https://skillshop.gitbook.io/hypixelcry/datatypes/map) ) [PreviousMapchevron-left](https://skillshop.gitbook.io/hypixelcry/datatypes/map) [NextEntitychevron-right](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) Last updated 16 days ago --- # Box | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#variables) Variables ----------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#minx-number) **minX** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#miny-number) **minY** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#minz-number) **minZ** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#maxx-number) **maxX** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#maxy-number) **maxY** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#maxz-number) **maxZ** (_number_) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#min-table-x-y-z) **min** (_table_) { x, y, z } ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#max-table-x-y-z) **max** (_table_) { x, y, z } [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#functions) Functions ----------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getsize) `getSize()` Return box size. **Returns:** * (number) Box size. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getxsize) `getXSize()` Return box x size. **Returns:** * (number) Box x size. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getzsize) `getZSize()` Return box z size. **Returns:** * (number) Box z size. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getysize) `getYSize()` Return box y size. **Returns:** * (number) Box y size. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getcenter) `getCenter()` Return box y size. **Returns:** * (table) { x, y, z }. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setminx-number) `setMinX(number)` Change box mix x size. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setminy-number) `setMinY(number)` Change box mix y size. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setminz-number) `setMinZ(number)` Change box mix z size. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setmaxx-number) `setMaxX(number)` Change box max x size. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setmaxy-number) `setMaxY(number)` Change box max y size. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setmaxz-number) `setMaxZ(number)` Change box max z size. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#expand-x-y-z) `expand(x, y, z)` Expand box. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#inflate-x-y-z) `inflate(x, y, z)` Inflate box. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#deflate-x-y-z) `deflate(x, y, z)` Deflate box. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#intersect-x-y-z) `intersect(x, y, z)` Intersect box. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/datatypes/box#move-x-y-z) `move(x, y, z)` Move box. **Returns:** * ([Box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) Return new box. **Example Usage:** [PreviousDraw listchevron-left](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list) [NextMapchevron-right](https://skillshop.gitbook.io/hypixelcry/datatypes/map) Last updated 1 month ago * [Variables](https://skillshop.gitbook.io/hypixelcry/datatypes/box#variables) * [minX (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#minx-number) * [minY (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#miny-number) * [minZ (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#minz-number) * [maxX (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#maxx-number) * [maxY (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#maxy-number) * [maxZ (number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#maxz-number) * [min (table) { x, y, z }](https://skillshop.gitbook.io/hypixelcry/datatypes/box#min-table-x-y-z) * [max (table) { x, y, z }](https://skillshop.gitbook.io/hypixelcry/datatypes/box#max-table-x-y-z) * [Functions](https://skillshop.gitbook.io/hypixelcry/datatypes/box#functions) * [getSize()](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getsize) * [getXSize()](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getxsize) * [getZSize()](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getzsize) * [getYSize()](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getysize) * [getCenter()](https://skillshop.gitbook.io/hypixelcry/datatypes/box#getcenter) * [setMinX(number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setminx-number) * [setMinY(number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setminy-number) * [setMinZ(number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setminz-number) * [setMaxX(number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setmaxx-number) * [setMaxY(number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setmaxy-number) * [setMaxZ(number)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#setmaxz-number) * [expand(x, y, z)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#expand-x-y-z) * [inflate(x, y, z)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#inflate-x-y-z) * [deflate(x, y, z)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#deflate-x-y-z) * [intersect(x, y, z)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#intersect-x-y-z) * [move(x, y, z)](https://skillshop.gitbook.io/hypixelcry/datatypes/box#move-x-y-z) Copy -- Example code showing how to use the function local box = player.entity.box local size = box.getSize() Copy -- Example code showing how to use the function local box = player.entity.box local size = box.getXSize() Copy -- Example code showing how to use the function local box = player.entity.box local size = box.getZSize() Copy -- Example code showing how to use the function local box = player.entity.box local size = box.getYSize() Copy -- Example code showing how to use the function local box = player.entity.box local center = box.getCenter() local x = center.x local y = center.y local z = center.z Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.setMinX(1) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.setMinY(1) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.setMinZ(1) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.setMaxX(1) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.setMaxY(1) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.setMaxZ(1) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.expand(0.0, 2.0, 0.0) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.inflate(0.0, 2.0, 0.0) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.deflate(1.0, 1.0, 1.0) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.intersect(1.0, 1.0, 1.0) Copy -- Example code showing how to use the function local box = player.entity.box local newBox = box.move(0.0, 2.0, 0.0) --- # Inventory | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#isanyscreenopened) `isAnyScreenOpened()` ------------------------------------------------------------------------------------------------------------------------------- Returns true if any screen opened. **Returns:** * (boolean). Copy -- Example code showing how to use the function local isOpened = player.inventory.isAnyScreenOpened() [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#issignopened) `isSignOpened()` --------------------------------------------------------------------------------------------------------------------- Returns true if sign opened. **Returns:** * (boolean). Copy -- Example code showing how to use the function local isOpened = player.inventory.isSignOpened() [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getsigntext-line) `getSignText(line)` ---------------------------------------------------------------------------------------------------------------------------- Returns line of sign. **Returns:** * (string). [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#setsigntext-line-text) `setSignText(line, text)` --------------------------------------------------------------------------------------------------------------------------------------- Returns true if success. **Returns:** * (boolean) return **true** is successfully. [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#donesign) `doneSign()` ------------------------------------------------------------------------------------------------------------- Returns true if success. **Returns:** * (boolean) return **true** is successfully. [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getchesttitle) `getChestTitle()` ----------------------------------------------------------------------------------------------------------------------- Returns chest title. **Returns:** * (string). [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getstack-slot) `getStack(slot)` ---------------------------------------------------------------------------------------------------------------------- Returns the item in the slot. **Parameters:** * `slot` (number) - Slot id. **Returns:** * ([item data](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getstackfromcontainer-slot) `getStackFromContainer(slot)` ------------------------------------------------------------------------------------------------------------------------------------------------ Returns the item in the slot. **Parameters:** * `slot` (number) - Slot id. **Returns:** * ([item data](https://skillshop.gitbook.io/hypixelcry/datatypes/item) ). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getcontainerslots) `getContainerSlots()` ------------------------------------------------------------------------------------------------------------------------------- Returns the number of slots in an open container. **Returns:** * (number) - Int. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#leftclick-slot) `leftClick(slot)` ------------------------------------------------------------------------------------------------------------------------ Returns true if successfully. **Parameters:** * `slot` (number) - Slot id. **Returns:** * (boolean). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#middleclick-slot) `middleClick(slot)` ---------------------------------------------------------------------------------------------------------------------------- Returns true if successfully. **Parameters:** * `slot` (number) - Slot id. **Returns:** * (boolean). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#rightclick-slot) `rightClick(slot)` -------------------------------------------------------------------------------------------------------------------------- [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#undefined) ------------------------------------------------------------------------------------------------ Returns true if successfully. **Parameters:** * `slot` (number) - Slot id. **Returns:** * (boolean). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#dropall-slot) `dropAll(slot)` -------------------------------------------------------------------------------------------------------------------- Returns true if successfully. **Parameters:** * `slot` (number) - Slot id. **Returns:** * (boolean). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#closescreen) `closeScreen()` ------------------------------------------------------------------------------------------------------------------- Closes an open screen (chest, inventory, etc.) **Returns:** * (boolean). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#openinventory) `openInventory()` ----------------------------------------------------------------------------------------------------------------------- Open player inventory **Returns:** * (boolean). **Example Usage:** [PreviousPlayerchevron-left](https://skillshop.gitbook.io/hypixelcry/player-objects/player) [NextInputchevron-right](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input) Last updated 7 days ago * [isAnyScreenOpened()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#isanyscreenopened) * [isSignOpened()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#issignopened) * [getSignText(line)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getsigntext-line) * [setSignText(line, text)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#setsigntext-line-text) * [doneSign()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#donesign) * [getChestTitle()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getchesttitle) * [getStack(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getstack-slot) * [getStackFromContainer(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getstackfromcontainer-slot) * [getContainerSlots()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#getcontainerslots) * [leftClick(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#leftclick-slot) * [middleClick(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#middleclick-slot) * [rightClick(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#rightclick-slot) * [](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#undefined) * [dropAll(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#dropall-slot) * [closeScreen()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#closescreen) * [openInventory()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory#openinventory) Copy -- Example code showing how to use the function if player.inventory.isSignOpened() then local line = player.inventory.getSignText(0) end Copy -- Example code showing how to use the function if player.inventory.isSignOpened() then local status = player.inventory.setSignText(0, "1000") end Copy -- Example code showing how to use the function if player.inventory.isSignOpened() then local status = player.inventory.setSignText(0, "1000") player.inventory.doneSign() end Copy -- Example code showing how to use the function local title = player.inventory.getChestTitle() Copy -- Example code showing how to use the function local item = player.inventory.getStack(36) Copy -- Example code showing how to use the function local item = player.inventory.getStackFromContainer(36) Copy -- Example code showing how to use the function local slots = player.inventory.getContainerSlots() Copy -- Example code showing how to use the function player.inventory.leftClick(0) Copy -- Example code showing how to use the function player.inventory.middleClick(0) Copy -- Example code showing how to use the function player.inventory.rightClick(0) Copy -- Example code showing how to use the function player.inventory.dropAll(0) Copy -- Example code showing how to use the function player.inventory.closeScreen() Copy -- Example code showing how to use the function player.inventory.openInventory() --- # PathFinder | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#ishaspath-id) `isHasPath(id)` --------------------------------------------------------------------------------------------------------------- **Parameters:** * `id` (string) **Returns:** * (boolean) Return (true) if has. **Example Usage:** Copy -- Example code showing how to use the function local isHasCustom = modules.pathFinder.isHasPath("Custom") -- Custom used for /path command [hashtag](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#removepath-id) `removePath(id)` ----------------------------------------------------------------------------------------------------------------- **Parameters:** * `id` (string) **Returns:** * (boolean) Return true. **Example Usage:** Copy -- Example code showing how to use the function local status = modules.pathFinder.removePath("Custom") [hashtag](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#addorupdatepath-path) `addOrUpdatePath(path)` ------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `path` (table) **Returns:** * (boolean) Return true. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#getpathblocks-id) `getPathBlocks(id)` ----------------------------------------------------------------------------------------------------------------------- **Parameters:** * `id` (string) **Returns:** * (table) Return list of blockpos. **Example Usage:** [Previous2D rendererchevron-left](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer) Last updated 3 months ago * [isHasPath(id)](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#ishaspath-id) * [removePath(id)](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#removepath-id) * [addOrUpdatePath(path)](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#addorupdatepath-path) * [getPathBlocks(id)](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder#getpathblocks-id) Copy -- Example code showing how to use the function local path = { x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, alpha = 140, id = "Custom", end_text = "Lua Path", smooth = true, updater = false } local status = modules.pathFinder.addOrUpdatePath(path) Copy -- Example code showing how to use the function local blocks = modules.pathFinder.getPathBlocks("Custom") for index, block in ipairs(blocks) do if block ~= nil then local x = block.x local y = block.y local z = block.z end end --- # Network | Hypixel Cry | LuaAPI ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#getplayerslist) `getPlayersList()` Get players list. **Returns:** * (table) Return list players. **Example Usage:** Copy -- Example code showing how to use the function local list = player.network.getPlayersList() for index, pl in pairs(list) do if pl.name then player.addMessage(pl.name) end if pl.display_name then player.addMessage(pl.display_name) end player.addMessage(tostring(pl.latency)) if pl.id then player.addMessage(tostring(pl.id)) end if pl.gamemode then player.addMessage(pl.gamemode) end if pl.skin_texture then player.addMessage(pl.skin_texture) end end ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#sendstartdestroyblockpacket-x-y-z-direction) `sendStartDestroyBlockPacket(x, y, z, direction)` Send block breaking packet. **Parameters:** * `x` (number). * `y` (number). * `z` (number). * `direction` (string) UP, DOWN, NORTH, SOUTH, WEST, EAST **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#sendstopdestroyblockpacket-x-y-z-direction) `sendStopDestroyBlockPacket(x, y, z, direction)` Send block stop breaking packet. **Parameters:** * `x` (number). * `y` (number). * `z` (number). * `direction` (string) UP, DOWN, NORTH, SOUTH, WEST, EAST **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#sendstopabortblockpacket-x-y-z-direction) `sendStopAbortBlockPacket(x, y, z, direction)` Send cancel block breaking bpacket. **Parameters:** * `x` (number). * `y` (number). * `z` (number). * `direction` (string) UP, DOWN, NORTH, SOUTH, WEST, EAST **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [PreviousInputchevron-left](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input) [NextWorldchevron-right](https://skillshop.gitbook.io/hypixelcry/world-objects/world) Last updated 4 months ago * [getPlayersList()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#getplayerslist) * [sendStartDestroyBlockPacket(x, y, z, direction)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#sendstartdestroyblockpacket-x-y-z-direction) * [sendStopDestroyBlockPacket(x, y, z, direction)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#sendstopdestroyblockpacket-x-y-z-direction) * [sendStopAbortBlockPacket(x, y, z, direction)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network#sendstopabortblockpacket-x-y-z-direction) Copy -- Example code showing how to use the function player.network.sendStartDestroyBlockPacket(0, 0, 0, "DOWN") Copy -- Example code showing how to use the function player.network.sendStopDestroyBlockPacket(0, 0, 0, "DOWN") Copy -- Example code showing how to use the function player.network.sendAbortBlockPacket(0, 0, 0, "DOWN") --- # 2D renderer | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#getwindowscale) `getWindowScale()` ----------------------------------------------------------------------------------------------------------------------- Return minecraft window scale. **Returns:** * (table) (width, height) **Example Usage:** Copy -- Example code showing how to use the function register2DRenderer(function(context) local scale = context.getWindowScale() local width = scale.width -- Number local height = scale.height -- Number end) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#gettextwidth-str) `getTextWidth(str)` -------------------------------------------------------------------------------------------------------------------------- raws a 2D text. **Parameters:** * `object` (table (x, y, red, green, blue, text)) **Returns:** * (number) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#rendertext-object) `renderText(object)` ---------------------------------------------------------------------------------------------------------------------------- Draws a 2D text. **Parameters:** * `object` (table (x, y, red, green, blue, text)) **Returns:** * (boolean) Return true if successfully **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderimage-object) `renderImage(object)` ------------------------------------------------------------------------------------------------------------------------------ Draws a 2D text. **Parameters:** * `object` (table (x, y, path, width, height)) **Returns:** * (boolean) Return true if successfully **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderrect-object) `renderRect(object)` ---------------------------------------------------------------------------------------------------------------------------- Draws a 2D rectangle. **Parameters:** * `object` (table (x, y, width, height, red, green, blue, alpha)) **Returns:** * (boolean) Return true if successfully **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderline-object) `renderLine(object)` ---------------------------------------------------------------------------------------------------------------------------- Draws a 2D line. **Parameters:** * `object` (table) **Returns:** * (boolean) Return true if successfully **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderpolygon-object) `renderPolygon(object)` ---------------------------------------------------------------------------------------------------------------------------------- Draws a 2D rectangle. **Parameters:** * `object` (table) **Returns:** * (boolean) Return true if successfully **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderitemstack-object) `renderItemStack(object)` -------------------------------------------------------------------------------------------------------------------------------------- Draws a 2D Item. **Parameters:** * `object` (table) **Returns:** * (boolean) Return true if successfully **Example Usage:** [PreviousWorld rendererchevron-left](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer) [NextPathFinderchevron-right](https://skillshop.gitbook.io/hypixelcry/modules-objects/pathfinder) Last updated 4 months ago * [getWindowScale()](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#getwindowscale) * [getTextWidth(str)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#gettextwidth-str) * [renderText(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#rendertext-object) * [renderImage(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderimage-object) * [renderRect(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderrect-object) * [renderLine(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderline-object) * [renderPolygon(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderpolygon-object) * [renderItemStack(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer#renderitemstack-object) Copy -- Example code showing how to use the function register2DRenderer(function(context) local text = "§6Hypixel Cry §7v1.1.3" local wigth = context.getTextWidth(text) end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local obj2 = { x = 3, y = 3, scale = 1, text = "§6Hypixel Cry §7v1.1.3", red = 0, green = 0, blue = 0 } context.renderText(obj2) local obj3 = { x = 3, y = 13, scale = 0.75, text = "§7by §bNeki_play§7, §bKreedMan", red = 0, green = 0, blue = 0 } context.renderText(obj3) end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local obj = { x = 1, y = 4, width = 16, height = 16, path = "config/hypixelcry/scripts/images/logo.png", } context.renderImage(obj) end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local obj = { x = 1, y = 1, width = 16, height = 16, red = 255, green = 0, blue = 0, } context.renderRect(obj) end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local obj = { x1 = 1, y1 = 1, x2 = 10, y2 = 10, red = 255, green = 0, blue = 0, } context.renderLine(obj) end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local obj = { points = { { x = 300, y = 150 }, { x = 400, y = 150 }, { x = 350, y = 250 } }, red = 255, green = 0, blue = 0, } context.renderPolygon(obj) -- Render triangle end) Copy -- Example code showing how to use the function register2DRenderer(function(context) local item = player.inventory.getStack(0) if item then context.renderItemStack{ x = 3, y = 34, itemStack = item, scale = 0.75 } end end --- # ImGUI | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#variables) Variables -------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#constants) [constants](https://skillshop.gitbook.io/hypixelcry/libs/imgui/constants) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#dl) [dl](https://skillshop.gitbook.io/hypixelcry/libs/imgui/draw-list) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#begin-title-flags) `begin(title, flags)` ---------------------------------------------------------------------------------------------------------- Function to specify the beginning of the window **Parameters:** * `title` (string). * `flags` (imgui.constants) **Example Usage:** Copy -- Example code showing how to use the function local window_flags = imgui.constants.WindowFlags_NoResize registerImGuiRenderEvent(function() if imgui.begin("Test", window_flags) then end imgui.endBegin() end) [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#endbegin) `endBegin()` ---------------------------------------------------------------------------------------- Function to specify the ends of the window **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#text-text) `text(text)` ----------------------------------------------------------------------------------------- Plain text **Parameters:** * `text` (string). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#textdisabled-text) `textDisabled(text)` --------------------------------------------------------------------------------------------------------- Text with color turned off **Parameters:** * `text` (string). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#textcolored-red-green-blue-text) `textColored(red, green, blue, text)` ---------------------------------------------------------------------------------------------------------------------------------------- Colored text **Parameters:** * `red` (number). * `green` (number). * `blue` (number). * `text` (string). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#bullettext-text) `bulletText(text)` ----------------------------------------------------------------------------------------------------- Text with a round piece **Parameters:** * `text` (string). **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#checkbox-text-state) `checkbox(text, state)` -------------------------------------------------------------------------------------------------------------- Text with a round piece **Parameters:** * `text` (string) * `state` (boolean) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputtext-text-buffer) `inputText(text, buffer)` ------------------------------------------------------------------------------------------------------------------ Text with a round piece **Parameters:** * `text` (string) * `buffer` (string) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputtext-text-buffer-wight-height) `inputText(text, buffer, wight, height)` ---------------------------------------------------------------------------------------------------------------------------------------------- Text with a round piece **Parameters:** * `text` (string) * `state` (boolean) * `wight` (bumber) * `height` (number) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputint-text-int_value-step-step_fast) `inputInt(text, int_value, step, step_fast)` ------------------------------------------------------------------------------------------------------------------------------------------------------ Text with a round piece **Parameters:** * `text` (string) * `buffer` (string) * `step` (number) * `step_fast` (number) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputfloat-text-float_value-step-step_fast-format) `inputFloat(text, float_value, step, step_fast, format)` ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Text with a round piece **Parameters:** * `text` (string) * `buffer` (string) * `step` (number) * `step_fast` (number) * `format` (string) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#listbox-text-current_item-items) `listBox(text, current_item, items)` --------------------------------------------------------------------------------------------------------------------------------------- Text with a round piece **Parameters:** * `text` (string) * `current_item` (number) * `items` (table) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#button-text-width-height) `button(text, width, height)` ------------------------------------------------------------------------------------------------------------------------- A regular button **Parameters:** * `text` (string) * `width` (number) * `height` (number) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#smallbutton-text) `smallButton(text)` ------------------------------------------------------------------------------------------------------- Small button **Parameters:** * `text` (string) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#arrowbutton-id-direction) `arrowButton(id, direction)` ------------------------------------------------------------------------------------------------------------------------ Button with arrows **Parameters:** * `id` (string) * `direction` (number) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#sameline-offset-spacing) `sameLine(offset, spacing)` ---------------------------------------------------------------------------------------------------------------------- Text with a round piece **Parameters:** * `offset` (number) * `spacing` (number) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/libs/imgui#image-id-wigth-height-uv0x-uv0y-uv1x-uv1y) `image(id, wigth, height, uv0X, uv0Y, uv1X, uv1Y)` --------------------------------------------------------------------------------------------------------------------------------------------------------------- Draw image **Parameters:** * `id` (number) * `wigth` (number) * `height` (number) * `uv0X` (number) * `uv0Y` (number) * `uv1X` (number) * `uv1Y` (number) **Example Usage:** [PreviousCat Boost Predictionschevron-left](https://skillshop.gitbook.io/hypixelcry/libs/catboost/cat-boost-predictions) [NextConstantschevron-right](https://skillshop.gitbook.io/hypixelcry/libs/imgui/constants) Last updated 1 day ago * [Variables](https://skillshop.gitbook.io/hypixelcry/libs/imgui#variables) * [constants](https://skillshop.gitbook.io/hypixelcry/libs/imgui#constants) * [dl](https://skillshop.gitbook.io/hypixelcry/libs/imgui#dl) * [begin(title, flags)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#begin-title-flags) * [endBegin()](https://skillshop.gitbook.io/hypixelcry/libs/imgui#endbegin) * [text(text)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#text-text) * [textDisabled(text)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#textdisabled-text) * [textColored(red, green, blue, text)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#textcolored-red-green-blue-text) * [bulletText(text)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#bullettext-text) * [checkbox(text, state)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#checkbox-text-state) * [inputText(text, buffer)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputtext-text-buffer) * [inputText(text, buffer, wight, height)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputtext-text-buffer-wight-height) * [inputInt(text, int\_value, step, step\_fast)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputint-text-int_value-step-step_fast) * [inputFloat(text, float\_value, step, step\_fast, format)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#inputfloat-text-float_value-step-step_fast-format) * [listBox(text, current\_item, items)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#listbox-text-current_item-items) * [button(text, width, height)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#button-text-width-height) * [smallButton(text)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#smallbutton-text) * [arrowButton(id, direction)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#arrowbutton-id-direction) * [sameLine(offset, spacing)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#sameline-offset-spacing) * [image(id, wigth, height, uv0X, uv0Y, uv1X, uv1Y)](https://skillshop.gitbook.io/hypixelcry/libs/imgui#image-id-wigth-height-uv0x-uv0y-uv1x-uv1y) Copy -- Example code showing how to use the function local window_flags = imgui.constants.WindowFlags_NoResize registerImGuiRenderEvent(function() if imgui.begin("Test", window_flags) then end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then imgui.text("ImGUI from Lua!") end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then imgui.textDisabled("Disabled text") end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then imgui.textColored(1.0, 0.0, 0.0, 1.0, "Red text") end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then imgui.bulletText("Bullet text") end imgui.endBegin() end) Copy -- Example code showing how to use the function local checkbox_state = false registerImGuiRenderEvent(function() if imgui.begin("Test") then local checkbox_changed, new_checkbox_state = imgui.checkbox("Check box", checkbox_state) if checkbox_changed then checkbox_state = new_checkbox_state end end imgui.endBegin() end) Copy -- Example code showing how to use the function local text_buffer = "Hello, ImGUI!" registerImGuiRenderEvent(function() if imgui.begin("Test") then local text_changed, new_text = imgui.inputText("Text input", text_buffer) if text_changed then text_buffer = new_text end end imgui.endBegin() end) Copy -- Example code showing how to use the function local text_buffer = "Hello, ImGUI!" registerImGuiRenderEvent(function() if imgui.begin("Test") then local multiline_changed, new_multiline = imgui.inputTextMultiline("Multi line input", text_buffer, 200, 100) if multiline_changed then text_buffer = new_multiline end end imgui.endBegin() end) Copy -- Example code showing how to use the function local int_value = 0 registerImGuiRenderEvent(function() if imgui.begin("Test") then local int_changed, new_int = imgui.inputInt("Number input", int_value, 1, 100) if int_changed then int_value = new_int end end imgui.endBegin() end) Copy -- Example code showing how to use the function local int_value = 0 registerImGuiRenderEvent(function() if imgui.begin("Test") then local float_changed, new_float = imgui.inputFloat("Float input", float_value, 0.1, 1.0, "%.3f") if float_changed then float_value = new_float end end imgui.endBegin() end) Copy -- Example code showing how to use the function local listbox_current = 0 local listbox_items = {"Apple", "Banana", "Cherry", "Date"} registerImGuiRenderEvent(function() if imgui.begin("Test") then listbox_current = imgui.listBox("ListBox", listbox_current, listbox_items) end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then if imgui.button("Test") then end end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then if imgui.smallButton("Test") then end end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then if imgui.arrowButton("##left", 0) then end if imgui.arrowButton("##right", 1) then end end imgui.endBegin() end) Copy -- Example code showing how to use the function registerImGuiRenderEvent(function() if imgui.begin("Test") then imgui.sameLine(0.0, 0.0) end imgui.endBegin() end) Copy -- Example code showing how to use the function local compost_image = imgui.createImageObject() local loading_result = compost_image.loadImage("config/hypixelcry/scripts/images/compost.png") registerImGuiRenderEvent(function() if imgui.begin("Test") then imgui.image(compost_image.getId(), 16, 16, 0, 0, 0, 0) -- Normal imgui.image(compost_image.getId(), 16, 16, 0, 1, 1, 0) -- Rotated Y end imgui.endBegin() end) registerUnloadCallback(function() compost_image.release() end) --- # Input | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setselectedslot-slot) `setSelectedSlot(slot)` -------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `slot` (number) (0-8 range). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** Copy -- Example code showing how to use the function local status = player.input.setSelectedSlot(0) [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#getselectedslot) `getSelectedSlot()` ----------------------------------------------------------------------------------------------------------------------- **Returns:** * (number) Range 0-8. **Example Usage:** Copy -- Example code showing how to use the function local slot = player.input.getSelectedSlot() [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#silentuse-slot) `silentUse(slot)` -------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#leftclick) `leftClick()` ----------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#rightclick) `rightClick()` ------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedsprinting-enable) `setPressedSprinting(enable)` -------------------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedjump-enable) `setPressedJump(enable)` ---------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedsneak-enable) `setPressedSneak(enable)` ------------------------------------------------------------------------------------------------------------------------------------ **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedforward-enable) `setPressedForward(enable)` ---------------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedback-enable) `setPressedBack(enable)` ---------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedleft-enable) `setPressedLeft(enable)` ---------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedright-enable) `setPressedRight(enable)` ------------------------------------------------------------------------------------------------------------------------------------ **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedattack-enable) `setPressedAttack(enable)` -------------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpresseduse-enable) `setPressedUse(enable)` -------------------------------------------------------------------------------------------------------------------------------- **Parameters:** * `enable` (boolean). **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedsprinting) `isPressedSprinting()` ----------------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedjump) `isPressedJump()` ------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedsneak) `isPressedSneak()` --------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedforward) `isPressedForward()` ------------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedback) `isPressedBack()` ------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedleft) `isPressedLeft()` ------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedright) `isPressedRight()` --------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedattack) `isPressedAttack()` ----------------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispresseduse) `isPressedUse()` ----------------------------------------------------------------------------------------------------------------- **Returns:** * (boolean) Return **true** if pressed. **Example Usage:** [PreviousInventorychevron-left](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory) [NextNetworkchevron-right](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network) Last updated 4 months ago * [setSelectedSlot(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setselectedslot-slot) * [getSelectedSlot()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#getselectedslot) * [silentUse(slot)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#silentuse-slot) * [leftClick()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#leftclick) * [rightClick()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#rightclick) * [setPressedSprinting(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedsprinting-enable) * [setPressedJump(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedjump-enable) * [setPressedSneak(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedsneak-enable) * [setPressedForward(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedforward-enable) * [setPressedBack(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedback-enable) * [setPressedLeft(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedleft-enable) * [setPressedRight(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedright-enable) * [setPressedAttack(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpressedattack-enable) * [setPressedUse(enable)](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#setpresseduse-enable) * [isPressedSprinting()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedsprinting) * [isPressedJump()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedjump) * [isPressedSneak()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedsneak) * [isPressedForward()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedforward) * [isPressedBack()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedback) * [isPressedLeft()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedleft) * [isPressedRight()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedright) * [isPressedAttack()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispressedattack) * [isPressedUse()](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input#ispresseduse) Copy -- Example code showing how to use the function local status = player.input.silentUse(0) Copy -- Example code showing how to use the function local status = player.input.leftClick() Copy -- Example code showing how to use the function local status = player.input.rightClick() Copy -- Example code showing how to use the function player.input.setPressedSprinting(true) Copy -- Example code showing how to use the function player.input.setPressedJump(true) Copy -- Example code showing how to use the function player.input.setPressedSneak(true) Copy -- Example code showing how to use the function player.input.setPressedForward(true) Copy -- Example code showing how to use the function player.input.setPressedBack(true) Copy -- Example code showing how to use the function player.input.setPressedLeft(true) Copy -- Example code showing how to use the function player.input.setPressedRight(true) Copy -- Example code showing how to use the function player.input.setPressedAttack(true) Copy -- Example code showing how to use the function player.input.setPressedUse(true) Copy -- Example code showing how to use the function local pressed = player.input.isPressedSprinting() Copy -- Example code showing how to use the function local pressed = player.input.isPressedJump() Copy -- Example code showing how to use the function local pressed = player.input.isPressedSneak() Copy -- Example code showing how to use the function local pressed = player.input.isPressedForward() Copy -- Example code showing how to use the function local pressed = player.input.isPressedBack() Copy -- Example code showing how to use the function local pressed = player.input.isPressedLeft() Copy -- Example code showing how to use the function local pressed = player.input.isPressedRight() Copy -- Example code showing how to use the function local pressed = player.input.isPressedAttack() Copy -- Example code showing how to use the function local pressed = player.input.isPressedUse() --- # World | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getblock-x-y-z) `getBlock(x, y, z)` -------------------------------------------------------------------------------------------------------------- Gets information about a block by coordinates. **Parameters:** * `x` (number) - X cordinate. * `y` (number) - Y cordinate. * `z` (number) - Z cordinate. **Returns:** * ([Block data](https://skillshop.gitbook.io/hypixelcry/datatypes/block) ) Return block information **Example Usage:** Copy -- Example code showing how to use the function local blockInfo = world.getBlock(1, 1, 1) [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#setblock-x-y-z-id) `setBlock(x, y, z, id)` --------------------------------------------------------------------------------------------------------------------- Sets the block to the desired coordinates. **Parameters:** * `x` (number) - X cordinate. * `y` (number) - Y cordinate. * `z` (number) - Z cordinate. * `id` (number) - Raw block id. **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#isblockloaded-x-y-z) `isBlockLoaded(x, y, z)` ------------------------------------------------------------------------------------------------------------------------ Sets the block to the desired coordinates. **Parameters:** * `x` (number) - X cordinate. * `y` (number) - Y cordinate. * `z` (number) - Z cordinate. **Returns:** * (boolean) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getoutlineboxes-x-y-z-blockstate) `getOutlineBoxes(x, y, z, blockState)` --------------------------------------------------------------------------------------------------------------------------------------------------- Sets the block to the desired coordinates. **Parameters:** * `x` (number) - X cordinate. * `y` (number) - Y cordinate. * `z` (number) - Z cordinate. * `blockState` (Block data) **Returns:** * table ([boxes](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getcollisionboxes-x-y-z-blockstate) `getCollisionBoxes(x, y, z, blockState)` ------------------------------------------------------------------------------------------------------------------------------------------------------- Sets the block to the desired coordinates. **Parameters:** * `x` (number) - X cordinate. * `y` (number) - Y cordinate. * `z` (number) - Z cordinate. * `blockState` (Block data) **Returns:** * table ([boxes](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getentities) `getEntities()` ------------------------------------------------------------------------------------------------------- Returns a list of entities. **Returns:** * ([List of entititesarrow-up-right](https://skillshop.gitbook.io/hypixelcry/datatypes/entity-data) [Entity](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ) Return table (list) of entities **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getentitiesinbox-entity-box) `getEntitiesInBox(entity, box)` --------------------------------------------------------------------------------------------------------------------------------------- Returns a list of entities. **Parameters:** * `entity` ([entity](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ) - From entity. * `box` ([box](https://skillshop.gitbook.io/hypixelcry/datatypes/box) ) - Search box. **Returns:** * ([List of entititesarrow-up-right](https://skillshop.gitbook.io/hypixelcry/datatypes/entity-data) [Entity](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ) Return table (list) of entities **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getlivingentities) `getLivingEntities()` ------------------------------------------------------------------------------------------------------------------- Returns a list of entities. **Returns:** * ([List of entititesarrow-up-right](https://skillshop.gitbook.io/hypixelcry/datatypes/entity-data) [Entity](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ) Return table (list) of entities **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getentitybyid-id) `getEntityById(id)` ---------------------------------------------------------------------------------------------------------------- Returns a list of entities. **Parameters:** * `id` (number) - Entity id. **Returns:** * ([Entity](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ) Return entity **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getrotation-x-y-z) `getRotation(x, y, z)` -------------------------------------------------------------------------------------------------------------------- Get yaw and pitch for 3d cordinates. **Parameters:** * `x` (number) - X cordinate. * `y` (number) - Y cordinate. * `z` (number) - Z cordinate. **Returns:** * (table) Return table (yaw, pitch) **Example Usage:** [hashtag](https://skillshop.gitbook.io/hypixelcry/world-objects/world#raycast-obj) `raycast(obj)` ------------------------------------------------------------------------------------------------------ Return raycast result. **Parameters:** * `obj` (table). **Returns:** * (table) Return table **Example Usage:** [PreviousNetworkchevron-left](https://skillshop.gitbook.io/hypixelcry/player-objects/player/network) [NextWorld rendererchevron-right](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer) Last updated 1 month ago * [getBlock(x, y, z)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getblock-x-y-z) * [setBlock(x, y, z, id)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#setblock-x-y-z-id) * [isBlockLoaded(x, y, z)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#isblockloaded-x-y-z) * [getOutlineBoxes(x, y, z, blockState)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getoutlineboxes-x-y-z-blockstate) * [getCollisionBoxes(x, y, z, blockState)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getcollisionboxes-x-y-z-blockstate) * [getEntities()](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getentities) * [getEntitiesInBox(entity, box)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getentitiesinbox-entity-box) * [getLivingEntities()](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getlivingentities) * [getEntityById(id)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getentitybyid-id) * [getRotation(x, y, z)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#getrotation-x-y-z) * [raycast(obj)](https://skillshop.gitbook.io/hypixelcry/world-objects/world#raycast-obj) Copy -- Example code showing how to use the function world.setBlock(1, 1, 1, 1) -- Set stone to 1, 1, 1 Copy -- Example code showing how to use the function local loaded = world.isBlockLoaded(1, 1, 1) Copy -- Example code showing how to use the function local blockState = world.getBlock(x, y, z) if blockState then local collisions = world.getOutlineBoxes(x, y, z, blockState) if collisions then for i = 1, #collisions do local collision = collisions[i] local mixX = collision.minX local mixY = collision.minY local mixZ = collision.minZ local maxX = collision.maxX local maxY = collision.maxY local maxZ = collision.maxZ end end end Copy -- Example code showing how to use the function local blockState = world.getBlock(x, y, z) if blockState then local collisions = world.getCollisionBoxes(x, y, z, blockState) if collisions then for i = 1, #collisions do local collision = collisions[i] local mixX = collision.minX local mixY = collision.minY local mixZ = collision.minZ local maxX = collision.maxX local maxY = collision.maxY local maxZ = collision.maxZ end end end Copy -- Example code showing how to use the function local entities = world.getEntities() for index, entity in ipairs(entities) do if entity ~= nil then local entityName = entity.name local entityId = entity.id print(string.format("Entity %d: %s", index, entityName)) end end Copy -- Example code showing how to use the function local function findArmorStandAboveEntity(entity) if not entity then return nil end local entities = world.getEntitiesInBox(entity, entity.box.expand(0, 2, 0)) if entities then for _, ent in ipairs(entities) do if ent and ent.type == "entity.minecraft.armor_stand" then return ent end end end return nil end Copy -- Example code showing how to use the function local entities = world.getLivingEntities() for index, entity in ipairs(entities) do if entity ~= nil then local entityName = entity.name local entityId = entity.id print(string.format("Entity %d: %s", index, entityName)) end end Copy -- Example code showing how to use the function local entity = world.getEntityById(0) if entity then local entityName = entity.name local entityId = entity.id print(string.format("Entity %d: %s", index, entityName)) end Copy -- Example code showing how to use the function local rotation = world.getRotation(1, 1, 1) player.setRotation(rotation.yaw, rotation.pitch) Copy -- Example code showing how to use the function local eyePos = player.getEyePosition() local targetX, targetY, targetZ = 0, 0, 0 local raycastResult = world.raycast({ startX = eyePos.x, startY = eyePos.y, startZ = eyePos.z, endX = targetX + 0.5, endY = targetY + 0.5, endZ = targetZ + 0.5 }) if raycastResult ~= nil then if raycastResult.type == "block" then local block = world.getBlock(raycastResult.blockPos.x, raycastResult.blockPos.y, raycastResult.blockPos.z) player.addMessage("Block: " .. raycastResult.blockPos.x .. ", " .. raycastResult.blockPos.y .. ", " .. raycastResult.blockPos.z .. " | " .. block.name) elseif raycastResult.type == "entity" then player.addMessage("Entity: " .. raycastResult.data.name) elseif raycastResult.type == "miss" then player.addMessage("Miss") end end --- # World renderer | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderfilled-object) `renderFilled(object)` ----------------------------------------------------------------------------------------------------------------------------------- Draws a 3D filled block. **Parameters:** * `object` (table (x, y, z, red, green, blue, alpha, through\_walls)) **Returns:** * (boolean) Return true if successfully **Example Usage:** Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local filled = { x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, alpha = 140, through_walls = false } context.renderFilled(filled) end) ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252F6HWCj0h3Y7Zau58qtHZr%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D12c027c5-0775-42d5-b51e-5b66fdbd9345&width=768&dpr=3&quality=100&sign=1f171b7c&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderoutline-object) `renderOutline(object)` ------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D outlined block. **Parameters:** * `object` (table (x, y, z, red, green, blue, alpha, line\_width, through\_walls)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FxnausUMo3ineJN5fE2fO%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3Dd3b3e30a-6944-48ba-ba80-30e83e899458&width=768&dpr=3&quality=100&sign=ddefd4f0&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#rendertext-object) `renderText(object)` ------------------------------------------------------------------------------------------------------------------------------- Draws a 3D text. **Parameters:** * `object` (table (x, y, z, red, green, blue, text, scale, through\_walls)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FNxTxLPzYzzyGpPRgd74n%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D44b22ed4-3fed-49a7-a1ce-16595e377b76&width=768&dpr=3&quality=100&sign=309742ad&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderlinesfrompoints-object) `renderLinesFromPoints(object)` ----------------------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D line. **Parameters:** * `object` (table (red, green, blue, points)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252Fkwr4GDC6Um0WjMafSNuu%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D99a468af-76d0-4e57-8192-6a770a82fe73&width=768&dpr=3&quality=100&sign=b4401dc0&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderlinefromcursor-object) `renderLineFromCursor(object)` --------------------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D line from cursor. **Parameters:** * `object` (table (x, y, z, line\_width, red, green, blue)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FlnslkV4510bCeGudmI8q%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3Dbf76f07e-46bd-4f1a-94bd-9e3709f1485d&width=768&dpr=3&quality=100&sign=9b298f73&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderimage-object) `renderImage(object)` --------------------------------------------------------------------------------------------------------------------------------- Draws a 3D line from cursor. **Parameters:** * `object` (table (x, y, z, red, green, blue)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252Fu551payGp2rkFyw6zaz5%252Fimage.png%3Falt%3Dmedia%26token%3D2e2174a5-20ac-4a83-81fa-cace41c69037&width=768&dpr=3&quality=100&sign=9455494a&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderbeaconbeam-object) `renderBeaconBeam(object)` ------------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D beacon beam. **Parameters:** * `object` (table (x, y, z, red, green, blue)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252F2x5ciJSlb9sjEtycQoQ1%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D041dc7bf-b63c-4a7c-88a3-09f2849bffdd&width=768&dpr=3&quality=100&sign=1a2e3706&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderoutlinecircle-object) `renderOutlineCircle(object)` ------------------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D outlined circle. **Parameters:** * `object` (table (x, y, z, red, green, blue, alpha, radius, segments, through\_walls, line\_width)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FBgnmflYcYNiopiwz8qqj%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D43236e9b-2aff-4bf6-820b-5be1eaf83000&width=768&dpr=3&quality=100&sign=bea87265&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderfilledcircle-object) `renderFilledCircle(object)` ----------------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D outlined circle. **Parameters:** * `object` (table (x, y, z, red, green, blue, alpha, radius, segments, through\_walls)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FSdE7Fzkb1AIT3nOv6huW%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D83ea1fde-7f0a-42fd-90c8-b4216629299f&width=768&dpr=3&quality=100&sign=79ce4fcb&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#rendercylinder-object) `renderCylinder(object)` --------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D cylinder. **Parameters:** * `object` (table (x, y, z, red, green, blue, alpha, radius, height, segments, through\_walls)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FAuUaK211jHbHvR5yBoUb%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3Da6a434ed-da54-43e6-a7de-a9f57a74f6cd&width=768&dpr=3&quality=100&sign=eaef3200&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#rendersphere-object) `renderSphere(object)` ----------------------------------------------------------------------------------------------------------------------------------- Draws a 3D sphere. **Parameters:** * `object` (table (x, y, z, red, green, blue, alpha, radius, rings, segments, through\_walls)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FDplRqThmF1oynJjjPvXU%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3D1870c270-8493-4c90-afb0-b9374b741a35&width=768&dpr=3&quality=100&sign=4f050b7c&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderhologramblock-object) `renderHologramBlock(object)` ------------------------------------------------------------------------------------------------------------------------------------------------- Draws a 3D opacity block. **Parameters:** * `object` (table (x, y, z, id)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FfPvP3hn3DZFKJ4qa52pz%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3Da21bd16c-f2c4-4031-b2bb-0e15c92c928d&width=768&dpr=3&quality=100&sign=8400eeb3&sv=2) [hashtag](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderblock-object) `renderBlock(object)` --------------------------------------------------------------------------------------------------------------------------------- Draws a 3D opacity block. **Parameters:** * `object` (table (x, y, z, id)) **Returns:** * (boolean) Return true if successfully **Example Usage:** ![](https://skillshop.gitbook.io/hypixelcry/~gitbook/image?url=https%3A%2F%2F151984079-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FcOOYikI0reGlgLd4BItq%252Fuploads%252FxKOWh32ztOwANUIjGu0q%252F%25D0%25B8%25D0%25B7%25D0%25BE%25D0%25B1%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D0%25B5.png%3Falt%3Dmedia%26token%3Dc5865eb8-99b4-4361-902b-0cead920adea&width=768&dpr=3&quality=100&sign=d65a1175&sv=2) [PreviousWorldchevron-left](https://skillshop.gitbook.io/hypixelcry/world-objects/world) [Next2D rendererchevron-right](https://skillshop.gitbook.io/hypixelcry/rendering-objects/2d-renderer) Last updated 1 month ago * [renderFilled(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderfilled-object) * [renderOutline(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderoutline-object) * [renderText(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#rendertext-object) * [renderLinesFromPoints(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderlinesfrompoints-object) * [renderLineFromCursor(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderlinefromcursor-object) * [renderImage(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderimage-object) * [renderBeaconBeam(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderbeaconbeam-object) * [renderOutlineCircle(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderoutlinecircle-object) * [renderFilledCircle(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderfilledcircle-object) * [renderCylinder(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#rendercylinder-object) * [renderSphere(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#rendersphere-object) * [renderHologramBlock(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderhologramblock-object) * [renderBlock(object)](https://skillshop.gitbook.io/hypixelcry/rendering-objects/world-renderer#renderblock-object) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local outlined = { x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, alpha = 140, through_walls = false, line_width = 1 } context.renderOutline(outlined) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local text = { x = 0.5, y = 0.5, z = 0.5, red = 255, green = 0, blue = 0, scale = 1, text = "Text", through_walls = false } context.renderText(text) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local line = { points = { [0] = { x = 0, y = 0, z = 0 }, [1] = { x = 0, y = 1, z = 0 } }, red = 255, green = 0, blue = 0, alpha = 140, line_width = 1, through_walls = true } context.renderLinesFromPoints(line) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local line = { x = 0.5, y = 0.5, z = 0.5, red = 255, green = 0, blue = 0, alpha = 140, line_width = 1 } context.renderLineFromCursor(line) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) context.renderImage{ x = 0, y = 0, z = 0, offset_x = 0, offset_y = 0, offset_z = 0, red = 255, green = 255, blue = 255, region_width = 1, region_height = 1, width = 0.1 * 3 * -1, height = 0.1 * 3 * -1, path = "config/hypixelcry/scripts/images/logo.png", through_walls = false } end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) context.renderBeaconBeam{ x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, } end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local outlined = { x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, alpha = 150, radius = 1, segments = 32, through_walls = true, line_width = 0.01 } context.renderOutlineCircle(outlined) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local filled = { x = 0, y = 0, z = 0, red = 255, green = 0, blue = 0, alpha = 150, radius = 1, segments = 32, through_walls = true } context.renderFilledCircle(filled) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local cyl = { x = 7, y = 133, z = 7, red = 255, green = 0, blue = 0, alpha = 140, radius = 2, height = 2, segments = 32, through_walls = false } context.renderCylinder(cyl) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local sphere = { x = 7, y = 133, z = 7, red = 255, green = 0, blue = 0, alpha = 140, radius = 2, segments = 32, rings = 16, through_walls = false } context.renderSphere(sphere) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local block = { x = 0, y = 160, z = 0, id = 1, } context.renderHologramBlock(block) end) Copy -- Example code showing how to use the function registerWorldRenderer(function(context) local block = { x = 7, y = 133, z = 7, id = 1, } context.renderBlock(block) end) --- # Player | Hypixel Cry | LuaAPI [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#variables) Variables ------------------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#input) [input](https://skillshop.gitbook.io/hypixelcry/player-objects/player/input) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#inventory) [inventory](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#entity) [entity](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#fishhook) [fishHook](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#functions) Functions ------------------------------------------------------------------------------------------------- ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#addmessage-text) `addMessage(text)` Add message to chat. **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** Copy -- Example code showing how to use the function player.addMessage("Hypixel Cry - Only me see this") local message = ComponentBuilder.new("Hello! ") :color("white") :append( ComponentBuilder.new("[Teleport]") :color("gold") :bold(true) :underlined(true) :clickRunCommand("/spawn") :hoverText("§eClick here to teleport!") ) :append( ComponentBuilder.new(" | ") :color("gray") ) :append( ComponentBuilder.new("[Copy IP]") :color("#55FFFF") :clickCopyToClipboard("hypixel.net") :hoverText( ComponentBuilder.new("Click to copy") :color("yellow") :italic(true) ) ) :build() player.addMessage(message) ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#sendmessage-text) `sendMessage(text)` Send message to server. **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#sendcommand-text) `sendCommand(text)` Send command to server. **Returns:** * (boolean) Return **true** if successfully. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getprofile) `getProfile()` Returns the player profile. **Returns:** * (string) Profile name. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getprofileid) `getProfileId()` Returns the player profile id. **Returns:** * (string) Profile id. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getname) `getName()` Returns the player name. **Returns:** * (string) Player name. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getrank) `getRank()` Returns the player rank. **Returns:** * (string) Player rank. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getrotation) `getRotation()` Returns the player rotation. **Returns:** * (table) - Position table (yaw, pitch) **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#setrotation-yaw-pitch) `setRotation(yaw, pitch)` Returns the player rotation. **Parameters:** * `yaw` (number) - Player yaw. * `pitch` (number) - Player yaw. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getpos) `getPos()` Returns the player position. **Returns:** * (table) - Position table (x, y, z) **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getlocation) `getLocation()` Returns the player location. **Returns:** * (string) Player location. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getrawlocation) `getRawLocation()` Returns the player raw location. **Returns:** * (string) Player location. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getarea) `getArea()` Returns the player area. **Returns:** * (string) Player area. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getpurse) `getPurse()` Returns the player purse. **Returns:** * (number) Player purse. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getbits) `getBits()` Returns the player bits. **Returns:** * (number) Player bits. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#gethealth) `getHealth()` Returns the player health. **Returns:** * (number) Player health. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmaxhealth) `getMaxHealth()` Returns the player max health. **Returns:** * (number) Player max health. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmana) `getMana()` Returns the player mana. **Returns:** * (number) Player mana. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmaxmana) `getMaxMana()` Returns the player max mana. **Returns:** * (number) Player max mana. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getdefence) `getDefence()` Returns the player defence. **Returns:** * (number) Player defence. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getspeed) `getSpeed()` Returns the player speed. **Returns:** * (number) Player speed. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getair) `getAir()` Returns the player oxygen. **Returns:** * (number) Player oxygen. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmaxair) `getMaxAir()` Returns the player max oxygen. **Returns:** * (number) Player max oxygen. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getcold) `getCold()` Returns the player cold in glacite tunnels. **Returns:** * (number) Player cold. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#issneaking) `isSneaking()` Returns the player is sneaking. **Returns:** * (boolean) is player sneaking. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#issprinting) `isSprinting()` Returns the player is sprinting. **Returns:** * (boolean) is player sprinting. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#isonground) `isOnGround()` Returns the player is on ground. **Returns:** * (boolean) is player on ground. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#isonskyblock) `isOnSkyBlock()` Returns the player is on skyblock. **Returns:** * (boolean) is player on skyblock. **Example Usage:** Returns scoreboard lines. ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getpet) `getPet()` **Returns:** * (table) pet info. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getscoreboardlines) `getScoreBoardLines()` **Returns:** * (table) list of lines. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#gettab) `getTab()` **Returns:** * (table) list of lines. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#geteyeposition) `getEyePosition()` Returns player eye position. **Returns:** * (table) eye position (x, y, z). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#addtoast-title-description-time) `addToast(title, description, time)` Returns player eye position. **Parameters:** * title (string) * description (title) * time (number milliseconds) **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getlookendpos-number) `getLookEndPos(number)` Returns player eye end position. **Parameters:** * `distance` (number) - Distance from the player's view. **Returns:** * (table) eye end position (x, y, z). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getlookendpos-table) `getLookEndPos(table)` Returns player eye end position. **Parameters:** * `table` (x, y, z) - Table with end point coordinates. **Returns:** * (table) eye end position (x, y, z). **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#raycast-number) `raycast(number)` Returns raycast result from eye. **Parameters:** * `number` - Raycast distances from eyes. **Returns:** **Global** * (table) Result of raycast. **If block** * (table) (type, x, y, z) Result of raycast. **If entity** * (table) (type, [entityData](https://skillshop.gitbook.io/hypixelcry/datatypes/entity) ) Result of raycast. **Example Usage:** ### [hashtag](https://skillshop.gitbook.io/hypixelcry/player-objects/player#swinghand-offhand) `swingHand(offHand)` Returns raycast result from eye. **Parameters:** * `boolean` - Use off hand. **Example Usage:** [PreviousBlockchevron-left](https://skillshop.gitbook.io/hypixelcry/datatypes/block) [NextInventorychevron-right](https://skillshop.gitbook.io/hypixelcry/player-objects/player/inventory) Last updated 11 minutes ago * [Variables](https://skillshop.gitbook.io/hypixelcry/player-objects/player#variables) * [input](https://skillshop.gitbook.io/hypixelcry/player-objects/player#input) * [inventory](https://skillshop.gitbook.io/hypixelcry/player-objects/player#inventory) * [entity](https://skillshop.gitbook.io/hypixelcry/player-objects/player#entity) * [fishHook](https://skillshop.gitbook.io/hypixelcry/player-objects/player#fishhook) * [Functions](https://skillshop.gitbook.io/hypixelcry/player-objects/player#functions) * [addMessage(text)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#addmessage-text) * [sendMessage(text)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#sendmessage-text) * [sendCommand(text)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#sendcommand-text) * [getProfile()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getprofile) * [getProfileId()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getprofileid) * [getName()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getname) * [getRank()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getrank) * [getRotation()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getrotation) * [setRotation(yaw, pitch)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#setrotation-yaw-pitch) * [getPos()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getpos) * [getLocation()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getlocation) * [getRawLocation()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getrawlocation) * [getArea()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getarea) * [getPurse()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getpurse) * [getBits()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getbits) * [getHealth()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#gethealth) * [getMaxHealth()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmaxhealth) * [getMana()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmana) * [getMaxMana()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmaxmana) * [getDefence()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getdefence) * [getSpeed()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getspeed) * [getAir()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getair) * [getMaxAir()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getmaxair) * [getCold()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getcold) * [isSneaking()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#issneaking) * [isSprinting()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#issprinting) * [isOnGround()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#isonground) * [isOnSkyBlock()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#isonskyblock) * [getPet()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getpet) * [getScoreBoardLines()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getscoreboardlines) * [getTab()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#gettab) * [getEyePosition()](https://skillshop.gitbook.io/hypixelcry/player-objects/player#geteyeposition) * [addToast(title, description, time)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#addtoast-title-description-time) * [getLookEndPos(number)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getlookendpos-number) * [getLookEndPos(table)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#getlookendpos-table) * [raycast(number)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#raycast-number) * [swingHand(offHand)](https://skillshop.gitbook.io/hypixelcry/player-objects/player#swinghand-offhand) Copy -- Example code showing how to use the function player.sendMessage("Hypixel Cry - All see this") Copy -- Example code showing how to use the function player.sendCommand("/warp hub") Copy -- Example code showing how to use the function local name = player.getProfile() Copy -- Example code showing how to use the function local id = player.getProfileId() Copy -- Example code showing how to use the function local name = player.getName() Copy -- Example code showing how to use the function local rank = player.getRank() Copy -- Example code showing how to use the function local rotation = player.getRotation() local yaw = rotation.yaw -- Number local pitch = rotation.pitch -- Number Copy -- Example code showing how to use the function player.setRotation(90, 90) Copy -- Example code showing how to use the function local pos = player.getPos() local x = pos.x -- Number local y = pos.y -- Number local z = pos.z -- Number Copy -- Example code showing how to use the function local location = player.getLocation() Copy -- Example code showing how to use the function local location = player.getRawLocation() Copy -- Example code showing how to use the function local area = player.getArea() Copy -- Example code showing how to use the function local purse = player.getPurse() Copy -- Example code showing how to use the function local bits = player.getBits() Copy -- Example code showing how to use the function local health = player.getHealth() Copy -- Example code showing how to use the function local maxHealth = player.getMaxHealth() Copy -- Example code showing how to use the function local mana = player.getMana() Copy -- Example code showing how to use the function local maxMana = player.getMaxMana() Copy -- Example code showing how to use the function local defence = player.getDefence() Copy -- Example code showing how to use the function local speed = player.getSpeed() Copy -- Example code showing how to use the function local oxygen = player.getAir() Copy -- Example code showing how to use the function local max_oxygen = player.getMaxAir() Copy -- Example code showing how to use the function local cold = player.getCold() Copy -- Example code showing how to use the function local isSneaking = player.isSneaking() Copy -- Example code showing how to use the function local isSprinting = player.isSprinting() Copy -- Example code showing how to use the function local isOnGround = player.isOnGround() Copy -- Example code showing how to use the function local isOnSkyBlock = player.isOnSkyBlock() Copy -- Example code showing how to use the function local pet = player.getPet() local name = pet.name local exp = pet.exp local type = pet.type local item = pet.item Copy -- Example code showing how to use the function local scoreboard = player.getScoreBoardLines() for index, line in ipairs(scoreboard) do player.addMessage(line) end Copy -- Example code showing how to use the function local tab = player.getTab() if tab.header then player.addMessage(tab.header) end if tab.body then for index, line in ipairs(tab.body) do player.addMessage(line) end end if tab.footer then player.addMessage(tab.footer) end Copy -- Example code showing how to use the function local eyePostion = player.getEyePosition() local x = eyePostion.x -- Number local y = eyePostion.y -- Number local z = eyePostion.z -- Number Copy -- Example code showing how to use the function player.addToast("Hypixel Cry", "Script has new version", 10000) -- Show toast to 10 seconds Copy -- Example code showing how to use the function local lookEndPosition = player.getLookEndPos(5.0) local x = lookEndPosition.x -- Number local y = lookEndPosition.y -- Number local z = lookEndPosition.z -- Number Copy -- Example code showing how to use the function local look = { x = 1, y = 1, z = 1 } local lookEndPosition = player.getLookEndPos(look) local x = lookEndPosition.x -- Number local y = lookEndPosition.y -- Number local z = lookEndPosition.z -- Number Copy -- Example code showing how to use the function local raycastResult = player.raycast(4.5) if raycastResult == nil then print("MISS") else local resultType = raycastResult.type if resultType == "block" then local x = raycastResult.blockPos.x -- Number local y = raycastResult.blockPos.y -- Number local z = raycastResult.blockPos.z -- Number elseif resultType == "entity" then local entityData = raycastResult.data end end Copy -- Example code showing how to use the function registerClientTick(function() player.swingHand() end) ---