Jump to content

Pink-Panther

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Pink-Panther

  1. Thx, I think I will store unbreakable blocks map on disk arranged by regions/chunks. So I'll only load the map when relatives chunks will be loaded and it wont use too much RAM.
  2. Okay, thx
  3. Damn... A different way would be to store chunks as array of 256 booleans and to check on event if a block is breakable or not. Do you think this would be too costly performance-wise (with some optimizations ofc) ?
  4. Hi. I'd like to make a mod where you cannot destroy any existing block but you can place blocks you already have (and destroy them). The problem is to differentiate two block of the same type by the fact that is was (or wasn't) in the original world. I looked at blockstate but it seems like it's a dead end (many vanilla block already have their 4 bytes state full). So I thought about re-registering every vanilla block with .setUnbreakable() but we cannot register the same block two times. If someone have an idea, I'll be grateful. Thanks for reading.
×
×
  • Create New...

Important Information

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