7 Projectiles in one Ranged item?

Started by The_CAT_9801 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
7 Projectiles in one Ranged item?

I am making a mages staff that has 7 different projectiles. I saw https://mcreator.net/node/75188 <- this forum topic and it wouldn't help me in my situation. I don't want to have to have ammunition in my inventory because, you know, it's a staff. I was wondering how I would go about this. I already have the item and a string, player-persistent global variable to store the current spell. I am currently making an overlay to show an icon depending on the spell you want to use.

So essentially, I want to make a ranged item with 7 types of projectiles, but I don't want them to be in the inventory. How would I go about this?

Thanks in advance.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You Need to make a procedure…
Sat, 07/20/2024 - 12:59

You Need to make a procedure that detects when you right click with the staff and with some if's and else if's detect what projectile Is active (with a Number variabile or NBT tag) and then use "shoot projectile" block

 

(In the settings of the projectile you can set any item as the required one, because if you use procedures to shoot a projectile It won't consume it's required item)

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll get back to you after I…
Sat, 07/20/2024 - 13:20

I'll get back to you after I test it.

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It worked - thanks.
Sun, 07/21/2024 - 01:10

It worked - thanks.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome
Sun, 07/21/2024 - 01:13

You're welcome

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So the overlay won't work…
Mon, 07/22/2024 - 17:59

So the overlay won't work after adding multiple different images for the overlay. I switch through the spells with image 1 and image 2 (right and left) which just use a keybind to set a string global variable to different values (which correspond to different abilities). I also use image 3 to check if the overlay should be displayed. As for the separate images in the overlay, I use the image 4 procedure to check which one should be displayed. (modifying it to fit each image)

Sorry for the late response. MCreator's website won't let me put the images here so I will comment them in just a moment.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not really good with…
Mon, 07/22/2024 - 19:30

I'm not really good with overlays, you should make another forum topic so hopefully someone else will help

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll do that. Thanks for the…
Mon, 07/22/2024 - 21:53

I'll do that. Thanks for the help!

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no problem 
Mon, 07/22/2024 - 21:58

no problem