RomainP Posted November 7, 2021 Report Share Posted November 7, 2021 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 More sharing options...
DArkHekRoMaNT Posted November 7, 2021 Report Share Posted November 7, 2021 @RomainP You don't need to provide the full path. Relative to the asset category only - game:block/leather (blocks is typo/old name). Also I have updated this wiki page for VS 1.15 Link to comment Share on other sites More sharing options...
RomainP Posted November 7, 2021 Author Report Share Posted November 7, 2021 It works! Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts