KubeJS

KubeJS

61M Downloads

Painter API's texture feature does not work

ChiefArug opened this issue ยท 2 comments

commented

Minecraft Version

1.18.2

KubeJS Version

kubejs-forge-1802.5.1-build.335

Rhino Version

rhino-forge-1801.1.9-build.135

Architectury Version

architectury-4.2.49

Forge/Fabric Version

40.0.52

Describe your issue

When trying to specify a texture for a rectangle it just shows random characters.

Using the example script from the wiki simplified a bit.

onEvent('player.logged_in', event => {
	event.player.paint({
		example_rectangle: {
			type: 'rectangle',
			x: 10,
			y: 10,
			w: 320,
			h: 320,
			texture: 'kubejs:textures/item/diamond_ore.png',
			draw: 'always'
		}
	})
})

I renamed the default item texture to diamond_ore.png
Results:
image

Crash report/logs

No response

commented

Is this still an issue or did Lat just forget to close this?

commented

Yep, Lat just forgot to close it.