Code Monkey home page Code Monkey logo

gamiboi-s-particle-system's Introduction

Gamiboi's Particle System

A Minecraft Datapack Library created by Gameboy612 on creating custom particles.

This Library is for creating custom particles via datapacks and resource packs in Minecraft. The Pack is made for 1.18.1 or above, and has support on custom velocity particles.

How to use:

Here is a demo command of summoning a particle entity.

summon marker ~ ~1 ~ {Tags:["GPS.particle.marker"],data:{Direction:{RandomMotion:1b,Angle:314,AngleOfElevation:0,Motion:[0.1d,0d,0.0d]},NoGravity:1b,Duration:30,StopTime:5,Particle:'[{"translate":"space.-16"},{"text":"\\u1000","font":"rpg/active_effects","obfuscated":"true"},{"translate":"space.-16"}]'}}

In the data of the marker, there is this tag: Direction:{RandomMotion:1b,Angle:314,AngleOfElevation:0,Motion:[0.1d,0d,0.0d]}, which handles most of the movement.

  • RandomMotion: [Input Type: Boolean (0: false, 1: true)].

    Does the particle have the option to be accelerated to a random xz rotation?

  • Angle: [Input Type: Radians * 100].

    It rotates the Motion vector about the y-axis by (Input * 100) radians.

  • AngleOfElevation: [Input Type: Radians * 100].

    Sets the Angle of Elevation of Motion.

  • Motion: [Input Type: Vector3]

    Sets the Initial Motion of the particle

Direction:

Besides for the Direction tag, there are still other inputs:

  • NoGravity: [Input Type: Boolean (0: false, 1: true)].

    Does gravity apply to the particle?

  • Duration: [Input Type: GameTicks]

    How long does the particle last for? [WARNING: Spawning particles with large duration may lead to lag if spawned rapidly.]

  • StopTime: [Input Type: GameTicks]

    When does the particle stop moving?

Particle:

Finally, to set the particle type, we will need to set the Particle parameter.

  • Particle: [Input Type: String]

    This input takes a string, and requires you to create a font for the particle. Also, the negative font ttf file must be required for the particle to show properly.

Animated Particles

To make animated particles, link all the images into the same font file, and make sure obfuscated is set to true in the Particle parameter.

gamiboi-s-particle-system's People

Contributors

gameboy612 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.