mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-22 13:44:31 +00:00
feat(blockstates): rotation profiles and placement tracking
This commit is contained in:
@@ -244,6 +244,8 @@ public class ExampleMod : IMod
|
||||
.Resistance(5f)
|
||||
.Sound(SoundType.Wood)
|
||||
.Model("examplemod:block/ruby_chair")
|
||||
.BlockState("examplemod:ruby_chair")
|
||||
.RotationProfile(BlockRotationProfile.Facing)
|
||||
.Name(Text.Translatable("block.examplemod.ruby_chair"))
|
||||
.InCreativeTab(CreativeTab.Decoration));
|
||||
|
||||
|
||||
19
ExampleMod/assets/examplemod/blockstates/ruby_chair.json
Normal file
19
ExampleMod/assets/examplemod/blockstates/ruby_chair.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"variants": {
|
||||
"facing=north": {
|
||||
"model": "examplemod:block/ruby_chair"
|
||||
},
|
||||
"facing=east": {
|
||||
"model": "examplemod:block/ruby_chair",
|
||||
"y": 90
|
||||
},
|
||||
"facing=south": {
|
||||
"model": "examplemod:block/ruby_chair",
|
||||
"y": 180
|
||||
},
|
||||
"facing=west": {
|
||||
"model": "examplemod:block/ruby_chair",
|
||||
"y": 270
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user