-
Notifications
You must be signed in to change notification settings - Fork 44
Explosive Redmatter
Redmatter is a particle able to generate a pocket of dense gravity. Creating a hungry mass that ignores gravity and eats everything in range. Growing as it consumes and drifts through a soon to be void.
Spawns an entity that will spawn and consume blocks. Each block consumed adds to a life span meter. Each tick that passes will decrease this life span. Eventually resulting in the redmatter collapsing.
Blocks are detected using a shell style raytrace. Each shell will generate based on the size. As it scans it will start small and increase to max distance. This is to prevent blocks from placing in the previous scanned path. Ensuring that the gravity like illusion is maintained for the user.
Any entity caught in range will be crushed and damaged. Consuming of antimatter in any form will kill the redmatter.
Redmatter is effectively a black hole in concept. However, it doesn't destroy what it has consumed. Instead it sends it off into void. Using only the energy of the consumed object to grow.
Name | Default | Purpose |
---|---|---|
redmatter_max_size | 70 | Limit on how large the redmatter can grow, this is object size and not effect range |
redmatter_default_size | 1 | Size the redmatter spawns |
redmatter_min_size | 0.25 | smallest size before redmatter death |
redmatter_scale_rendering | 0.05 | Render scale compared to size |
redmatter_scale_kill_radius | 0.08 | Scale compared to size for instant kill death zone |
redmatter_scale_gravity | 2 | scale compared to size for gravity suction effect of entities |
redmatter_starve_multiplier | 0.99 | multiplier to use on scale, newScale = scale * multiplier; EX: 100 * 0.99 = 99 |
redmatter_max_edits_per_tick | 100 | max number of blocks to edit per tick |
redmatter_raytrace_per_tick | 500 | blocks to raytrace per tick, should be higher than edits. As this feeds edit system. |
redmatter_flying_block_spawn_chance | 0.8 | chance to spawn flying blocks, 0.8 means 20% will not spawn |
redmatter_audio_enabled | true | enables audio effects |
redmatter_spawn_flying_blocks | true | enables flying blocks, disable to improve performance |
redmatter_colored_beams | true | enable color beams, false makes them a bland pale :( |