!world.IsRemote

Started by LueLusten on Mon, 08/21/2017 - 01:01

Topic category: Help with MCreator's application

Last seen on 22:52, 27. Oct 2017
Joined Nov 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
!world.IsRemote
Mon, 08/21/2017 - 01:01

Has !world.IsRemote changed in 1.11.2 or is there a new bug in 1.7.5?

I added if(!world.IsRemote){ code }

To fix ghost blocking what works in 1.10.2 but then I try add it to 1.11.2 it flags it up 

C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_caneOre.java:126: error: cannot find symbol
               if(!world.IsRemote){
                        ^
  symbol:   variable IsRemote
  location: variable world of type World
1 error
:compileJava FAILED
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.
BUILD FAILED
Total time: 20.179 secs

 

 

Last seen on 20:26, 16. Sep 2019
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:You do not have to set the
Tue, 08/22/2017 - 14:34

@#5.1 I'm interested in this thing too since Custom blocks ID is messed up in minecraft.

I can get it only thanks to MCEdit and I haven't figured out how to insert correctly the block variable to get that specific block

Last seen on 22:52, 27. Oct 2017
Joined Nov 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:RE:You do not have to set the
Tue, 08/22/2017 - 16:00

@#5.1.1 Lets hope he will find a moment to help us :) I do keep trying to learn tho so if I learn something new I am always happy to share what I learn