FRicsi / No-more-Mine-in-Hell

Minecraft mod
0 stars 0 forks source link

Block rotation in placing code aka "facing" #16

Open FRicsi opened 6 years ago

FRicsi commented 6 years ago

Asphalt block can be removed; minecraft 1.12.2 colored concrete blocks are awesome. However painted asphalt could be useful (lines, half lines, corners; yellow and white). Goal: block must be like glazed terracotta; rotation depends on player's facing. Wo. rotation, have to create 20 blocks (hor/vert line, 4 rotated half, 4 rotated corner, yellow/white). With rotation, there must be only 6.

Code nedded: block.json; +blackstate.json (where rotation/facing defined) and maybe somewhere in block.class?

https://www.thetechgame.com/Archives/t=2606565/how-to-make-mods-modloader-26-tutorials-131-and-125.html

FRicsi commented 6 years ago

maybe this forge forum answers my problem? http://www.minecraftforge.net/forum/topic/50689-1102-texture-block-rotation-solved/

FRicsi commented 6 years ago

SOLVED!

solution: merging MCreator's block definition java with minecraft default java definition about a block that can be rotated.

FRicsi commented 6 years ago

Next Step: get final versions of blocks and make them facing. This issue then can be closed when list complete; next block must be created with this function if necessary.

FRicsi commented 6 years ago

mod crashing - somewhere mada a mistake in the code control check, rewrite, correct...

Error 1: coded mod items must be locked in MCreator- any change could overwrite the code Error 2: code block is same, but blockID and naming differs - carefully CPO.