Fusion (Connected Textures)

Fusion (Connected Textures)

11M Downloads

[Bug] Wiki page example has json errors

WenXin20 opened this issue ยท 5 comments

commented

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

commented

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"
		}
	}
commented

Updated ๐Ÿ‘

commented

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"
}
...
commented

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

commented

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