Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Add item deconstruction via Crucible #4

Closed
grundyboy34 opened this issue Oct 24, 2015 · 0 comments
Closed

[Suggestion] Add item deconstruction via Crucible #4

grundyboy34 opened this issue Oct 24, 2015 · 0 comments

Comments

@grundyboy34
Copy link

Item deconstruction is something that many players would love to have. I have an idea for a simple implementation for it in slimefun which I'll describe below, and could help implement it if requested.

  1. Expand Crucible handler to detect if an armor piece or a weapon has been used on it.
  2. Find the item's recipe and send the number of ingot's required to create it to the calculation below. (Use the base item as a fall back. Cobalt armour to iron for example)
  3. Calculate the amount of ingots to be received by multiplying the ingots required to create the item by the durability as a modifier and rounding to the nearest whole number.

Example 1:
Item - Cobalt boots - 65% durability
4 Ingots * 0.65 = 2.6 ~= 3
Output: 3 Cobalt Ingots

Example 2 (case in which recipe was not detected):
Item - Some item (could be from another mod) whose base item is iron boots - 37% durability
4 Ingots * 0.37 = 1.48 ~= 1
Output: 1 Iron Ingot

TheBusyBiscuit pushed a commit that referenced this issue Oct 4, 2019
TheBusyBiscuit pushed a commit that referenced this issue Aug 7, 2020
TheBusyBiscuit pushed a commit that referenced this issue Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants