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

"World of Chunk" expressions return null but skript had no errors or warnings. #4215

Closed
1 task done
TUCAOEVER opened this issue Jul 23, 2021 · 2 comments
Closed
1 task done
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@TUCAOEVER
Copy link
Contributor

TUCAOEVER commented Jul 23, 2021

Skript/Server Version

Server Version: git-Paper-722 (MC: 1.16.5)
Skript Version: 2.6-beta2-nightly-dfaa36e

Bug Description

Biome change doesn't work.

Expected Behavior

Biome should be changed as it should.

Steps to Reproduce

command /tx:
	trigger:
		set {_c} to chunk at player's location
		set {_biome} to "plains" parsed as biome
		biomeChangeChunk({_c}, {_biome})
		send "%{_c}%" to console

function biomeChangeChunk(c: chunk, b: biome):
	send "%{_b}%" to console
	set {_pos1} to bottom northwest corner of {_c}
	set {_pos2} to bottom southeast corner of {_c}
	set {_xmin} to x-coordinate of {_pos1}
	set {_zmin} to z-coordinate of {_pos1}
	set {_xmax} to x-coordinate of {_pos2}
	set {_zmax} to z-coordinate of {_pos2}
	set {_x} to {_xmin}
	set {_z} to {_zmin}
	while {_x} <= {_xmax}:
		while {_z} <= {_zmax}:
			set biome at location({_x}, 128, {_z}, world of {_c}) to {_b}
			add 1 to {_z}
			send "%{_x}% %{_y}% %{_z}%" to console
		set {_z} to {_zmin}
		add 1 to {_x}

Codes which used to test listed above.

Errors or Screenshots

image

Screenshot after entering "/tx" command and rejoining the server.

Other

No response

Agreement

  • I have read the guidelines above and confirm I am following them with this report.
@TUCAOEVER
Copy link
Contributor Author

TUCAOEVER commented Jul 23, 2021

"world of chunk" return null but skript had no errors or warnings.

@TUCAOEVER TUCAOEVER reopened this Jul 23, 2021
@TUCAOEVER TUCAOEVER changed the title Biome change doen't work on 2.6-beta2-nightly-dfaa36e "World of Chunk" expressions return null but skript had no errors or warnings. Jul 29, 2021
@TPGamesNL TPGamesNL added enhancement Feature request, an issue about something that could be improved, or a PR improving something. PR available Issues which have a yet-to-be merged PR resolving it priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). labels Jul 30, 2021
@TPGamesNL TPGamesNL added completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Oct 30, 2021
@TUCAOEVER

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

3 participants