Thanks to the author and Adradis. I rewrote the script and ran it successfully. I only kept the textures I wanted. You can copy the text below in your content.json file ^ ^
As a heads up - When you update it for 1.6, there's a couple of changes for the content.json file - As it is now, it accidentally clips 6 pixels down because your source image includes the empty space at the start of the upper left tile, but you begin placing it at the actual corner of the crib (6 pixels down), which causes it to clip into the next tile.
Second - Because your patch area includes the double bed, you'll want to change it to Overlay instead of the default Replace, otherwise all of the tiles for the foot of the double bed will be deleted when the mod is loaded.
Below is an example block of how it should be. (246 to 240, and adding the Patchmode)
I will be updating all of my mods to work with 1.6, just haven't had the time yet. They'll be be posted as new mods, so just keep an eye out on the main mod page.
Ooo, really looking forward to using this one once it's updated! I absolutely love this idea and it looks beautiful done from those photos! **Edit: Nm, it worked! So happy, it looks perfect. Thank you so much :) :)
This mod is excellent! Is there any chance you could also change the child's bed so it matches whatever theme the crib has, if it's not too much to ask? (e.g. modern-style crib and child's bed)
13 comments
{
"Format": "1.13.0",
"ConfigSchema": {
"Crib": {
"AllowValues": " birch,, pink",
"Default": "birch"
}
},
"Changes": [
{
"Action": "EditImage",
"Target": "Maps/farmhouse_tiles",
"FromFile": "assets/birch.png",
"ToArea": { "X": 80, "Y": 240, "Width": 96, "Height": 80 },
"PatchMode": "Overlay",
"When": { "crib": "birch" }
},
{
"Action": "EditImage",
"Target": "Maps/farmhouse_tiles",
"FromFile": "assets/pink.png",
"ToArea": { "X": 80, "Y": 240, "Width": 96, "Height": 80 },
"PatchMode": "Overlay",
"When": { "crib": "pink" }
},
]
}
pixels down because your source image includes the empty space at the start of the upper left tile, but you begin placing it at the actual corner of the crib (6 pixels down), which causes it to clip into the next tile.
Second - Because your patch area includes the double bed, you'll want to change it to Overlay instead of the default Replace, otherwise all of the tiles for the foot of the double bed will be deleted when the mod is loaded.
Below is an example block of how it should be. (246 to 240, and adding the Patchmode)
{
"Action": "EditImage",
"Target": "Maps/farmhouse_tiles",
"FromFile": "assets/walnut.png",
"ToArea": {
"X": 80,
"Y": 240,
"Width": 96,
"Height": 80
},
"PatchMode": "Overlay",
"When": { "crib": "walnut" }
},
**Edit: Nm, it worked! So happy, it looks perfect. Thank you so much :) :)