Started by
Hijitori
on
Topic category: Advanced modding
I made a ruby ore in my mod to which I have lost access to workshop recently, left with only .jar mod file with .class files in it. I found 3 .class files in .jar:
(1.12.2 mod)
RubyOreBlock$1
RubyOreBlock$CustomBlock
RubyOreBlock
I really want to retrieve the most important settings of the ore like its hardness, generation chance, maximum height etc.
Does anybody know in which lines can I find those parameters? Thanks in advance.
Edited by Hijitori on Sat, 03/20/2021 - 10:55
To read .class files you need to decompile your mod’s jar file using decompiler. You can find it in the internet
Then you should open your ruby ore file and find something like this
There is a line with Block.Properties and in it you will find your ruby ore's material, sound, hardness, resistance, etc
Thanks and how about generation chance/height/amount f.e.? Do you know where I can find those informations?
I also found this in RubyOreBlock.class:
RubyOreBlock.block.func_176223_P(), 6), Placement.field_215028_n, (IPlacementConfig)new CountRangeConfig(1, 1, 1, 14)));