Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi all,

 

in this thread I got awesome help regarding my first steps with animations 

 

Now nearly everything works fine, you can watch my repo here: https://github.com/Autodidax86/demoncycle/

 

BUT.... my machine won't stop. The ASM does not react to a transition call, the spinning wheel rotates and rotates and rotates and rotates... 

Changing the start_state to default works, but it is the same problem. Rotation does not start.

 

Do you have an idea what I am doing wrong? I feel like i am very close to finish my spinning wheel :)

 

Thanks in advance

Autodidax

Edited by Autodidax
problem solved

Hey Autodidax,

 

I just cloned your GitHub repository in my local testing environment to check if my assumption about your error is correct ... And is it ?

Your problem is just a simple Server / Client - desync:

     Your TileEntitySpinningWheel.update is only running on the Server

          -> TileEntitySpinningWheel.SwitchAnimationState gets only called on the Server as well.

     The solution would be to send a packet to all clients when ever the state is changed

          -> This packet will then change the state on the client as well.

 

If you need any information about packet handling, take a look at the forge documentation: SimpleImpl

You can also take a look at my testing packet if you want to: PacketSpinningWheelSwitchState

 

Nice Greetings

TechMage

  • Author

Got it, thanks. Pretty much one has to remember when creating fancy blocks :) 

 

Thanks for support!

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.