WalrusNetwork / bugs

Public bug tracker for Walrus, a Minecraft server organization.
https://walrus.gg
0 stars 0 forks source link

Fired arrows don't stack #13

Closed Picajoluna closed 4 years ago

Picajoluna commented 4 years ago

Arrows that have been fired don't retain the 'item NBT' status, unlike those found in player inventories -- meaning the two do not stack in inventories.

I also don't know if fired arrows can stack amongst one another, although I'd assume that they can.

Siceth commented 4 years ago

Fired arrows definitely stack. The question is, should spawned arrows not have a tag or should ground arrows have a tag? I'm assuming the former?

mitchts commented 4 years ago

Arrows that have NBT have it because of the death-drop attribute. This is so the plugin knows that the item should/should not be dropped on death.

Maybe a better alternative to how this is currently handled is to do something similar to item remove and just filter the material. This way it's just a global filter for everything and not decided per item stack. I cannot think of a case where this will cause bad behaviour.

mattarnold98 commented 4 years ago

@mitchts I've added a <death-drop> filter in the same vein as the item remove filter. I'm thinking we should keep the current death-drop attribute as well, just in case there are any edge cases, but in general using that filter should solve this.

dustinn1 commented 4 years ago

Should be good with the <death-drop> filter.