MCHPR / MCHPRS

A multithreaded Minecraft server built for redstone.
MIT License
1.59k stars 69 forks source link

Placeable tripwire hooks (#21) #22

Closed ghost closed 3 years ago

ghost commented 3 years ago

Added tripwire hooks on line 337-343 (Meaning you can place them now without having to load from schematics) The issue that still persists is when breaking a block the tripwire hook remains. (A block that the tripwire hook is placed on)

StackDoubleFlow commented 3 years ago

While it may seem that you are able to place tripwire hooks at first glance, the block is only visible on the client and the server has no knowledge about it. This is because the server does not know how the item is associated with the block. (You can test this by seeing if the block is still there when rejoining)

To implement this properly, you will also have to match the item to the correct block state using the player's orientation in Block::get_state_for_placement

AL1L commented 3 years ago

@StackDoubleFlow looks like nothing is going to happen of this, the OP was deleted :(