Skript

Skript

743k Downloads

Wither

Blizzmond opened this issue ยท 2 comments

commented

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.
commented

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

commented

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.