Nexo
  • 🏠Home
  • 📜Main Changelog
  • ❓FAQ
  • General Usage
    • ⌨️Commands
    • 🧑‍🍳Recipes
  • Migrate
    • ☄️Oraxen → Nexo
    • 📦ItemsAdder → Nexo
  • Configuration
    • ⚙️Plugin settings
    • ResourcePack
    • ⚒️Items
      • Special Item Appearance
    • ⛑️Custom Armors
      • 🪽Custom Elytras (1.21.2+)
      • Component Based (1.21.2+)
      • Trims Based (1.20-1.21.1)
    • 🌀Glyphs
      • 🎞️Animated Glyphs
      • 🖼️Multi-Bitmap Glyph
      • 🔗Reference Glyph
    • 🎵Sounds
  • Mechanics
    • 🪑Furniture Mechanic
      • 🎯Hitbox
      • 🖇️Connectable Furniture
      • 🪑Seat Mechanic
      • 🛏️Bed Mechanic
      • 💡Light Mechanic
      • 🧑‍🌾Farming Mechanic
    • 📦Custom Block Mechanics
      • ChorusBlock Mechanic
      • 🎶NoteBlock Mechanic
        • Stripped Log Mechanic
        • Directional Mechanic
      • 🧵StringBlock Mechanic
    • 🔱Custom Trident
    • Other Mechanics
    • ClickAction Mechanic
    • Custom Mechanic
  • ➕Addons
    • 🚪Carpentry
    • 🧩Core Shaders
      • Text Effects by Akis
  • Compatibility
    • ModelEngine - custom mobs
    • MythicMobs - custom mobs
    • MythicCrucible
    • MMOItems
  • Community Guides
    • Vendors
    • API
Powered by GitBook
On this page
  1. Mechanics
  2. Furniture Mechanic

Hitbox

Furnitures can have two types of hitboxes, with collision & without collision Collision hitboxes are normal barrier-blocks, whilst non-solid ones are interaction-entities. Interaction-entities have no collision, but can be any width and height, unlike barriers which are normal 1x1x1 blocks.Below are examples of how to use both. Barrier hitboxes can be formatted at a given offset from the furniture. They also support integer-ranges to shorten repeating lines for larger hitboxes

myitem:
  Mechanics:
    furniture:
      hitbox:
        barriers:
          - 0,0,0
          - 0,0,1
          - 0,0,2
          - 1,0,0..2

Interaction-Entity Hitboxes takes an offset, width and height

myitem:
  Mechanics:
    furniture:
      hitbox:
        interactions:
          - 0,0,0 1,1
          - 1,0,0 1,2.0
          - -1,0,0 1,2.2

Shulker-Entity Hitboxes takes an offset, scale, length and direction Offset only supports full blocks, as shulkers are forcefully put at a full block. Meaning you cannot offset it by 0.5 blocks Scale is a single integer and determines the scale of the furniture. You cannot scale only the height, like with Interaction-Entity Hitboxes Length determines the extra length of the hitbox, and can be between 1..2 Direction determines the way the hitbox faces, if not specified, defaults to UP

myitem:
  Mechanics:
    furniture:
      hitbox:
        shulkers:
          - 0,0,0 1.0 1.0
          - 1,0,0 1.2 1.5 EAST
          - -1,0,0 0.8 2.0 UP

If you struggle with finding the accurate hitbox-size you want for shulker-hitboxes, you can make them temporarily visible. To do this simply add true after the length or direction argument

PreviousFurniture MechanicNextConnectable Furniture

Last updated 1 month ago

This is only available for 1.20.5+ servers Should also be noted that the shulker-entity head will be visible on 1.21.1 & below It will be invisible for 1.21.2 and above as long as is not fixed

🪑
🎯
https://bugs.mojang.com/browse/MC-278123