Skip to content

1.0.1

Choose a tag to compare

@DjDisaster DjDisaster released this 01 Nov 13:16
· 47 commits to main since this release

Added Image Support

on load:
	set {_a} to now
	set {map} to new custom map 
	set {_image} to image from url "url here"
	# set {_image} to image from file "file path here i.e plugins/Skript/test.jpg"
	set {_b} to now
	
	# Images will send an error in console if you try to draw out of the map. 
	# It will not send a message if the map is invalid however.
	# If you have skript-reflect you can run 'send {image}.isValid()' to see if its valid.
	
	loop 128 times:
		loop 128 times:
			set {_colour} to pixel ((loop-value-1) - 1),((loop-value-2) - 1) of {_image}
			set pixel ((loop-value-1) -1),((loop-value-2) -1) of {map} to (red of {_colour}),(blue of {_colour}),(green of {_colour})
	set held item of all players to (map of {map})