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

Can't use expressions inside of expressions #138

Open
HYPExMon5ter opened this issue Aug 21, 2019 · 0 comments
Open

Can't use expressions inside of expressions #138

HYPExMon5ter opened this issue Aug 21, 2019 · 0 comments

Comments

@HYPExMon5ter
Copy link

Describe the bug

entitytypes property bukkit form:
    get:
        broadcast "Expr: %expression 1%"
        set {_type class} to try expr-1.getType()
        loop ...BukkitEntityType.values():
            return loop-value if loop-value.getEntityClass() is {_type class}

blocks property (creature|mob|entity|monster) type[s]:
    return type: entitytype
    get:
        return bukkit form of (expr-1.getState().getSpawnedType())

    set entitytype:
        broadcast "Change value: %change value%"
        broadcast "Bukkit change value: %bukkit form of change value%"
        #broadcast "Expr: %expression 1%"
        set {_state} to expr-1.getState()
        {_state}.setSpawnedType(bukkit form of change value)
        {_state}.update()

command /test:
    trigger:
        player's targeted block is a mob spawner
        send "%bukkit form of cow%"
        set mob type of player's targeted block to ("cow" parsed as an entity type)

The entity types expression doesn't get called inside of the blocks property expression, however is gets called when in a command.

To reproduce
Code above

Expected behavior
The entity types expression should get called when the blocks property expression does

Server information

  • skript-mirror: 2.0.0
  • Skript: 2.4-beta5
  • Server version: 1.13.2 PaperSpigot
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

No branches or pull requests

1 participant