tModLoader Code Wont Find My Files

Jskrunch

Terrarian
I made my code to find a tile in a folder and it wont find it i tryed checking my spelling checking for any errors in the files but nothing will work Please help the code is

Item.createTile = ModContent.TileType<Tiles.SteelBar>();

and the error that comes up is

Terraria_ A good day to dig hard 5_18_2022 9_42_39 PM.png


My folders go.
Test2.Content.Items.Tiles.SteelBar
Please if you could help it would help a lot PLEASE

*Picture Of Files If Needed*
Test2 - Microsoft Visual Studio 5_18_2022 9_45_36 PM (2).png
 
It looks like your namespace and folder path don't match. You have 'Test2.Content.Items.Tiles' for the namespace but 'Test2\Content\Items\Placeables' for the folder path. It looks like both folders exist, did you accidentally swap the namespaces between the two?
 
It looks like your namespace and folder path don't match. You have 'Test2.Content.Items.Tiles' for the namespace but 'Test2\Content\Items\Placeables' for the folder path. It looks like both folders exist, did you accidentally swap the namespaces between the two?
I just checked and my Placeables and My Tiles Scripts and they look correct
 
Last edited:
Back
Top Bottom