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

Wither #6686

Open
1 task done
Blizzmond opened this issue May 11, 2024 · 2 comments
Open
1 task done

Wither #6686

Blizzmond opened this issue May 11, 2024 · 2 comments
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.

Comments

@Blizzmond
Copy link

Skript/Server Version

git-paper-496 mc 1.20.4 
skript 2.8.5

Bug Description

function spawn_wither(p: player):
	spawn wither at {_p}
	set {_wither} to last spawned wither
	while {_wither} is alive:
		wait 1 tick
		broadcast "&6here"
		set y-coordinate of {_wither} to y-coordinate of {_wither} - 2


command test:
	permission: "*"
	trigger:
		spawn_wither(player)

Expected Behavior

broadcast "here" more than 1 time and run the loop while the wither is alive however it just runs it once despite it being alive

Steps to Reproduce

run the code

Errors or Screenshots

no errors

Other

No response

Agreement

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

Hmm that's not good. It's coercing the variable to be the location of the wither, rather than just failing outright.

@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). labels May 13, 2024
@sovdeeth
Copy link
Member

We're unsure if we can actually reasonably fix the weirdness here, but it shouldn't matter for you anyway. You need to be teleporting the wither, not setting its location.

@sovdeeth sovdeeth added priority: low Issues that are not harmful to the experience but are related to useful changes or additions. and removed priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.
Projects
None yet
Development

No branches or pull requests

2 participants