xt9 / cryogenic-simulation

11 stars 1 forks source link

[0.3] All Thermal Expansion Ores unbreakable #3

Closed Hjaldar closed 5 years ago

Hjaldar commented 5 years ago

My guess is that the following lines of block_properties.zs are responsible:

var infusedManaDef = .asBlock().definition; infusedManaDef.setUnbreakable();

Quick fix for now to allow testing to continue is to comment out these lines. I will look for a more permanent fix.

Hjaldar commented 5 years ago

I think the issue is that all TE ores are different block states of thermalfoundation:ore.

print(infusedManaDef.id); outputs thermalfoundation:ore

And .setUnbreakable() sets all the block states to unbreakable.

xt9 commented 5 years ago

Pickletweaks can also do blockhardness, and with oredict aswell. So maybe that's a good workaround

 # Here you can override the hardness of blocks.
    # - Syntax: modid:blockid=hardness
    # - Example: minecraft:stone=100
    # You can also override using OreDictionary entries.
    # - Syntax: ore:orevalue=hardness
    # - Example: ore:oreCopper=25
    S:block_hardness <
     >
xt9 commented 5 years ago

I think I'll just move Mithril to the IF laser so I don't have to spend a lot of time on figuring this one out.