Skip to content

Commit

Permalink
[NEW] Optimización de particulas o algo asi
Browse files Browse the repository at this point in the history
  • Loading branch information
HaJuegos committed May 18, 2023
1 parent 1b08703 commit 67164d8
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions textura/particles/arrowspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/* Creado/Editado por: HaJuegos Cat!. Si necesitas mas informacion, escribeme en Discord: https://discord.com/users/714622708649951272 */
/* Created/Edited by: HaCatto! If you need more information, write me on Discord: https://discord.com/users/714622708649951272 */
{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:arrow_spell_emitter",
"basic_render_parameters": {
"material": "particles_alpha",
"texture": "textures/particle/particles"
}
},
"components": {
"minecraft:emitter_rate_instant": {
"num_particles": 1
},
"minecraft:emitter_lifetime_once": {
"active_time": 2.5
},
"minecraft:emitter_shape_point": {
"direction": ["Math.random(-1, 1)", "Math.random(-1, 1)", "Math.random(-1, 1)"]
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": 0.1
},
"minecraft:particle_initial_speed": "(Math.random(0, 1) + Math.random(0, 1) + 1) * 0.3",
"minecraft:particle_motion_dynamic": {
"linear_acceleration": ["(variable.particle_random_1 * 2 - 1) - (variable.particle_age * 0.4) * 1.25", "1 + (0.08 * variable.particle_age) - (variable.particle_age * 0.4)", "(variable.particle_random_2 * 2 - 1) - (variable.particle_age * 0.4) * 1.25"]
},
"minecraft:particle_appearance_billboard": {
"size": [0.125, 0.125],
"facing_camera_mode": "lookat_xyz",
"uv": {
"texture_width": 128,
"texture_height": 128,
"flipbook": {
"base_UV": [64, 64],
"size_UV": [8, 8],
"step_UV": [-8, 0],
"frames_per_second": 10,
"max_frame": 8,
"stretch_to_lifetime": true
}
}
},
"minecraft:particle_motion_collision": {
"enabled": 1,
"collision_drag": 1,
"coefficient_of_restitution": 1,
"collision_radius": 0.5
},
"minecraft:particle_appearance_lighting": {},
"minecraft:particle_appearance_tinting": {
"color": ["variable.color.r", "variable.color.g", "variable.color.b", "variable.color.a"]
}
}
}
}

0 comments on commit 67164d8

Please sign in to comment.