Skip to content

playeffect - support new data types#2678

Merged
mcmonkey4eva merged 12 commits into
DenizenScript:devfrom
Hydroxycobalamin:playeffect-additions
Jan 23, 2025
Merged

playeffect - support new data types#2678
mcmonkey4eva merged 12 commits into
DenizenScript:devfrom
Hydroxycobalamin:playeffect-additions

Conversation

@Hydroxycobalamin
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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)

@mcmonkey4eva mcmonkey4eva merged commit b956d49 into DenizenScript:dev Jan 23, 2025
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