Climbable Block?

Started by Sweddy on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
Climbable Block?

I would like to make a certain block climbable, like a ladder. If I were to implement this, what code should I use?

Active 3 years ago
Joined Jun 2017
Points:
767

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 109
Type ladder into the search
Sat, 10/14/2017 - 17:41

Type ladder into the search bar in the code tab of Mcreator, then it will show you the code of the ladder.

Active 1 month ago
Joined Jul 2017
Points:
829

User statistics:

  • Modifications: 2
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 57
RE:Type ladder into the search
Sat, 10/14/2017 - 23:23

@#1 what version is that for? I am using 1.7.3 and dont see that in the code bar

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
RE:Type ladder into the search
Sun, 10/15/2017 - 10:37

@#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.

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
You have to import the
Sun, 10/15/2017 - 11:13

You have to import the EntityLivingBase class

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
RE:You have to import the
Sun, 10/15/2017 - 12:17

@#2 And how do I do that?

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
import net.minecraft.entity
Sun, 10/15/2017 - 12:21

import net.minecraft.entity.EntityLivingBase;

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
RE:import net.minecraft.entity
Sun, 10/15/2017 - 13:09

@#3 Why not be more specific the first time. Where and how do I import "net.minecraft.entity.EntityLivingBase;".

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
 import net.minecraft.entity
Sun, 10/15/2017 - 14:37

 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.

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
RE: import net.minecraft.entity
Sun, 10/15/2017 - 15:26

@#4 I am calm, sorry if it appeared otherwise. So do I just put that between the () after isLadder?

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
Just add it to the other
Sun, 10/15/2017 - 16:54

Just add it to the other imports in the very beginning of the file.

Active 3 years ago
Joined Jun 2017
Points:
767

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 109
RE:RE:Type ladder into the search
Tue, 10/17/2017 - 01:52

@#1.1 I used version 1.7.5.