JAGIELSKI Posted December 30, 2024 Report Posted December 30, 2024 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?
Spear and Fang Posted December 30, 2024 Report Posted December 30, 2024 (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 December 30, 2024 by Spear and Fang
DejFidOFF Posted December 30, 2024 Report Posted December 30, 2024 10 hours ago, JAGIELSKI said: 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? Something like this? https://mods.vintagestory.at/manualtoolcrafting
Recommended Posts