ChunkGenerator - ChunkData X/Z (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 3.5.0

Syntax

chunk[ ]data chunk (x|z)

Description

Represents the ChunkData's X/Z coordinates. This will typically be used to calculate world position from chunk position for your noise system.

Examples

chunk gen:
	loop 16 times:
		loop 16 times:
			set {_x} to (loop-number-1) - 1
			set {_z} to (loop-number-2) - 1
			set {_noise} to getNoise({_x} + (16 * chunkdata chunk x), {_z} + (16 * chunkdata chunk z))

View source