question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't cast custom materials

See original GitHub issue

I’m trying to re-implement my 1.7.10 TC toolparts in 1.10.2, and everything is working EXCEPT I can’t cast anything. My code for adding a tool material is as follows:

Material mat = new Material("mc3_phazon", TextFormatting.DARK_AQUA);
mat.setRepresentativeItem(new ItemStack(MC3Blocks.phazon));
mat.addTrait(new TraitPhazon());
mat.setFluid(MC3Fluids.liquidPhazon);
mat.setCastable(true);
if (FMLCommonHandler.instance().getSide().isClient()) mat.setRenderInfo(new MaterialRenderInfo.BlockTexture("mc3:blocks/blockphazonore"));
TinkerRegistry.addMaterialStats(mat, new HandleMaterialStats(1f, 100));
TinkerRegistry.addMaterialStats(mat, new HeadMaterialStats(750, 6f, 8f, 4));
TinkerRegistry.addMaterialStats(mat, new ExtraMaterialStats(60));
TinkerRegistry.addMaterial(mat);

I don’t think it’s an issue as much as it is something I’m missing

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FirEmeraldcommented, Mar 8, 2017

nevermind found the issue again.

0reactions
FirEmeraldcommented, Mar 7, 2017

I do still have a bug: the manual doesn’t show an item/block for the material

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Set Up Custom Materials in Cricut Design Space
Your browser can't play this video. Learn more. Switch camera.
Read more >
How do I use or create a Custom material setting? - Cricut - Help
Using a Custom material setting · Select Browse All Materials. Browse_all_materials_2.png · Scroll to browse the list, use the All Categories drop-down, or...
Read more >
How to Make a Custom Material Setting in Cricut Design Space
There are actually two ways to get to the materials screen. The first is right on the home page. Just click on the...
Read more >
Why can't I use third-party or custom materials on the Form 3 ...
Formlabs cannot vouch for the success of parts when printing using our hardware with third-party resins.
Read more >
Upload Custom Materials in the New Material Service Beta
Note that “MaterialVariants” are not new, custom base materials but rather a ... This is an entire game changer, I cannot wait to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found