Need some help with my mod

syaslinskiy

Terrarian
For some reason, whenever I put a third item into my mod in the "Items" folder, TAPI crashes when I start it up. I did this with two different items thinking there was a problem with my code, but I couldn't find anything. TAPI Builder doesn't tell me that there is a problem with building the mod. It crashes when TAPI is loading the mods, right when you start it up.
 
I'm done with this thread. W1K helped me out a bunch.
i need help also the image shows my error message
{

"internalName": "SE"
"displayName": "soul extractor",
"texture": "item/soulextractor",
"size": [144,144],
"maxStack" :1,
"value": [10,4,0,0],
"rare": 7,
"tooltip": "the extractor of souls",
"useStyle": 1,
"useAnimation": 30,
"useTime": 30,
"damage": 100,
"knockback": 5,
"usesound": 1,
"autoReuse": true,
"useTurn": true,
"melee": true,
"recipes": [{
"items": {"iron block": 20},
"tiles": ["work bench"],
"creates": 1
}]

}
 

Attachments

  • help.png
    help.png
    141.1 KB · Views: 114
i need help also the image shows my error message
{

"internalName": "SE"
"displayName": "soul extractor",
"texture": "item/soulextractor",
"size": [144,144],
"maxStack" :1,
"value": [10,4,0,0],
"rare": 7,
"tooltip": "the extractor of souls",
"useStyle": 1,
"useAnimation": 30,
"useTime": 30,
"damage": 100,
"knockback": 5,
"usesound": 1,
"autoReuse": true,
"useTurn": true,
"melee": true,
"recipes": [{
"items": {"iron block": 20},
"tiles": ["work bench"],
"creates": 1
}]

}
Use the tAPI builder, not the Packer.
I don't think you need an internal name as the item will automatically take the internal name of the mod plus its file name.
I believe recipe items are case sensitive ("Iron Block", "Work Bench").
Also, I don't believe there to be an Iron Block item either (I believe you refer either to Iron Ore or Iron Bar?)
 
there to craft the item i set it to 20 iron bars
 

Attachments

  • mymod.tapi
    12.9 KB · Views: 95
  • mymod.zip
    17.6 KB · Views: 103
The folder is named "items" rather than "Items". Notice the major cased "I".
Also in the .tapi file, the items folder seems to be empty and only contain one png file.
In the .zip file, the items' recipe still refers to a lower cased work bench (it's supposed to be "Work Bench") and still requires an "item block" to craft, which is not a valid item.
 
"melee":true was missing the comma at the end.
 

Attachments

  • mymod.zip
    17.6 KB · Views: 98
There were a bunch of commas missing in ModInfo.json
useSound was mispelled into usesound and there was a comma missing at the end of the items line in the recipe.
Now it's truly fixed.
 

Attachments

  • mymod.zip
    17.6 KB · Views: 102
Stupid mistake on my part, forgot to change the texture's directory after renaming the Items folder. Tried to load it myself and seems to be working fine now.
 

Attachments

  • mymod.zip
    17.6 KB · Views: 103
Back
Top Bottom