PluginBugs / Issues-ItemsAdder

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

put percentage on block or furniture "events" (EJ:give) #3352

Closed RitsuElAnti closed 9 months ago

RitsuElAnti commented 9 months ago

Terms

Discord tag (optional)

Ritsu#9014

Describe the solution you'd like

For example, it allows you to give the "item" from time to time. or run the command every so often for the block or furniture daily with a percentage and quantities like a block when mining it

Is your feature request related to a problem?

to create more variety and objects that can have a useful life without breaking the survival game mode

Describe alternatives you've considered

For example, it allows you to give the "item" from time to time. or run the command every so often for the block or furniture daily with a percentage and quantities like a block when mining it

Additional context

to create more variety and objects that can have a useful life without breaking the survival game mode

github-actions[bot] commented 9 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.

RitsuElAnti commented 9 months ago

Sorry for my bad writing, but my request was to be able to add percentages in the give event for example (chance and quantities) as in the mining drop of a block, now I change the word and specify well

LoneDev6 commented 9 months ago

So basically you want a furniture that can be interacted daily to get prizes with random quantity and chance? I think this is a little but out of the scope of the plugin.

By the way furniture and blocks can already have delay in the interaction event.

This should work for your idea.

    behaviours:
      furniture:
        enabled: true
    events_settings:
      cooldown:
        bossbar:
          color: BLUE
        ticks: 1728000 # 24 hours
    events:
      placed_furniture:
        interact:
          drop_item:
            item: DIAMOND
            min_amount: 1
            max_amount: 5
            chance: 30