#Help with getting the TOGGLE feature to work
27 messages · Page 1 of 1 (latest)
- You need to set both
FACINGandTOGGLEto a default value in the constructor. - You need to add both in the
appendPropertiesfunction
I assume it would be builder.ads(TOGGLE); for append properties but what part is the constructor ?
I’d like to stress I’m a beginner at this stuff
I’ve looked through this but can’t find anything about a toggle variations, just true and false which can only be applied to two models or textures where as I need 3 @inner flare
There may be a tristate property, otherwise just make your own.
Just make ur own? Bro im beond a noob lol, those wiki and guide pages dont specify anything about a toggle blockstate with multiple states so it isnt as easy for me as just making my own @slim roost
EnumProperty.create("toggle", YourEnumWith3Elements.class)
And this would go into what file?
that is the entire property
EnumProperty<E> TOGGLE = EnumProperty.create("toggle", E.class);
where E is your enum
Right but where do i actually enter this stuff?
read this
@slim roost something like this? Not sure why create is red tho
why do you pass 0,3?
Seen someone do that online to say theres three models
you gotta learn java first
Tbh ive not needed to for any of the previous stuff ive done with other class and properties, this is the first one that I need this much help for lol
How should my properties/custom class file look like tho? Are the images i sent along the right lines? As id like my blocks to both place facing me and to have the 3 different model blockstates under toggle
That is just an enum with 3 elements. It looks correct except that random 0,3.
should it be of instead of create?
Figured it out myself, IntProperty is easier than this