Jump to content

Spoonail

Vintarian
  • Posts

    6
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Spoonail's Achievements

Wolf Bait

Wolf Bait (1/9)

7

Reputation

3

Community Answers

  1. `AuroraRenderer` seems to contain the logic for the temperature condition: https://github.com/anegostudios/vsessentialsmod/blob/51253adb3f200c46fe59993c7ada2e9e7f32c0ed/Systems/Weather/AuroraRenderer.cs#L77 The formula is a bit tricky, but the `tempfac` reaches its max (1.0) at -20C and reaches its min (0.0) at -5C Also note that this is not the current temperature: it's annual average (a.k.a "base" temperature,) since the mode argument to `ClimateAt` is `EnumGetClimateMode.WorldGenValues` To change the condition, you'll need to Harmony-patch the method because no parameters of the condition are exposed via external files such as json.
  2. The behavior averaging durability can be disabled from the recipe json. Add "averageDurability": false to the recipe.
  3. The JSON Patching page on the wiki states ModMaker uses the `game` domain by default: https://wiki.vintagestory.at/index.php/Modding%3AJSON_Patching > By default, when you generate a mod using ModMaker 3000™, the folder structure will use game as the domain, and use the same file name as the vanilla JSON file. This can lead to mod conflicts. But I tested ModMaker in VS1.21.6, 1.20.12, and 1.19.8, and could not reproduce the issue. It might have been the case in versions older than 1.19.
  4. I made a few changes and got it working: In `StartServerSide`: The handler and a method for Ground Storage: Changes and reasons: - Spawning the pot at fixed position was hard to debug, so changed the command to spawn it at player pos +3z - So after running the command, look south to find the spawned pot - Getting block/item by raw ID doesn't work well. Use it with `AssetLocation` always. - Actually `GetBlock(1093)` gave me one of variants of brick blocks - Meat stew requires at least 2 meat, so changed the ingredient to 2 red meat and 2 carrots - To set meal into a pot properly, you need to call `IBlockMealContainer.SetContents` - In recent VS versions, meal containers are placed in Ground Storages instead of being placed directly, so changed the code to follow the way - Create a pot stack, set meal content to it, create a Ground Storage, place the gs and set the pot stack into it
  5. You can set any client config value via the `.clientConfig` command, including the bgm volume (`musicLevel`): .clientConfig musicLevel 0 .clientConfig musicLevel 30 If you want short-hand commands, you can define custom commands in your mod's `StartClientSide` and use `ICoreClientAPI.TriggerChatMessage` to call `.clientConfig`. That should look like: public override void StartClientSide(ICoreClientAPI api) { api.ChatCommands .Create("notbgm") .HandleWith(args => { api.TriggerChatMessage(".clientConfig musicLevel 0"); return TextCommandResult.Success($"Current music level: {ClientSettings.MusicLevel}"); }); //... }
×
×
  • 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.