Jump to content

Where can I properly put Block data outside of State Properties


1Mangomaster1

Recommended Posts

Of course the easiest and most reliable solution are the properties... but there's a limit to how much you can put..
I have a "channel" IntProperty which ranges from 0 to maxChannels(currently a 100), now.. it can run but increasing that number(or adding other properties that multiply with it) can cause it not to run(happened already)
my question is: Where else can I store this kind of data? I heard of the option of in the BlockEntity... but how may that be done? and should I do it at all or perhaps there's a better option?

Link to comment
Share on other sites

I mean currently I got on my Block a Boolean and 3 Enums(2 of 2 and 1 of 6).. making it already amount to 48(If I calcualte this properly) [2 * 2 * 2 * 6].
So why not just transferring them over?

Btw the Enum of 6 is the FACING enum so I need it as a property, but seriously what stops me from putting the rest there? Is there a benefit to properies aside from being able to change the model and stuff on the blockstates JSON? and if not, does that mean if I don't need to access it on the JSON I should put that on the BlockEntity?

Link to comment
Share on other sites

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.