mojira.dev
MCPE-167099

Custom Blocks are missing a function to set transparent metadata so they can be waterlogged

Adding custom blocks is becoming a mainstream feature of Minecraft. Here is an omission in the block spec that allows for waterlogging a custom block. The developer has no way to set the "transparent" property in the metadata using a component. Here is a typical full block metadata from Mojang:

{
      "id": 252,
      "displayName": "Concrete Powder",
      "name": "concrete_powder",
      "hardness": 0.5,
      "stackSize": 64,
      "diggable": true,
      "boundingBox": "block",
      "material": "dirt",
      "variations": [
        {
          "metadata": 0,
          "displayName": "White Concrete Powder"
        },
(...)
        {
          "metadata": 15,
          "displayName": "Black Concrete Powder"
        }
      ],
      "drops": [
        {
          "drop": 252
        }
      ],
      "transparent": false,
      "emitLight": 0,
      "filterLight": 15,
      "resistance": 0.5
    },

and here is a block you can waterlog:

{
      "id": 205,
      "displayName": "Purpur Slab",
      "name": "purpur_slab",
      "hardness": 2,
      "stackSize": 64,
      "diggable": true,
      "boundingBox": "block",
      "material": "rock",
      "variations": [
        {
          "metadata": 0,
          "displayName": "Purpur Slab",
          "description": "Lower half"
        },
        {
          "metadata": 8,
          "displayName": "Purpur Slab",
          "description": "Upper half"
        }
      ],
      "harvestTools": {
        "257": true,
        "270": true,
        "274": true,
        "278": true,
        "285": true
      },
      "drops": [
        {
          "drop": {
            "id": 44,
            "metadata": 0
          }
        }
      ],
      "transparent": true,
      "emitLight": 0,
      "filterLight": 0,
      "resistance": 6
    },

If we can query 'is_in_water' (example)

{ 
                        "condition":"q.is_in_water",
                        "set_block_property":{
                            "phantom:waterlogged": true
                        }
                    },
                    { 
                        "condition":"!q.is_in_water",
                        "set_block_property":{
                            "phantom:waterlogged": false
                        }
                    }

...we should be able to do something with that easily in our permutations. I'm filing this as a bug because Minecraft is not just a game that takes place in air. 1/3 of the game is underwater. And you cannot place ANY custom underwater block without an air pocket surrounding it. unless you add server scripting dependencies and make some absolutely horrible looking code. Get this fixed before you take it out of experimental. Thanks you for your considerations.

In summary, where is the missing spec "minecraft:transparent:{}," on custom blocks so they can waterlog?

Attachments

Comments 5

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach an addon with which this issue can be observed?

This ticket will automatically reopen when you reply.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ““ Project Summary – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

I'd be happy to send you my add-on so you can observe the issue of waterlogging a block that obviously isn't solid. Sincerely. But this is an add-on I'm developing for commercial sale, and I would need an NDA or some kind of agreement beforehand. I hope you understand. I'd love to help you any way I can. Maybe I can isolate just the block bit of the code in its own addon file when I have time. I'd also like to add I could be horribly wrong about it being a bug, but I have poured over every bit of documentation over the past 2 months and cannot find anything that addresses this issue other than custom java blocks get transparent settings allowing them to waterlog, no problem, and custom bedrock blocks are missing that feature entirely.

There you go. the waterlog failure.

To repeat, open a minecraft test world and activate the add-on.

Take the frame block out of the inventory items or give yourself "seeit360:frame_block" in a command

Create or visit any body of water

place the block in water, and even though the block can detect its in water (by filling the space it leaves as it is interacted with, (with water or air), the block will never waterlog itself. I suspect its that custom blocks have no way to set a waterlogged state, or are missing the transparent feature that java blocks and vanilla Mojang blocks have. I understand there is server side scripting you can add, but it should be a component of all blocks by default.

Thank you for your consideration. I hope this helps the community.

Just a reminder to all that follow in the future and why you should upvote this bug: there CURRENTLY only 4 render methods available to CUSTOM blocks; opaque, double_sided, blend, alpha_test None of these choices are like "entity" and all are not able to waterlog.

Is this still an issue in Latest version (1.21.2), Because of "seeit360:frame_block" have an "Update block" they unable to see that block where placed.

Another note that: Due to Holiday creator features have to be removed in 1.21.20.23 Preview to 1.21.30.22 PreviewΒ Which will not work any further.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game WikiThis issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Test Pattern

(Unassigned)

1112984

Confirmed

Windows

Windows 10

1.19.60

Retrieved