PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
53 stars 21 forks source link

Incorrect Hitbox Alignment for Furniture Based on World Direction #4063

Open Deeedline opened 5 days ago

Deeedline commented 5 days ago

Terms

Discord Username (optional)

No response

What happened?

Issue Description: When adding a furniture item with a 2x2x2 hitbox in the ItemsAdder plugin, the model rotates correctly according to the world direction (e.g., north, south, east, west). However, the hitbox associated with the furniture remains fixed in the same direction regardless of the model's rotation. This results in inconsistent behavior where players can walk through the furniture or encounter invisible barriers in the wrong places.

In the attached image:

The arrow indicates the direction I was facing when placing the block. The green dot represents the position of the armour_stand that manages the furniture model.

Steps to reproduce the issue

Steps to Reproduce:

Create a furniture model with a 2x2x2 hitbox. Load the model into ItemsAdder. Place the furniture in the Minecraft world and rotate it to any world direction. Observe that while the model rotates correctly, the hitbox remains oriented in the same direction. Expected Behavior: The hitbox should rotate along with the model to align with its orientation according to the world direction.

Current Behavior: The hitbox remains static, not rotating with the model, leading to collision issues and inconsistency in gameplay.

Server version

Purpur version 1.21.1-2324-ver/1.21.1@e12a4de

ItemsAdder Version

ItemsAdder v4.0.2-beta-release-12

ProtocolLib Version

ProtocolLib v5.3.0-SNAPSHOT-732

LoneLibs Version

LoneLibs v1.0.59

Full Server Log

https://mclo.gs/0hQ9r34

Error (optional)

No response

Problematic items yml configuration file (optional)

info:
  namespace: myitems_furnitures
items:
  custom_furnace:
    display_name: "custom_furnace"
    permission: myitems.decorative.custom_furnace
    lore:
    - lore-decorative-item
    resource:
      material: PAPER
      generate: false
      model_path: custom_furnace
    behaviours:
      furniture:
        opposite_direction: true
        fixed_rotation: true
        entity: armor_stand
        #light_level: 15
        solid: true
        hitbox:
            height: 2
            length: 2
            width: 2
        placeable_on:
          floor: true
          ceiling: false
          walls: false
        sound:
          place:
            name: block.metal.fall
          break:
            name: block.metal.break

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

bug

Andre601 commented 5 days ago

Please provide actual logs and not just your configuration file.

Deeedline commented 5 days ago

I have already updated the link, sharing it here as well: https://mclo.gs/0hQ9r34