(Help) Procedure doesn't work

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

Topic category: Bugs and solutions

Last seen on 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(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 22:46, 18. Sep 2020
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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:31, 21. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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:31, 21. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There are similar blocks to…
Sun, 05/06/2018 - 16:28

There are similar blocks to thus, what's the difference?

There is a yellow "item/block container" with an arrow icon and one without the arrow icon, for example.

Can you explain me what do the cube and the arrow icon mean?

Last seen on 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Does the cube mean blocks an…
Sun, 05/06/2018 - 16:31

Does the cube mean blocks an the triangle/arrow items?

Last seen on 19:31, 21. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Cubes are blocks and that…
Sun, 05/06/2018 - 17:03

Cubes are blocks and that arrows represent items. Procedure blocks tell which type they accept with these icons. Conversion from them is not possible atm, but we will add support for this in later releases.

In the logic operations, you have two types of comparations. = and ==. = just compares blocks or blocks&items while == checks for metadata match too.

Last seen on 11:41, 17. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for the help :)
Sun, 05/06/2018 - 17:33

Thanks for the help :)