PluginBugs / Issues-ItemsAdder

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

custom block interaction bug #3400

Open Flandreqwq opened 8 months ago

Flandreqwq commented 8 months ago

Terms

Discord tag (optional)

芙兰朵露·斯卡蕾特#4453

What happened?

When the player's main-hand and off-hand both hold an item and interact with a custom block, the items in both the main-hand and the off-hand will perform interactions. For example, when the player right-clicks a custom block with a stone in his main-hand and a dirt in his off-hand, both the stone and the dirt will be placed.

Steps to reproduce the issue

  1. put a custom block
  2. hold a stone in main-hand and a dirt in off-hand
  3. right click the custom block
  4. both the stone and the dirt are placed

Server version

Current: git-Purpur-2004 (MC: 1.20.1)*

ItemsAdder Version

[21:30:21 INFO]: ItemsAdder version 3.6.3-beta-11 [21:30:21 INFO]: Customized Minecraft without client mods! [21:30:21 INFO]: Website: devs.beer [21:30:21 INFO]: Author: LoneDev

ProtocolLib Version

[21:30:53 INFO]: ProtocolLib version 5.2.0-SNAPSHOT-679 [21:30:53 INFO]: Provides read/write access to the Minecraft protocol. [21:30:53 INFO]: Authors: dmulloy2 and comphenix

LoneLibs Version

[21:30:37 INFO]: LoneLibs version 1.0.45 [21:30:37 INFO]: Collection of libs used by my plugins [21:30:37 INFO]: Authors: LoneDev and others

FULL server log

No response

Error (optional)

No response

Problematic items yml configuration file (optional)

info:
  namespace: vkblocks
items:
  charcoal_block:
    display_name: '木炭块'
    resource:
      material: CHARCOAL
      generate: true
      model_id: 4950205
      textures:
        - building/charcoal_block.png
    behaviours:
      fuel:
        burn_ticks: 16000
        machines:
          - FURNACE
          - BLAST_FURNACE
          - SMOKER
    specific_properties:
      block:
        placed_model:
          type: REAL_NOTE
          break_particles: BLOCK
        break_tools_whitelist:
          - WOODEN_PICKAXE
          - STONE_PICKAXE
          - pickaxe_xx
        hardness: 1
        blast_resistance: 3
        no_explosion: false
        sound:
          break:
            name: minecraft:block.stone.break
            volume: 1
            pitch: 0.8
          place:
            name: minecraft:block.stone.place
            volume: 1
            pitch: 0.8
          hit:
            name: minecraft:block.stone.hit
            volume: 0.37
            pitch: 0.5
          step:
            name: minecraft:block.stone.step
            volume: 0.3
            pitch: 1
          fall:
            name: minecraft:block.stone.fall
            volume: 0.4
            pitch: 1

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)

https://github.com/PluginBugs/Issues-ItemsAdder/assets/127276917/d79ec58a-fef6-4f3c-92c1-d2aa70e0dd50

github-actions[bot] commented 8 months ago

Hello, your report will be looked into as soon as possible. Please do not bump this thread and don't post it on multiple platforms.

Thanks a lot for your patience.