Monolithys Posted January 13, 2021 Report Share Posted January 13, 2021 (edited) Hello all! If it's possible plz help me, where is I can find files, were is panning mechanics shows. I thing add something to create mod and make some new on it's base. ADD: ohh, and knapping mechanics too. I am not so strong programmer, more sysadmin or like it, so i need to look in code and syntax tnx! Edited January 13, 2021 by Monolithys Link to comment Share on other sites More sharing options...
l33tmaan Posted January 13, 2021 Report Share Posted January 13, 2021 These links have helped me out. Not much since all they've done is made me realize how little I know what I'm doing, but maybe they'll be more useful to you! https://apidocs.vintagestory.at/api/Vintagestory.API.Common.html https://github.com/anegostudios You'll probably find that stuff under the vssurvivalmod in the second link. Maybe. Link to comment Share on other sites More sharing options...
Monolithys Posted January 13, 2021 Author Report Share Posted January 13, 2021 (edited) Strange and some stupid question: How difficult to make mechanics like "pannable"? attributes: { pannable: true, Edited January 13, 2021 by Monolithys Link to comment Share on other sites More sharing options...
ZigTheHedge Posted January 15, 2021 Report Share Posted January 15, 2021 First of all - panning mechanic is bound to it’s action item - the Wooned Pan. All magic is happening in it’s code (OnInteraction* methods to be precise). So, to start making your own “craft” mechanic, you’ll have to find the starting point (trigger item/block), implement item transaction (source item => resulting item) in code of trigger item (with the corresponding character animation if needed), then decide how your mechanic will be present in jsons and patch all existing jsons, which will participate in your crafts. That’s absoutely not an easy task for a beginner. Link to comment Share on other sites More sharing options...
Monolithys Posted January 15, 2021 Author Report Share Posted January 15, 2021 I understand that, so I am seeking different ways to resolve this. Now try to find way: 1. Random loot received/dropped. 2. Multi random loot received/dropped And only one mechanics I see, "Panning" May be mining, when with little chance dropped "crystals". For now I can't find json files with this... Link to comment Share on other sites More sharing options...
Recommended Posts