#Making a rotatable Log-like block with unique textures
15 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
you can use the type "cardinal" for log-like blocks
event.create("block_id", "cardinal")
also i'd recommend checking the latest.log for where kjs is looking for textures instead of using any .texture() calls, minecraft always logs all missing textures and where it expected the files to be
.texture expects some unusually formatted path and i can barely ever remember how it works (in your case i think it's looking for a texture at assets/kubejs/textures/block/block/basalt_iron_ore_side.png)
If the cardinal block type does not already look for separate top/side textures, then you might have to actually use the .texture methods. In that case: .textureSide(Facing.up, "texturePath") is what you are looking for.
So texture all sides and texture the top and bottom?
if that works, yeah
does cardinal automatically register blockstates?
it should
it's making it have 6 directions. I want it to have an axis
Someone made a really nice collection of code for this here:
https://discord.com/channels/303440391124942858/1200621405159555185
Good luck with your coding :)
Is the blockstates in a separate file?
This code includes the blockstate json in the block constructor.
You can also do it manually in the blockstates folder (same location as the textures and models folders)
Paste version of blocks.js from @junior apex
nvm got it working