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

set {_stand} to armor stand - saves an item, not an entity #5721

Closed
1 task done
MadPanCake opened this issue May 28, 2023 · 3 comments
Closed
1 task done

set {_stand} to armor stand - saves an item, not an entity #5721

MadPanCake opened this issue May 28, 2023 · 3 comments
Labels
duplicate For bugs or requests that have already been made and are currently open.

Comments

@MadPanCake
Copy link

Skript/Server Version

[11:34:58 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[11:34:58 INFO]: [Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript
[11:34:58 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[11:34:58 INFO]: [Skript] Server Version: git-Paper-538 (MC: 1.19.4)
[11:34:58 INFO]: [Skript] Skript Version: 2.6.4
[11:34:58 INFO]: [Skript] Installed Skript Addons:
[11:34:58 INFO]: [Skript]  - skript-yaml v1.4
[11:34:58 INFO]: [Skript]  - SkBee v2.9.0 (https://github.com/ShaneBeee/SkBee)
[11:34:58 INFO]: [Skript] Installed dependencies: None

Bug Description

Setting a variable to an armor stand actually sets it to an item, not the entity.
I'm trying to set a variable to armor stand, and then spawn it from the variable.

Expected Behavior

An armor stand should spawn at my location after executing /as command.

Steps to Reproduce

command /as:
    trigger:
        set {_stand} to armor stand
        spawn {_stand} at location of player

Errors or Screenshots

No response

Other

I think that it might be related to #1631

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@NotSoDelayed
Copy link
Contributor

This happens when different types has the same aliases.
Alternatively, you set a variable to a text which matches the object name at your discretion, and parse it as entity type.

set {_e} to "armor stand" parsed as entity type
spawn {_e} at player

@AyhamAl-Ali
Copy link
Member

The a trick might also work, try set {_stand} to a armor stand

@AyhamAl-Ali
Copy link
Member

Duplicate of #5497. There is a PR for this already #5503.

@AyhamAl-Ali AyhamAl-Ali added the duplicate For bugs or requests that have already been made and are currently open. label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For bugs or requests that have already been made and are currently open.
Projects
None yet
Development

No branches or pull requests

3 participants