#Model Changing Block (aka 3D Animated Block)

1 messages · Page 1 of 1 (latest)

wicked wyvern
#

A 3D animated block using minecraft:queued_ticking, beware because this impacts performance and can cause lag if your device is low end.

trail lagoon
#

In what way is it animated?

thorny zodiac
#

Are you sending it in .json? It's empty for me as well that way. You can send it in .txt and it should be fine

wicked wyvern
rugged niche
#

It might be more performant to use one geometry with strategically arranged per-face UV and a traditional block flipbook texture than to utilize tick updates

wicked wyvern
thorny zodiac
#

There you go 👍

wicked wyvern
#

also the model is the one animated not the texture, suggesting people might get confused

#

Model Changing Block (aka 3D Animated Block)

trail lagoon
#

Blocks are already 3D 💀

wicked wyvern
#

🗿

tame pilot
#

@modest frost here's an example

modest frost
#

ty

#

the documentation is very confusing

#

just because ive never made a custom block

tame pilot
#

It's a queued ticking event, properties, permutations, and an event that increments the property

modest frost
#

so

#

i meant like

#

texture wise

#

flipbook stuff

tame pilot
#

this guys example sucks

#

Idk how to do flipbook exactly, but it's the same kind of thing

#

you can change the texture with permutations

modest frost
#

i have never made a custom block so i have no clue about anything block wise

tame pilot
#
{
                "condition": "query.block_property('runecraft:growth_stage') == 0",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "lifeweaver_0",
                            "render_method": "alpha_test",
                            "face_dimming": false,
                            "ambient_occlusion": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-5, 0,-5],
                        "size": [10,8,10]
                    }
                }
            },
            {
                "condition": "query.block_property('runecraft:growth_stage') == 1",
                "components": {
                    "minecraft:material_instances": {
                        "*": {
                            "texture": "lifeweaver_1",
                            "render_method": "alpha_test",
                            "face_dimming": false,
                            "ambient_occlusion": false
                        }
                    },
                    "minecraft:selection_box": {
                        "origin": [-5, 0,-5],
                        "size": [10,10,10]
                    }
                }
            },```
#

This would be an example of changing the texture of a block

modest frost
#

thats so confusing though 😭

tame pilot
#

material instance is how you apply the texture

#

so all you're doing is changing it

modest frost
#

what should my condition be though?

tame pilot
#

the block property

#

or state

#

because you're incrementing it to the next value every tick

modest frost
# tame pilot because you're incrementing it to the next value every tick

any idea why this isnt working? ```json
{
"format_version": "1.20.10",
"minecraft:block": {
"description": {
"identifier": "wiki:custom_block",
"menu_category": {
"category": "construction"
}
},
"components": {
"minecraft:loot": "loot_tables/blocks/custom_block.json",
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 3
},
"minecraft:destructible_by_explosion": {
"explosion_resistance": 3
},
"minecraft:friction": 0.4,
"minecraft:flammable": {
"catch_chance_modifier": 0,
"destroy_chance_modifier": 0
},
"minecraft:map_color": "#ffffff",
"minecraft:light_dampening": 0,
"minecraft:light_emission": 4,

        "minecraft:material_instances": {
            "*": {
                "texture": "flashing"
            }
        }
    }
}

}```

#

wait whats rp/blocks.json?

#

NO WAY I GOT IT