Skip to content
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

Block states #138

Closed
Unarelith opened this issue Jul 5, 2020 · 0 comments · Fixed by #153
Closed

Block states #138

Unarelith opened this issue Jul 5, 2020 · 0 comments · Fixed by #153

Comments

@Unarelith
Copy link
Owner

Unarelith commented Jul 5, 2020

States can contain any attribute the block has and will replace the original when active.
The u16 data stored with the block will be used to know which state to pick.

Example:

mod:block {
   id = "default:stained_glass",

   is_opaque = false,

   states = {
      [1] = {
         name = "White Stained Glass",
         tiles = "white_stained_glass.png",
      },

      [2] = {
         name = "Blue Stained Glass",
         tiles = "blue_stained_glass.png",
      }
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant