Jump to content

BraunBerry

Members
  • Posts

    4
  • Joined

  • Last visited

BraunBerry's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Okay, thank you! Since smithing already provides the desired behaviour, I think I will just transform the crafting recipes to smithing recipes. So I don't have to invent a completely new mechanic. 😅
  2. Hello everyone, In some mods, tools can be upgraded to a higher tier in the crafting table. The interesting part is, that the durability of the tool is kept during the crafting process. For example, in my mod I implemented various kinds of hammers (they are kind of similar to pickaxes). I can for example upgrade a stone hammer to an iron hammer using the following crafting recipe: X | X | X ---+---+--- X | H | X = Y ---+---+--- X | X | X where X = Iron Ingot H = Stone Hammer and Y = Iron Hammer The problem is, that the iron hammer has full durability every time regardless of the durability of the stone hammer. The use count for the material "Stone" is 131 uses and the use count for the material "Iron" is 250 uses. My goal is to keep the original durability during crafting and transfer it to the output tool. For example, if the stone hammer has a durability of 50/131 uses, the iron hammer should have a durability of 50/250 uses after crafting. Is there any way to achieve such a behaviour? Thank you in advance.
  3. Alright, thank you very much for the quick answers.
  4. Hello everyone, I wonder if it is possible to reference configuration values from an OptionsHolder inside JSON files. Let's assume, that I create a configuration OptionsHolder according to this topic: In some of the loot tables of my mod I use float values for drop chances of specific items: { "type": "minecraft:item", "name": "mymod:gold_ore_fragment", "conditions": [ { "condition": "minecraft:match_tool", "predicate": { "items": [ "mymod:iron_hammer" ] } }, { "condition": "minecraft:table_bonus", "enchantment": "minecraft:fortune", "chances": [ 0.10, 0.15, 0.20, 0.25 ] } ] } I wanted to make the drop chance values (here 0.10, 0.15, 0.20 and 0.25) adjustable using a configuration file. Is there any possibility to do this? Thank you!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.