#Making a rotatable Log-like block with unique textures

15 messages · Page 1 of 1 (latest)

junior apex
#

this is my code thus far

north tinselBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

ivory spruce
#

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.

junior apex
#

So texture all sides and texture the top and bottom?

ivory spruce
#

if that works, yeah

junior apex
ivory spruce
#

it should

junior apex
#

it's making it have 6 directions. I want it to have an axis

gloomy star
junior apex
gloomy star
#

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)

junior apex
#

I inserted some of the code and its not working

hushed stormBOT
#

Paste version of blocks.js from @junior apex

junior apex
#

nvm got it working