Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mod doesn't want to work with Content-Tweaker blocks and item #23

Open
Rainbow3802 opened this issue Feb 8, 2018 · 3 comments
Open

Comments

@Rainbow3802
Copy link

I tried to make a tool material with some material I made with CT, but when I look in the Material and You book it doesn't show my ingot as an example material, it shows shard that InfiniTiC created, and all of the materials I've written in the file aren't meltable in smeltery (shards are not meltable too). I've quadriple checked that I've written everything right, but here's the code anyway:

{
"__name_comment": "An OreDictionary entry will be made (if one does not already exist) using this name.",
"name": "Titanium",
"__make_comment": "A list of materials to be made by the mod. Currently only 'fluid' is valid, which will cause the fluid to be made and recipes to use the smeltery. Use an empty array to NOT make a fluid, any parts defined below to be crafted using solid materials and the part builder instead.",
"make": ["fluid"],
"__color_comment": "The three colors are all in the format #AARRGGBB. Tinkers will change fully transparent materials to fully opaque!",
"textColor": "#ffeaeaea",
"whitelist": {
"__comment": "Everything in the whitelist will be added to the OreDictionary with the above name.",
"oredict": [""],
"ingots": ["contenttweaker:titanium_ingot"],
"nuggets": ["contenttweaker:titanium_nugget"],
"dusts": [],
"gems": [],
"blocks": ["contenttweaker:titanium_block"],
"ores": ["contenttweaker:titanium_ore"]
},
"blacklist": {
"__comment": "Optionally use the blacklist to exclude specific items.",
"oredict": [],
"ores": []
},
"fluidData": {
"color": "#ffeaeaea",
"density": 2000,
"viscosity": 10000,
"temperature": 1000,
"luminosity": 10,
"__comment": "rarity can be COMMON, UNCOMMON, RARE or EPIC",
"rarity": "COMMON"
},
"__comment": "If you do not want to be able to craft the Tool Forge (using blocks of this material) set the following to false.",
"canCraftToolForge": true,
"toolData": {
"__durability_comment": "Usually between 1 and 1000",
"durability": 1000,
"__harvestLevel_comment": "0=STONE, 1=IRON, 2=DIAMOND, 3=OBSIDIAN, 4=COBALT",
"harvestLevel": 4,
"__extraDurability_comment": "Durability added (or removed!) by a binding (or similar) of this material.",
"extraDurability": 800,
"__miningSpeed_comment": "Usually between 1 and 10",
"miningSpeed": 12.0,
"__attack_comment": "Usually between 0 and 10 (in 1/2 hearts, so divide by 2 for damage in hearts)",
"attack": 7.0,
"handleModifier": 2,
"handleDurability": 800,
"color": "#ffeaeaea",
"temperature": 200,
"__projectiles_comment": "Set to true to enable building Shurikens",
"projectiles": true,
"__bow_comment": "Following example stats are for a wood bow",
"drawSpeed": 5.0,
"range": 10.0,
"bonusDamage": 10.0,
"__stringModifier_comment": "Use 1.0 for standard string. Use 0.0 to disable for this material.",
"stringModifier": 0.0,
"__arrow_shaft_comment": "Following example stats are for wood arrow shafts. Set modifier to 0 to disable.",
"shaftModifier": 5.0,
"bonusAmmo": 5.0,
"__arrows_comment": "Following example stats are for feather fletchings. Set to 0 to disable.",
"accuracy": 2.0,
"fletchingModifier": 2.0,
"__traits_comment": "Optional list of traits to be applied generally to parts made of this material. Use /infinitic traits in-game to see the full list!",
"traits": ["lightweight", "fractured"],
"__specific_traits_comment": "Optional lists of traits to be applied to specific parts made of this material. Use /infinitic traits in-game to see the full list!",
"headTraits": ["lightweight", "fractured"],
"handleTraits": ["lightweight", "fractured"],
"extraTraits": ["lightweight", "fractured"],
"bowTraits": [],
"stringTraits": [],
"projectileTraits": [],
"shaftTraits": [],
"fletchingTraits": []
},
"localizations": [{
"__comment": "The name of the material in various languages. solid = the material and the tool. liquid = the name of the fluid. bucket = the name of the bucket. To add more languages just add another object with the 4 elements",
"locale": "en_US",
"solid": "Titanium",
"liquid": "Molten Titanium",
"bucket": "Titanium Bucket"
}]
}

@Rainbow3802
Copy link
Author

And for example this one just crushes the game no matter what I do to it:

