Modding my Cannon

Started by 2Cool4u on

Topic category: Help with modding (Java Edition)

Last seen on 01:14, 25. Mar 2024
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Modding my Cannon

I have finished my Model, Texture, and GUI for my cannon, but I can't seem to figure out how to make it work. No matter which direction I place the cannon in, it fires in only one direction, north. Even the particles always shoot north, even if the cannon is facing east, south, or west. Help please!!!!

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's a problem because you…
Wed, 07/01/2020 - 15:31

That's a problem because you only have it shooting north. In the procedure for it firing, have four If statements, with If Get direction of block at X Y Z = North/South/East/West, then duplicate the firing code and change the directions. X is east/west, and Z is north/south.

Last seen on 01:14, 25. Mar 2024
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That is perfect, thank you…
Sat, 07/04/2020 - 02:35

That is perfect, thank you so much, the cannon now works. Also how would I add a custom projectile? Like a cannonball that, when collides with entity or block, explodes?

Last seen on 16:48, 17. Dec 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do it with a custom…
Sat, 07/04/2020 - 21:11

You can do it with a custom ranged item (just make it unobtainable) that explodes when it hits a block/entity.

Last seen on 01:14, 25. Mar 2024
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll try that out, thank you…
Sun, 07/05/2020 - 01:30

I'll try that out, thank you!!!

Last seen on 01:14, 25. Mar 2024
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually I don't know how to…
Sun, 07/05/2020 - 01:55

Actually I don't know how to make the block shoot the entity. May I have some help on that