hydra-lua-api
CtrlK
  • Basics
    • Printing data
    • Built-in functions list for Hydra
    • Sending packets to the server
      • Sending text packets
      • Sending game packets
      • Built-In Helper Functions for sending packets
    • Sending packets to the client
      • Sending game packets
      • Sending variant list
  • Inventory Data
  • Player Data
    • NetAvatar structure
    • Local Avatar
    • Getting world players
  • World Data
    • Table structure
    • Getting tile data
    • Getting world object data
  • Callbacks
    • What are callbacks?
    • SendPacket callback
    • SendPacketRaw callback
    • VariantList callback
    • OnObjectSpawn callback
Powered by GitBook
On this page
  • Tile
  • WorldObject
  1. World Data

Table structure

Tile

  • fg - int (tile foreground itemID)

  • bg - int (tile background item ID)

  • flags - int (tile flags)

  • pos - vec2 int { x , y }

WorldObject

  • item_id - int

  • id - int (object ID, not to be confused with itemID)

  • pos - vec2 int { x, y }

PreviousWorld DataNextGetting tile data

Last updated 2 months ago