PluginBugs / Issues-ItemsAdder

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

Recipe EXP reward and command execution #1952

Open 00Hrtz opened 2 years ago

00Hrtz commented 2 years ago

Terms

Discord tag (optional)

No response

Describe the solution you'd like

Recipe EXP, a customer has asked if it was possible to give mmocore brewing exp which requires the recipe to run a command but, i also think it would be good if recipes could gift EXP.

https://paste.helpch.at/hojikiyewu.cpp

I see that you've already implemented exp under cooking recipes, would be awesome if it could be used in workbench recipes too.

Is your feature request related to a problem?

no

Describe alternatives you've considered

no

Additional context

No response

LoneDev6 commented 1 year ago

This can easily lead to exp duplication issues because people might be able to:

This feature can be added, but you have to be careful when structuring your various server recipes.


Idea from the other ticket #2062

   knife:
      permission: knife
      enabled: true
      pattern:
      - XXX
      - XDX
      - XSX
      ingredients:
        D: IRON_NUGGET
        S: STICK
      result:
        item: knife
        amount: 1
        give_exp:
          chance: 100
          min_amount: 0
          max_amount: 3
00Hrtz commented 1 year ago

I was thinking more along the lines of having recipes give between 1 to 3 exp maximum. As a reward to gathering the ingredients and creating the item. So lets say it's easy to create and only requires 1 to 3 items to create. you set exp to 1. if it takes 7 to 9 item slots filled then it gives exp 3.