Grenade Fuse / Timer

Started by deni_loves_kebab on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 months ago
Joined Apr 2024
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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
Active 8 months ago
Joined Apr 2024
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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.

Active 7 hours ago
Joined Sep 2021
Points:
879

User statistics:

  • Modifications: 0
  • Forum topics: 77
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 117
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

Active 8 months ago
Joined Apr 2024
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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 :/

 

Active 8 months ago
Joined Apr 2024
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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

Active 5 months ago
Joined Jun 2023
Points:
152

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
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