Jump to content

Recommended Posts

Posted

I have a mod idea for more immersive tool crafting than using the crafting grid, but that would need me to change how certain (preexisting) items behave when held and used with right click. How do I do that?

Posted (edited)

ideally I guess you json patch in a brand new "behaviors" (and then write that new behavior in c# and register it), although your results may vary...
https://wiki.vintagestory.at/Modding:JSON_Patching

or find an appropriate place in the code to intercept the existing action and monkey patch it (surely a prefix or postfix patch will suffice)
https://wiki.vintagestory.at/Modding:Monkey_patching

last resort: depending on the "thing" you are patching and the difficulty level, it may instead involve replacing a "class" (or adding a brand new one) via a json patch.

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.