Jump to content

Recommended Posts

Posted (edited)

Hey guys !
I'm trying to make an animated Block (opened and closed block).
I don't know how to start it because forge documentation didn't help me to figure out how to do this.
But i already did that : trough Propertybool and with  Blockstate JSON, i made different model of the block. If i change a boolean in my block class, my block is turning closed or opened peferctly the way i want.
Only the problem is that... well... if I try to change it in game, the change didn't take place. I have to restart the map (leave and directly go back in) to see the change.

SetBlockState didn't make anything change

If someone has a tutorial to show me, don't hésitate ?

Here my Block

  Reveal hidden contents


(i think you can see i'm still a beginner with all this line of code. Yup  i can agree. I will learn how to do better later :p... And at least it works :p)

Edited by Microcellule

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.