#how to add particles to an block
1 messages · Page 1 of 1 (latest)
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.
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"
}
}
Oh, on experimental
Thx
Now it's only about the sensor
Not sure of what you are talking about here
Other question Just was to detect whenever an block on top is mined
You kinda can make that with the new execute command
But is it lag free? Also it would need an check every tick
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
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~
Ah, yea, thx
If your question has been answered please make sure to close your post.