Topic category: Troubleshooting, bugs, and solutions
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
I have a similar problem, I created a bug report ticket on this problem a few minutes ago
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,
Ok, I am going to re-download MCreator. Thanks for fixing this bug :D
How did you update MCreator so quickly?
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.
Sorry for this again :O
I was too fast fixing this bug and left another bug.
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)
Oh, sorry, I didn't see that you already replied on MCreator 179 news topic :(
I have answered to the comment in the release article. Nevertheless, you do it like this: https://imgur.com/a/VgCYVEN
No problem :)
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?
Does the cube mean blocks an the triangle/arrow items?
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.
Thanks for the help :)