How do I make a crossbow?

Started by Bo-Katan22 on

Topic category: Help with MCreator software

Last seen on 22:56, 15. Jul 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a crossbow?

So, I want to make some crossbows, but I have three problems:

1, the orientation of the item is like a bow, or straight up, instead of like a crossbow, or flat. How can I make the crossbow flat?

2, How do I make a pulling animation? I want to make it so that you can pull the crossbow like in vanilla.

3, How do I make it so that you can load the crossbow and carry it around loaded, than fire it whenever you want?

Please help, I don't know what to do. 

Thanks!

Last seen on 14:47, 16. Jul 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. just use the item…
Mon, 05/01/2023 - 19:41

1. just use the item representation model of the crossbow (i dont know if that exists in every version)

 

2. make an animated texture and trigger a texture change with the trigger "when item is used" (i recommend tagging it so it wont do that with every item)

Last seen on 22:06, 23. May 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for #3, i made an item, then…
Sat, 10/14/2023 - 22:23

for #3, i made an item, then added a method for 'when right clicked' that first checked an nbt I named 'isLoaded' and shot the gun and set the nbt false if it was true, otherwise it would wait an amount of time and check if what was in the main hand was the item. if true, it would set the nbt 'isLoaded' to true and removed an ammo. the one thing with this is that you dont need to actually keep anything during the wait to finish loading the gun.

Last seen on 23:32, 16. Jul 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you have any image of how…
Tue, 11/21/2023 - 11:00

Do you have any image of how to do that?

Last seen on 22:06, 23. May 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the simplified version of…
Thu, 11/23/2023 - 02:55

the simplified version of what I did is.

if (Get NBT logic tag "isLoaded" of Provided itemstack) do {
	Shoot (Arrow of type <whatever projectile> ...) ...
}
else if ( <ammo> = item in off-hand of Event/target entity ) do {
	Wait [number] ticks then on server-side do {
		if (( <weapon> = item in off-hand of Event/target entity ) && ( <ammo> = item in off-hand of Event/target entity ) do {
			Shrink item in off-hand of Event/target entity for [number]
			Set NBT logic tag "isLoaded" of Provided itemstack to true
		}
	}
}

this can obviously be changed to look for the ammo anywhere in the inventory, or to cancel the loading if it's interrupted, but that's something you can do.

Last seen on 17:25, 11. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there an chance that you…
Fri, 01/19/2024 - 20:42

Is there an chance that you could export your procedure?

Last seen on 22:06, 23. May 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can export the procedure,…
Sat, 01/27/2024 - 15:03

I can export the procedure, but I'm not sure how to link a download for it, much less if I'd be allowed to do so. I'm also not sure I'm allowed to post images either. :/