SuperMartijn642 / Fusion

20 stars 3 forks source link

[Bug] Wiki page example has json errors #53

Closed WenXin20 closed 4 months ago

WenXin20 commented 4 months ago

Description of the Bug This wiki page's example has json errors when placed in a json file. Because of this, I am unsure of the format to use when defining multiple textures.

Steps to Reproduce

  1. Visit https://jsonlint.com/
  2. Input example into text box.

Screenshots image

SuperMartijn642 commented 4 months ago

Updated 👍

WenXin20 commented 4 months ago

Thanks! I am trying to get this working, but it is giving me an error. Is this not what it has? Match block predicate must have string property 'block'!

    "connections": {
        "side": {
            "type": "match_state",
            "block": "warp_pipes:clear_warp_pipe",
            "properties": "entrance"
        },
        "default": {
            "type": "is_same_block"
        }
    }
SuperMartijn642 commented 4 months ago

Might be me copy-pasting and forgetting to change the error message. What's wrong here, is that properties should be an object. For example:

...
"properties": {
  "waterlogged": "true"
}
...
WenXin20 commented 4 months ago

Ah thanks, it is rendering now, although the textures are not connecting even though the state entrance is true for both blocks next to each other. Any idea why? The block does have multiple blockstates though.

    "connections": {
        "side": {
            "type": "match_state",
            "block": "warp_pipes:clear_warp_pipe",
            "properties": { "entrance": "true" }
        },
        "default": { "type": "is_same_block" }
    },

clear_warp_pipe_entrance_ns.json

WenXin20 commented 4 months ago

I got it working, just had to list out all the states