Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playeffect - support new data types #2678

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

Hydroxycobalamin
Copy link
Contributor

This PR adds the new DataTypes for particles. Support for TRAIL and TARGET_COLOR particle types were requested on Discord. It also adds support for special SHRIEKER and SCULK particles.

https://discord.com/channels/315163488085475337/1310336968399257610/1310336968399257610
https://discord.com/channels/315163488085475337/1301846255365783614/1301846255365783614

// - For TARGET_COLOR, the input is of format: <color>|<location>, for example "red|<player.cursor_on>". Color input is any valid ColorTag object.
// - For COLOR, the input is any valid ColorTag.
// - For FLOAT, the input is any valid ElementTag(Decimal).
// - For INTEGER, the input is any valid ElementTag(Integer).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be (Number) but also just say any valid number, don't be overly technical when you don't need to be

Also what the heck is an integer particle? That For x y z particles, half should name particles that use a format, not the format's java class name

if (dataList.size() != 2) {
Debug.echoError("TargetColor special_data must have 2 list entries for particle: " + particleEffect.name());
return;
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format

mcmonkey4eva
mcmonkey4eva previously approved these changes Dec 3, 2024
mcmonkey4eva
mcmonkey4eva previously approved these changes Dec 27, 2024
mcmonkey4eva
mcmonkey4eva previously approved these changes Jan 5, 2025
Copy link
Member

@tal5 tal5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but should change the command syntax text to specify special_data is a map now I believe

@tal5
Copy link
Member

tal5 commented Jan 14, 2025

Other then that small comment ^, this has some merge conflicts that need to be resolved (which, feel free to ask on Discord if you need any help with that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants