Climbable Block?

Started by Sweddy on

Topic category: Help with modding (Java Edition)

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?

Last seen on 18:36, 5. Feb 2022
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Last seen on 17:31, 2. Oct 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

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

You have to import the EntityLivingBase class

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
Points:

User statistics:

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

@#2 And how do I do that?

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

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

import net.minecraft.entity.EntityLivingBase;

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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;".

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 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.

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Last seen on 18:36, 5. Feb 2022
Joined Jun 2017
Points:

User statistics:

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

@#1.1 I used version 1.7.5.