Modding my Cannon

Started by 2Cool4u on Sat, 06/27/2020 - 17:35

Topic category: Help with modding (Java Edition)

Last seen on 16:45, 8. Aug 2020
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Modding my Cannon
Sat, 06/27/2020 - 17:35

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 15:52, 7. Aug 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 16:45, 8. Aug 2020
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:18, 7. Aug 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 16:45, 8. Aug 2020
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 16:45, 8. Aug 2020
Joined Apr 2015
User points:

User statistics:

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