Jump to content

GreenM4N4

Vintarian
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

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

GreenM4N4's Achievements

Wolf Bait

Wolf Bait (1/9)

1

Reputation

  1. I figured it out. The corrected code is below (note: In this example, I have the rock textures from the base game copied into my textures folder. If you want to use the base game stone textures prepend the texture name with game:) : textures: { all: { base: "block/stone/rock/{rock}1", blendedOverlays: [{ base: "block/ore/{prop}1", blendMode: "Overlay" }] , variants: [ { base: "block/stone/rock/{rock}2", blendedOverlays: [{ base: "block/ore/{prop}2", blendMode: "Overlay" }] }, { base: "block/stone/rock/{rock}3", blendedOverlays: [{ base: "block/ore/{prop}3", blendMode: "Overlay" }] } ] } },
  2. I am trying to use the code below to texture ores: textures: { all: { { base: "block/stone/rock/{rock}1", overlays: [ "block/ore/{type}1" ]}, alternates: [ { base: "block/stone/rock/{rock}1", overlays: [ "block/ore/{type}2" ] }, { base: "block/stone/rock/{rock}1", overlays: [ "block/ore/{type}3" ] } ] } }, It is failing to resolve the ore texture correctly. If I use the ore texture or the rock texture alone they load, I also tried blendedoverlays instead of just overlays and had the same result. I've been troubleshooting this for a while now and decided it's time to ask for help. What am I missing regarding overlay textures for ores? This is the mod w/ updated files that I am working on now: https://mods.vintagestory.at/crystallum
  3. That was the fix! Thank you so much for the assistance on this. I know a little programming but the enum stuff and bitwise were brand new to me, when I started looking at the storageFlag code I thought they were just normal integer variables, I was very wrong and wasted an hour trying to change the enumerated values! Anyway, thank you again very much!
  4. Hey, I've been tinkering with making a bag mod and I am trying to get storage flags working and have been having a heck of a time trying to make them work. I am using 3 of the extra enum values specified in the function public enum EnumItemStorageFlags; 4096, 8192, and 16384. I patched several JSON files to add storageFlag:4096 for example and now I cannot move the items or interact with them, other than scrolling over them. Even items in containers I cannot move any longer. I was trying to find what could be breaking it and hitting a wall. I can move items that were previously tagged with storageFlags, for example, I can move the item:stone-andesite and put it in my custom bag which is a larger mining bag, and the code is identical to the 3 other variants that I am trying to use the storageFlags for. On the other hand, I added a storageFlag: 4096 to redmeat.json and can no longer move the item. This is my first mod so it is most likely something dumb that I am missing, but, how could modifying the storage flag break any item I patch? Thanks for any help that can be provided.
×
×
  • 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.