I've been using the isReplaceableOreGen(...) method of the block class to determine if I can spawn ore in a given block. The method takes a predicate, so I pass in a predicate that simply checks if the block is a vanilla stone block under the naive assumption that other mod authors will override this method to ignore the predicate and return true for their custom stone blocks.
However, my naive assumption has proved to be false. What is a more reliable way of determining if a block is ore-replaceable?
Rollback Post to RevisionRollBack
My mods: Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
Well I can easily change the predicate to check the ore dictionary, so I'll go ahead and try that. Any other ideas in case that doesn't work?
Granted, I can only bend so far to accommodate other mods.
Rollback Post to RevisionRollBack
My mods: Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
You could contact the authors of the mods you found incompatible and ask them to register their stone as "stone". It may take them a while to update it, though.
That's all I have. Happy modding!
Rollback Post to RevisionRollBack
Click this banner for a list of illegal mod distributors -- only download from legal sites!
Hello,
I've been using the isReplaceableOreGen(...) method of the block class to determine if I can spawn ore in a given block. The method takes a predicate, so I pass in a predicate that simply checks if the block is a vanilla stone block under the naive assumption that other mod authors will override this method to ignore the predicate and return true for their custom stone blocks.
However, my naive assumption has proved to be false. What is a more reliable way of determining if a block is ore-replaceable?
My mods:
Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
OreDict specifies the name "stone" for any kind of stone, but I do not know how many modders register their stone in the oredictionary...
Well I can easily change the predicate to check the ore dictionary, so I'll go ahead and try that. Any other ideas in case that doesn't work?
Granted, I can only bend so far to accommodate other mods.
My mods:
Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
You could contact the authors of the mods you found incompatible and ask them to register their stone as "stone". It may take them a while to update it, though.
That's all I have. Happy modding!