Started by
Sweddy
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to make a certain block climbable, like a ladder. If I were to implement this, what code should I use?
Topic category: Help with Minecraft modding (Java Edition)
I would like to make a certain block climbable, like a ladder. If I were to implement this, what code should I use?
Type ladder into the search bar in the code tab of Mcreator, then it will show you the code of the ladder.
@#1 what version is that for? I am using 1.7.3 and dont see that in the code bar
@#1 I get this error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
D:\?????????\Desktop\corner\MCreator\MCreator 1.11 unnamed\forge\build\sources\main\java\mod\mcreator\mcreator_test.java:134: error: cannot find symbol
public boolean isLadder(IBlockState state, IBlockAccess world, BlockPos pos, EntityLivingBase entity) { return true; } ^
(I moved the little ^ arrow so it pointed at the correct spot)
symbol: class EntityLivingBase
location: class mcreator_test
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
1 warning
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
You have to import the EntityLivingBase class
@#2 And how do I do that?
import net.minecraft.entity.EntityLivingBase;
@#3 Why not be more specific the first time. Where and how do I import "net.minecraft.entity.EntityLivingBase;".
import net.minecraft.entity.EntityLivingBase; is all the code you need. It is not me saying "do this and this", it is the actual code. So please, keep calm.
@#4 I am calm, sorry if it appeared otherwise. So do I just put that between the () after isLadder?
Just add it to the other imports in the very beginning of the file.
@#1.1 I used version 1.7.5.