Summoning a Lightning Bolt

Started by InfernoEverflame on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 02:57, 8. Apr 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Summoning a Lightning Bolt

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:05, 6. Oct 2023
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Last seen on 07:01, 30. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i am making a mob that…
Fri, 04/22/2022 - 07:41

i am making a mob that spawns lightning around it to attack the player how should i do this??????