How to make a throwable Item (TUTORIAL)

Started by Lakas on

Topic category: User side tutorials

Last seen on 00:03, 18. Mar 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a throwable Item (TUTORIAL)
Tue, 08/22/2017 - 13:20 (edited)

So you want a throwable Item like a Snowball? I know exactly what to do!

First you are going to create a gun (and select textures and stuff..)

but that is now very important  what comes

next! :

- put the durability of the "gun" to 0 

- choose a random item for bullet

Then you make the crafting recipe.

After that you edit the "gun" again

and make the item the bullet itself by

choosing the same item as the bullet

then after that you are finished! (Not really)

----Now this part is not important----

After finishing almost your throwable item you can make it

stackable by editing the code of the throwable item

you'll need to find this:

    static class ItemgGUN extends Item {

        public ItemgGUN() {
            super();
            setMaxDamage(0);
            maxStackSize = 1;
            setFull3D();
            setUnlocalizedName("explosiveSpear");
            setTextureName("TNTSpear");
            setCreativeTab(CreativeTabs.tabCombat);
        }

(setUnlocalizedName is the name of the Item and setTextureName is the Name of the png File

for this Item so "explosiveSpear" and "TNTSpear " doesn't need to be there.

There could be like "iceball" and "IceBallTexture" So ignore that!)

Well what you need to do is just edit the 1 in maxStackSize to 64 that allows the player to

stack the throwable item 64 times per slot!

Then you are finished! Voilà!

 

Edited by Lakas on Tue, 08/22/2017 - 13:20
Last seen on 12:16, 30. Jan 2018
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i edit the guns code  
Tue, 02/07/2017 - 06:25

how do i edit the guns code

 

Last seen on 18:52, 24. Aug 2018
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks!
Tue, 02/07/2017 - 15:14

Thanks!

Last seen on 20:43, 14. Feb 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:how do i edit the guns code 
Fri, 02/10/2017 - 23:36

@#1 You need to go in edit code

Last seen on 00:44, 29. Nov 2022
Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Thanks!
Sat, 02/11/2017 - 01:18

@#2 i love this method i used it for my Airix skulls in my Airix mod.

Last seen on 06:16, 5. Jul 2017
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im confused  
Wed, 07/05/2017 - 06:16

im confused

 

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This tutorial is really
Wed, 07/05/2017 - 06:39

This tutorial is really helpful

Last seen on 00:03, 18. Mar 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:This tutorial is really
Thu, 07/13/2017 - 19:25

@#4 No, problem! :D

Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:This tutorial is really
Thu, 08/31/2017 - 15:00

@#4 Yes, very useful tutorial!

Last seen on 18:50, 16. Oct 2021
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is very useful! Thank…
Sun, 01/28/2018 - 17:17

This is very useful! Thank you!

Last seen on 15:02, 24. Aug 2019
Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks!
Sat, 08/11/2018 - 15:17

thanks!

Last seen on 15:14, 16. Aug 2018
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where do i find gun mode
Thu, 08/16/2018 - 04:36

where do i find gun mode

Last seen on 10:28, 10. May 2021
Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You click "edit code of the…
Thu, 08/16/2018 - 07:16

You click "edit code of the selected mod element" on the left.

Last seen on 01:47, 28. Feb 2024
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually you can make ranged…
Tue, 08/20/2019 - 18:05

actually you can make ranged items(thats what guns are called now) stack

Last seen on 00:03, 18. Mar 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In older versions, you…
Wed, 08/21/2019 - 09:30

In older versions, you couldn't and this topic was made quite long ago.