New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added "[sheet" to the texture special commands. #4861
Conversation
"[sheet:W:H:X:Y" assumes the base image is a tilesheet with W*H tiles on it and crops to the tile at position X,Y. Basically it works like "[verticalframe" but in 2d. For testing, I combined the four default_chest images into one.
This is a rebased, and tested #1686. |
Blocked by feature freeze. |
Dang. I really like this feature, use one image for many nodes. Or locate a mob face in a texture to make a head. This would be a great resource saver. |
Does sheet work faster than verticalframe? |
I'm assuming you mean the code, it makes absolutely zero difference. Additionally this would cause inefficiencies with textures already partially generated in the past. |
Cool, I could use this for my rdis mod. |
This PR now included in #4952 |
"[sheet:W:H:X:Y" assumes the base image is a tilesheet with W*H tiles
on it and crops to the tile at position X,Y. Basically it works
like "[verticalframe" but in 2d.
For testing, I combined the four default_chest images into one.