Jump to content

How do you use game domain textures?


RomainP

Recommended Posts

Hello, I would like to use a texture from the game itself. On the wiki (https://wiki.vintagestory.at/index.php?title=Modding:The_Asset_System), it says we can use this path: [game:assets/textures/blocks/leather.png]. Here's my blocktypes JSON file:

{
  code: "myleatherblock",
  creativeinventory: { "general": [ "*" ] },
  blockmaterial: "Wood",
  drawtype: "Cube",
  textures: {
    all: { base: "game:assets/textures/blocks/leather" }
  },
  resistance: 3.5,
  sounds: {
    "place": "game:block/anvil",
    "walk": "game:walk/stone"
  }
}

It's just a test, I'm learning how to create mods and I'm also learning JSON so I have some difficulties 😅
Once in the game, the bloc correctly appears but the texture is the unknown one. How do I use the game domain please 😭

Link to comment
Share on other sites

×
×
  • 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.