Add DispenserReplaceItemEvent#7530
Conversation
Currently handled for any bucket and bottle type, which should be all items that can be replaced on a dispenser as far as I know. This event could be used for servers with a rarity system on items (As mine), as currently I had to use the normal dispense event and delay 1 tick a loop through the dispenser inventory to change the item lore.
|
I would prefer adding a "replacement stack" field to the existing BlockDispenseEvent over adding a whole event for this. This also slightly (or significantly) conflicts with #7513 I think. |
That makes sense, now that you mention it I'm not really sure as why I decided to go with a whole new event as a solution, also, yeah, I saw that PR but wasn't really sure on how to work on it because it isn't merged. I could add a field but doing so will result on another conflict I guess. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
#7513 - not sure where this stands in regards to this PR and what needs doing here (too brain gone right now) |
|
Are you planning on perhaps adding this to the already pre-existing event instead of making a new one? The PR mentioned only covers a specific use case (bottles), and I feel like a generic solution like this one is better. |
|
Superseded by #8660, thank you regardless for your contribution. 😄 |
Currently handled for any bucket and bottle type, which should be all items that can be replaced on a dispenser as far as I know. This event could be used for servers with a rarity system on items (As mine), as currently I had to use the normal dispense event and delay 1 tick a loop through the dispenser inventory to change the item lore.