You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Expand Crucible handler to detect if an armor piece or a weapon has been used on it.
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)
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 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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: