Throwing an ender pearl.

5 posts / 0 new
Last post
superevan214's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/05/2014 - 21:35
Gems: 0
Throwing an ender pearl.

I'm trying to make it so when you press Q it throws and ender pearl but it crashes when I press it. The command is just a spawn entity command with the entity ID as 14 (thrown ender pearl)



Nuparu00's picture
Offline
Last seen: 17 hours 34 min ago
Joined: 08/27/2013 - 18:03
Gems: 295
Try make gun , view code a

Try make gun , view code a paste the shot code from the gun and replace entity arrow by ender pearl

superevan214's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/05/2014 - 21:35
Gems: 0
RE:Try make gun , view code a

@Nuparu00 Thanks. I'll try.

superevan214's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/05/2014 - 21:35
Gems: 0
RE:Try make gun , view code a

@Nuparu00   @Nuparu00 Here's the error I get when I try...

 

[spoiler

C:\Pylo\MCreator156\forge\build\sources\java\mod\mcreator\mcreator_enderScroll.java:204: error: cannot find symbol
                par2World.spawnEntityInWorld(entityenderpearl);
                                             ^
  symbol:   variable entityenderpearl
  location: class ItemgGUN
1 error

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.

][/spoiler]

superevan214's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/05/2014 - 21:35
Gems: 0
RE:RE:Try make gun , view code a

@superevan214 Sorry... Didn't know how to do spoilers...