Open GreenDirkfried opened 2 years ago
Note that this changes the underlying structure of the code to some degree, as described in the following: The line "if oredef.makes.ore then" is replaced by "if oredef.mineral then" meaning that an ore (here ore=mineral) is not defined by having "ore=true" in "makes", but by the existence of "oredef.mineral ". In other words: an ore is defined (or made), if an ore is defined in the code. The same thing is done for the "block".
An explanation for level=5:
The mithril block should have less "uses" and a greater "digging time" than the diamond block, which is a level=3 node. Uses and digging times of a tool are defined for its "max level". Considering nodes of level less than the max level, the uses are multiplied by 3 to the power of the level difference and the digging times are divided by the level difference (the minetest engine should have a "level difference+1" here!), meaning that for one level difference the digging times does not change -- except for having a lower group-rating, but diamond already has cracky=1 (and lower numbers are not well treated).
Therefore, for the mithril block to have a higher digging time than the diamond block, it has to be not only level=4, but level=5.
Blocks, minerals and cooktimes were the same for all ores (e.g. the mithril block had the same attributes as the silver one and thus was less tough than the diamondblock).
The changes from this branch are: