(Help) Procedure doesn't work

Started by RaolTheBest on Sat, 05/05/2018 - 17:23

Topic category: Bugs and solutions

Last seen on 18:51, 23. Jul 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
(Help) Procedure doesn't work
Sat, 05/05/2018 - 17:23

I made a procedure triggered when colliding a mob. Since it triggers a lot of times (because every second that you collide that mob is 20 ticks), I made that it is triggered every 100 ticks by using variables.

However, it doensn't work.

Code of the error: 

C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_summonaminiontimed.java:53: error: incompatible types: possible lossy conversion from double to int
}mcreator_VarListtestenvironmentmod.SummonerMinionWait = ((double)0);}mcreator_VarListtestenvironmentmod.SummonerMinionWait = ((double)(mcreator_VarListtestenvironmentmod.SummonerMinionWait+1));
                                                          ^
C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_summonaminiontimed.java:53: error: incompatible types: possible lossy conversion from double to int
}mcreator_VarListtestenvironmentmod.SummonerMinionWait = ((double)0);}mcreator_VarListtestenvironmentmod.SummonerMinionWait = ((double)(mcreator_VarListtestenvironmentmod.SummonerMinionWait+1));
                                                                                                                               ^
2 errors
: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: 33.363 secs
C:\Pylo\MCreator179\forge>
Task completed with return code 0 in 34754 milliseconds

Procedure: https://ibb.co/doaR8n

Last seen on 17:25, 21. Jul 2019
Joined Mar 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I have a similar problem, I…
Sat, 05/05/2018 - 17:55

I have a similar problem, I created a bug report ticket on this problem a few minutes ago

Last seen on 19:07, 23. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
Raol, I have re-released…
Sat, 05/05/2018 - 18:28

Raol, I have re-released MCreator 1.7.9 with the error you are getting fixed. Reinstall 1.7.9 and report back if it worked,

Last seen on 18:51, 23. Jul 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Ok, I am going to re…
Sat, 05/05/2018 - 18:42

Ok, I am going to re-download MCreator. Thanks for fixing this bug :D

How did you update MCreator so quickly?

Last seen on 19:07, 23. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
UPDATE (5.5 19:50 CET) If…
Sat, 05/05/2018 - 18:47

UPDATE (5.5 19:50 CET)

If you downloaded MCreator between 19:30 and 19:45, there was a critical error in it and it needs to be redownloaded again.

Last seen on 19:07, 23. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
Sorry for this again :O
Sat, 05/05/2018 - 18:47

Sorry for this again :O

Last seen on 19:07, 23. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
I was to fast fixing this…
Sun, 05/06/2018 - 08:01

I was too fast fixing this bug and left another bug.

Last seen on 18:51, 23. Jul 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I haven't redownloaded…
Sat, 05/05/2018 - 19:01

I haven't redownloaded MCreator 1.7.9 yet

Anyways, where can I find the condition for checking a block in a procedure? The old IsBlockat(i, j, k) = (block) condition

Example : An item that when right-clicked on block checks if that block is stone and turns it into diamond ore (just a random example, I will never add this item XD)

Last seen on 18:51, 23. Jul 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Oh, sorry, I didn't see that…
Sat, 05/05/2018 - 19:03

Oh, sorry, I didn't see that you already replied on MCreator 179 news topic :(

Last seen on 19:07, 23. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
I have answered to the…
Sat, 05/05/2018 - 19:04

I have answered to the comment in the release article. Nevertheless, you do it like this: https://imgur.com/a/VgCYVEN

Last seen on 19:07, 23. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
No problem :)
Sat, 05/05/2018 - 19:08

No problem :)