Started by
The_CAT_9801
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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)
I'll get back to you after I test it.
It worked - thanks.
You're welcome
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.
image 1: https://imgur.com/a/keqluZX
image 2: https://imgur.com/a/Yu6NRzm
image 3: https://imgur.com/a/Gwv2xPH
image 4: https://imgur.com/a/UDDlq45
It wasn't letting me post more than 2 images in one post. Here are the last two. (sorry about that)
I'm not really good with overlays, you should make another forum topic so hopefully someone else will help
I'll do that. Thanks for the help!
no problem