PluginBugs / Issues-ItemsAdder

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

Add customizations to drop_item action #2691

Open ShizuArt opened 1 year ago

ShizuArt commented 1 year ago

Terms

Discord tag (optional)

Shizua#5479

Describe the solution you'd like

The drop_item action allows us to define a % chance of dropping an item, so it would be interesting to be able to associate other customizations to this percentage. For example, when this item is dropped, it plays an animated title, particles or even a sound.

Is your feature request related to a problem?

No

Describe alternatives you've considered

None

Additional context

No response

LoneDev6 commented 1 year ago

Good idea. I am thinking about some implementation.. maybe a new property called: additional_actions can be added to actions. This will allow you to trigger any sub-action if the first action is triggered, in this case drop_item would trigger the execute_command action.

I just have to see if it's doable with the current code structure or if it's too complex to implement.