Posted July 15, 201312 yr Does anybody know if its possible to make items such as pickaxes or swords throwable? would you have to make it a seperate throwable entity? http://i1279.photobucket.com/albums/y523/textcraft/Jul%202013%20-%203/9fe024ebf03623c0265f2c0ac1dfaa87db905ff7c593e1616aec2474a92516f4db7b79aa8e4023f09fb0ecba4ae771f7606d800aacdf40b3b889e1274c94a41a97a0a04ec748_zps33f9ea75.png[/img]
July 15, 201312 yr I'm assuming you mean throwing them like snowballs? You would definitely need an entity, there is no other way to do it. Also, do you want to add this to a vanilla tool, or a custom one? The way to implement it would be very different.
July 16, 201312 yr Author I mean like to a custom pickaxe/vanilla tools. http://i1279.photobucket.com/albums/y523/textcraft/Jul%202013%20-%203/9fe024ebf03623c0265f2c0ac1dfaa87db905ff7c593e1616aec2474a92516f4db7b79aa8e4023f09fb0ecba4ae771f7606d800aacdf40b3b889e1274c94a41a97a0a04ec748_zps33f9ea75.png[/img]
July 16, 201312 yr Easy. Make a class that extends ItemPickaxe, and copy the code from ItemSnowball (onItemRightClick) and paste it into your class. Then change the code to fit what you want, it changing anything like EntitySnowball, etc. to EntityPickaxe, then copy and paste EntitySnowball/RenderSnowball and name it EntityPickaxe and RenderPickaxe, and change it. it's not hard, really just a bunch of copy and paste.
July 16, 201312 yr Author Guff can you also help me with this? My forge wont recompile http://www.minecraftforge.net/forum/index.php/topic,10404.0.html http://i1279.photobucket.com/albums/y523/textcraft/Jul%202013%20-%203/9fe024ebf03623c0265f2c0ac1dfaa87db905ff7c593e1616aec2474a92516f4db7b79aa8e4023f09fb0ecba4ae771f7606d800aacdf40b3b889e1274c94a41a97a0a04ec748_zps33f9ea75.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.