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

Parse Effect #7520

Open
wants to merge 17 commits into
base: dev/feature
Choose a base branch
from

Conversation

erenkarakal
Copy link
Member

@erenkarakal erenkarakal commented Jan 24, 2025

Description

This PR adds the parse %~strings% as %*classinfo% effect and tests for it.

Examples:

set {a} to "5"
parse {a} as integer   # overwrites {a}
send {a} + 1   # 6
command clan <action: string> <other: string>:
  trigger:
    if {_action} is "invite":
      parse {_other} as player
      invite({_other})
    else if {_action} is "set-max-members":
      parse {_other} as int
      setSize({_other})
  • parse {_a} as player will log a console message if the player isn't found. I will fix it later
  • docs

Target Minecraft Versions: any
Requirements: none
Related Issues: #3561

Sorry, something went wrong.

@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Jan 24, 2025
@erenkarakal erenkarakal requested a review from sovdeeth January 24, 2025 20:41
@erenkarakal erenkarakal changed the base branch from master to dev/feature February 1, 2025 19:54
erenkarakal and others added 4 commits February 26, 2025 18:18
Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants