hachclient
  • 🐣Вступление
  • ✈️События
    • onInput
    • onDisable
    • onEnable
    • onUpdate
    • onRender
    • onMove
    • onKey
    • onGuiClick
    • onGuiRelease
    • onGuiRender
  • 📚Библиотеки
    • inventory
    • timer
    • player
    • chat
    • render
    • color
    • mathutil
    • gl11
    • world
    • projection
  • gui
  • window
  • client
  • drag
  • settings
  • network
  • 🌎Объекты
    • item
    • timer
    • entity
    • module
    • drag
  • Vector3
  • Vector2
  • Примеры скриптов
    • ⛏️Выбросить предметы
    • ⌨️Горячие клавиши
    • Китайская шляпа
Powered by GitBook
On this page
  • inventory:drop_all()
  • inventory:clickSlot(int slotId, int button, int actionType)
  • inventory:getItem(int slotId)
  • inventory:drop_current_item(boolean stack)
  1. Библиотеки

inventory

Помогает взаимодействовать с инвентарем

0 - PICKUP
1 - QUICK_MOVE
2 - SWAP
3 - CLONE
4 - THROW
5 - QUICK_CRAFT
6 - PICKUP_ALL

inventory:drop_all()

выбрасывает все предметы из инвентаря

inventory:drop_all()

inventory:clickSlot(int slotId, int button, int actionType)

совершает клик по слоту

button: 0 - пкм, 1 - лкм

inventory:clickSlot(6, 1, 4) -- выбрасывает из 6 слота предмет

inventory:getItem(int slotId)

Получает Item по слоту

inventory:getItem(6) -- получает предмет из 6 слота

inventory:drop_current_item(boolean stack)

выбросит текущий предмет в руке

stack: true - выбросит весь стак, false - выбросит одну штуку предмета

inventory:drop_current_item(true) -- выбросит весь стак предметов в руке
PreviousonGuiRenderNexttimer

Last updated 6 days ago

вернет

📚
Item