Posted January 22, 20187 yr hey guys is there anyone who is able to help me with the coding to add a block to forge that acts and sounds like a wood log block like oak or acacia logs? im able to make cube_column blocks into forge but how do I add the ability for the block to rotate when placed onto a side of a block like how the log blocks act?
January 24, 20187 yr Author Yes I copied and renamed the vanilla blockstate and model jsons and still no difference
January 24, 20187 yr Author the block texture doesn't load unless I add "normal": {"model": "mm:test_block} . Would there be other commands to make the block act like a wood log block? by the way, I really appreciate you looking into this even if we don't find a solution ------------------------------------------------------- [mm/models/blocks/test_block.json] { "parent": "block/cube_column", "textures": { "end": "mm:blocks/test_block_top", "side": "mm:blocks/test_block" } } ----------------------------------------------------------- [mm/models/blockstates/test_block.json] { "variants": { "axis=y": { "model": "mm:test_block" }, "axis=z": { "model": "mm:test_block", "x": 90 }, "axis=x": { "model": "mm:test_block", "x": 90, "y": 90 }, "axis=none": { "model": "mm:test_block_bark" } } } ------------------------------------------------------------ [mm/models/item/test_block.json] { "parent": "mm:block/test_block" } ------------------------------------------------------------ [mm/models/blocks/test_block_bark.json] { "parent": "block/cube_all", "textures": { "all": "mm:blocks/test_block" } } (some extra json i found which accompanied the wood log jsons) ------------------------------------------------------------- ModBlocks.java BlockBase.java Main.java
January 24, 20187 yr Or use the <> code tag if it's short. Something that doesn't require downloading.
January 26, 20187 yr Make your block extend BlockRotatedPillar instead of Block. BlockRotatedPillar has the code to change the orientation of the block depending on which face you click when placing it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.