Started by
Nuparu00
on
Topic category: User side tutorials
Hey guys!
I have created a short video about making a block rotate like logs/pillars, so if you are interested, you can check it HERE.
Topic category: User side tutorials
Hey guys!
I have created a short video about making a block rotate like logs/pillars, so if you are interested, you can check it HERE.
Nice tutorial :)
I got this error:
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_logEucalyptus.java:74: error: constructor BlockLog in class BlockLog cannot be applied to given types;
super(Material.WOOD);
^
required: no arguments
found: Material
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BlockLog has always as material wood, so you can not change it. You have to either replace super(Material.WOOD); by super(); or extend BlockRotatedPillar instead.
well i did try but i get error
Well, unless you paste the log + your code, I can not really help.
Ok. Keep calm. Just past your code and/or error you got on pastebin.com and paste the link here, so I can know what error you got and then help you
https://youtu.be/z7DC2M2zzas here can see the error
cool but how about furnace like rotation ? :)
Oh, I see now what you mean. The problem is not actually even in the block itself but in the structure. The MCreator code gets the default state from the log block, which is the one rotated along X-axis, but for trees, you almost always want Y-axis. One way to fix it should be replacing getDefaultState() (that hopefully is somewhere in the code) with getStateFromMeta(0) in the code of the tree. You might possibly need to replace 0 with number 0 - 3, but at the end, that should do the trick.
what
I have already done a video about the 4-directional rotation, a few years ago, but I guess it is somehow outdated these days. Basically, the easiest approach is extending BlockHorizontal and then overriding several methods (the same that I had overridden in an example in some comment under the video). The .json file itself is pretty much the same as it was in the video.
ok but i don't get it