Modding my Cannon

Started by 2Cool4u on

Topic category: Help with Minecraft modding (Java Edition)

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!!!!

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.

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?

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.

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!!!

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