{
"__name_comment": "An OreDictionary entry will be made (if one does not already exist) using this name.",
"name": "Rainbow_Crystal",
"__make_comment": "A list of materials to be made by the mod. Currently only 'fluid' is valid, which will cause the fluid to be made and recipes to use the smeltery. Use an empty array to NOT make a fluid, any parts defined below to be crafted using solid materials and the part builder instead.",
"make": [],
"__color_comment": "The three colors are all in the format #AARRGGBB. Tinkers will change fully transparent materials to fully opaque!",
"textColor": "#FFff0096",
"whitelist": {
"__comment": "Everything in the whitelist will be added to the OreDictionary with the above name.",
"oredict": [],
"ingots": [],
"nuggets": [],
"dusts": [],
"gems": ["contenttweaker:rainbow_crystal"],
"blocks": [],
"ores": ["contenttweaker:rainbow_ore"]
},
"blacklist": {
"__comment": "Optionally use the blacklist to exclude specific items.",
"oredict": [],
"ores": []
},
"fluidData": {
"color": "#FFff0096",
"density": 2000,
"viscosity": 10000,
"temperature": 1000,
"luminosity": 10,
"__comment": "rarity can be COMMON, UNCOMMON, RARE or EPIC",
"rarity": "COMMON"
},
"__comment": "If you do not want to be able to craft the Tool Forge (using blocks of this material) set the following to false.",
"canCraftToolForge": true,
"toolData": {
"__durability_comment": "Usually between 1 and 1000",
"durability": 1,
"__harvestLevel_comment": "0=STONE, 1=IRON, 2=DIAMOND, 3=OBSIDIAN, 4=COBALT",
"harvestLevel": 0,
"__extraDurability_comment": "Durability added (or removed!) by a binding (or similar) of this material.",
"extraDurability": 1,
"__miningSpeed_comment": "Usually between 1 and 10",
"miningSpeed": 30.0,
"__attack_comment": "Usually between 0 and 10 (in 1/2 hearts, so divide by 2 for damage in hearts)",
"attack": 0.3,
"handleModifier": 2,
"handleDurability": 1,
"color": "#FFff0096",
"temperature": 200,
"__projectiles_comment": "Set to true to enable building Shurikens",
"projectiles": false,
"__bow_comment": "Following example stats are for a wood bow",
"drawSpeed": 10.0,
"range": 1.0,
"bonusDamage": 0.0,
"__stringModifier_comment": "Use 1.0 for standard string. Use 0.0 to disable for this material.",
"stringModifier": 0.0,
"__arrow_shaft_comment": "Following example stats are for wood arrow shafts. Set modifier to 0 to disable.",
"shaftModifier": 1.0,
"bonusAmmo": 0.0,
"__arrows_comment": "Following example stats are for feather fletchings. Set to 0 to disable.",
"accuracy": 1.0,
"fletchingModifier": 1.0,
"__traits_comment": "Optional list of traits to be applied generally to parts made of this material. Use /infinitic traits in-game to see the full list!",
"traits": ["lighweight", "unnatural", "crumbling", "stonebound"],
"__specific_traits_comment": "Optional lists of traits to be applied to specific parts made of this material. Use /infinitic traits in-game to see the full list!",
"headTraits": ["lighweight", "unnatural", "crumbling", "stonebound"],
"handleTraits": ["lighweight", "unnatural", "crumbling", "stonebound"],
"extraTraits": ["lighweight", "unnatural", "crumbling", "stonebound"],
"bowTraits": [],
"stringTraits": [],
"projectileTraits": [],
"shaftTraits": [],
"fletchingTraits": []
},
"localizations": [{
"__comment": "The name of the material in various languages. solid = the material and the tool. liquid = the name of the fluid. bucket = the name of the bucket. To add more languages just add another object with the 4 elements",
"locale": "en_US",
"solid": "Rainbow Crystal",
"liquid": "Molten Rainbow Crystal",
"bucket": "Rainbow Crystal Bucket"
}]
}

@CvoidWyvern
Copy link

It looks like this is a problem with InfiniTiC doing things before contenttweaker has added everything. It's giving a "Unable to find a material named ingotomni" in the logs for me, before ingotomni is mentioned by anything else in the logs.

@geekkid1
Copy link

geekkid1 commented Sep 16, 2019

I think it's also possible that you have a conflict between the attributes "blocks":[] and "canCraftToolForge": true for the rainbow crystal material because you need blocks to be able to craft a tool forge out of the material, I don't know what kinda work you do with that material behind the scenes but that might be a problem.

Most likely not the problem, but still something to take into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants