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

Hello,

I've made a custom storage system which holds an Integer number of energy but this will only update on the server. How can I send this Variable to the client to indicate the Value over a Renderer? (The renderer is already done and working)

 

I'm looking forward for any Help

 

Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

You just send the information to the player. I suggest following this tutorial:

http://www.minecraftforge.net/wiki/Advanced_Packet_Handling

 

 

I use it myself. I even use it for small packet handling... I just find it easy to use.

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Oh. I forgot to say that it is a Block which holds the variable.  ::)

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Is a tile entity attached to the block? If not, make one for it. I am guessing you have done that because how else would you store the variable?

 

You make a packet that obtains the information yada yada. I think you should know how to do it?

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Oh. I forgot to say that it is a Block which holds the variable.  ::)

 

As long as the variable is static or you have a reference to your block in your base mod class, it doesn't matter. You'll still have to stick to packets. After all, that's how the Internet works: send packets from clients to servers and vice versa.

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.