Summoning a Lightning Bolt

Started by InfernoEverflame on Mon, 10/05/2020 - 01:00

Topic category: Bugs and solutions

Last seen on 06:43, 3. Dec 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Summoning a Lightning Bolt
Mon, 10/05/2020 - 01:00

so, i made a mob that summons a lightning bolt everytime it dies. but, when i did a procedure that summons a lightning bolt when this entity dies, i get an error that say "workspace contains mod elements that don't compile properly" i need help.

Console tab:

Executing Gradle task: build
Build info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 3982 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Users\iam\Desktop\MCreator20204\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava
C:\Users\iam\MCreatorWorkspaces\steve_inferno_edition\src\main\java\net\mcreator\steveinfernoedition\procedures\LightningboltspawnProcedure.java:46: error: constructor LightningBoltEntity in class LightningBoltEntity cannot be applied to given types; Entity entityToSpawn = new LightningBoltEntity(EntityType.LIGHTNING_BOLT, world.getWorld());
^
required: World,double,double,double,boolean
found: EntityType<LightningBoltEntity>,World
reason: actual and formal argument lists differ in length
1 error
> Task :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. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 46s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 50988 milliseconds
 

Last seen on 15:28, 4. Dec 2020
Joined Jan 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Please send the Workspace /…
Mon, 10/05/2020 - 05:39

Please send the Workspace / Screenshot of the Procedure.

You can not spawn lightning…
Mon, 10/05/2020 - 09:39

You can not spawn lightning this way. Use strike lightning procedure block for this.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei