#how to add particles to an block

1 messages · Page 1 of 1 (latest)

royal folio
#

How to do this again?

cold torrent
#

id love to know this

#

i cant add an anchor/locator to a block so.... 🤷‍♂️

ember widget
#

I have a block that does this. I’ll post it later today.

#

Essentially you run a particle command using an event activated by ticking.

gilded raptor
#

Yes, that’s how is done.
Put this in your components if you want it to be an always thing, or in permutations if you want to set some sort of condition or dependency;


"minecraft:queued_ticking": {
                "looping": true,
                "interval_range": [0, 0],
                "on_tick": {
                    "event": "test:particle",
                    "target": "self"
                }
            }```

And on your events;

"test:particle": {
"run_command": {
"command": [
"particle minecraft:lava_particle ~ ~ ~"
]
}
}```

#

The event can also be the following to avoid using run_command, which is still on experimental:

    "test:particle": {
        "play_effect": {
            "effect": "minecraft:lava_particle",
            "target": "self"
        }
    }
royal folio
#

Thx

#

Now it's only about the sensor

gilded raptor
#

Not sure of what you are talking about here

royal folio
gilded raptor
#

You kinda can make that with the new execute command

royal folio
gilded raptor
#

Running commands every tick are usually laggy, but it really depends of the commands. In your case it wouldn’t really be laggy, I don’t think so

ember widget
#

ok.... probably an easier way to do this, but this is what I did.

{
    "format_version": "1.16.100",
    "minecraft:block": {
        "description": {
            "identifier": "mossgolem:glow_moss",
            "is_experimental": false,
            "register_to_creative_menu": true
        },
        "components": {
            "minecraft:loot": "loot_tables/blocks/moss_block_loot.json",
            "minecraft:destroy_time": 3,
            "minecraft:ticking": {
                "looping": true,
                "range": [0, 1],
                "on_tick": {
                    "event": "mossgolem:moss_particle",
                    "target": "self"                }
            },
            "minecraft:display_name": "Glow Moss",
                "minecraft:creative_category": {
                    "category": "Nature" 
                },
            
                "minecraft:material_instances": {
                    "*": {
                        "texture": "glow_moss", 
                        "render_method": "blend", 
                        "face_dimming": true, 
                        "ambient_occlusion": true
                    }
                },
            
            "minecraft:explosion_resistance": 3,
            "minecraft:friction": 0.6,
            "minecraft:flammable": {
                "flame_odds": 0,
                "burn_odds": 0
            },
            "minecraft:map_color": "#000000",
            "minecraft:block_light_absorption": 0,
            "minecraft:block_light_emission": 1.0
        },
        "events": {
            "mossgolem:moss_particle": {
              "run_command": {
                "command": ["function moss_particles"]                }
            }
        }
    }
}
#

and then the function to go with it...

#
particle mossgolem:moss_particle ~~1~
royal folio
#

Ah, yea, thx

gilded raptor
#

If your question has been answered please make sure to close your post.