Grenade Fuse / Timer

Started by deni_loves_kebab on

Topic category: Help with modding (Java Edition)

Last seen on 17:55, 16. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Grenade Fuse / Timer
Mon, 04/15/2024 - 18:38 (edited)

Hi! So i was struggling for like 4 days to find a procedure / procedure combination for my projectile grenade. I wanted to make a Grenade with a 4 second fuse (80 ticks) but i dont know how to make it. I also want the fuse timer to continue when the Grenade hit an entity/block. Is there anyone who could help me with that? I'd be REALLY happy if someone could help me.

 

Note: I'm using MCreator 2024.1 Forge

Edited by deni_loves_kebab on Mon, 04/15/2024 - 18:38
Last seen on 17:55, 16. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Btw I downloaded mcreator 2…
Mon, 04/15/2024 - 18:00

Btw I downloaded mcreator 2 weeks ago so im kinda new. But i created an account just for this post.

Last seen on 14:05, 27. Apr 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the grenade entity, just…
Mon, 04/15/2024 - 19:34

in the grenade entity, just give it a ticking procedure that counts a variable up by 1 every tick, and every tick check if that variable is equal to or greater than 80, and if it is, then explode the entity

Last seen on 17:55, 16. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you show me an example…
Tue, 04/16/2024 - 13:49

Could you show me an example with procedures? I don't know which procedure is the right one :/

 

Last seen on 17:55, 16. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Btw i also tried this for …
Tue, 04/16/2024 - 14:01

Btw i also tried this for "When ranged item used" but it doesnt explode where the grenade is after 80 ticks, it explodes there where i am.

https://ibb.co/NK6LM8z

Last seen on 14:19, 29. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The procedure is ok, but you…
Tue, 04/16/2024 - 16:22

The procedure is ok, but you need to change "When ranged item used" to "When projectile hits block/entity".

If you are new to the…
Tue, 04/16/2024 - 16:36

If you are new to the software, 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