Jump to content

Recommended Posts

Posted

Hi, I'm making a mod on 1.22.2 that adds, among other things, a poisonous berry. I'm trying to set it up so that the juice from the berries harms the player (as the berries do successfully) but struggling to make it happen. As it stands I'm making the mod through the Modmaker 3000, in case that's an issue. I've tried editing the rawjuice file's "nutritionpropsbylitre" section and the fruit file's "juiceablepropertiesbytype" section but have had no luck so far. I'm also looking to make the berries and juice psychedelic, but haven't tried much yet, is it possible?

Posted (edited)

modmaker could in fact be the problem here.

before using modmaker, make the vanilla edits and then test the change(s)

If they work prior to making the mod, then modmaker has made a mistake.  One notable thing that modmaker always gets wrong is the positioning of entries in a "......bytype".  It simply doesn't account for the "move" that is often a requirement.

https://wiki.vintagestory.at/Modding:JSON_Patching#Move_operation

 

Edited by Spear and Fang
Posted
4 minutes ago, Spear and Fang said:

modmaker could in fact be the problem here.

before using modmaker, make the vanilla edits and then test the change(s)

If they work prior to making the mod, then modmaker has made a mistake.  One notable thing that modmaker always gets wrong is the positioning of entries in a "......bytype".  It simply doesn't account for the "move" that is often a requirement.

https://wiki.vintagestory.at/Modding:JSON_Patching#Move_operation

 

Oh, I'm having this problem even before I make the patch. I guess what I mean is do you think that I'd get better results if I were just writing entirely new files rather than using a patch?

Posted (edited)
8 hours ago, catgirltreats said:

Oh, I'm having this problem even before I make the patch. I guess what I mean is do you think that I'd get better results if I were just writing entirely new files rather than using a patch?

If it's a brand new thing I find it's easier to write entirely new files, and players prefer this as well because they can then distinguish between your mods assets and vanilla assets.  But you could get the same results with either approach.

Edited by Spear and Fang
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.