How do you do that? or maybe a java tutorial and a sample please? thanks! btw please make it compatible with minecraft 1.7.10
Next to no one will write up a whole throwable entity for you without you doing anything, especially when the vanilla code is there for you. Take a look at EntitySnowball or another throwable entity and see how Mojang pulled it off.
On another related note, don't use MCreator. It's limited, bulky, messy, and overall a bad decision. Almost everyone in this section despises MCreator to some degree (personally I'm on both sides of the fence, I see why it can be useful, but I'd much prefer those people asking for help to at least put the effort in to code their mods properly) so you will get hate and / or be told to stop using MCreator.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
You mean like in notepad? btw is the code a class file?
It'd probably be better off if you invest your time into learning Java before attempting to continue making a mod.
You really shouldn't use a standard text editor like Notepad to write Java code out. You can, but it is incredibly inefficient and slow. Use something called an IDE (Integrated Development Environment), such as Eclipse, Netbeans or IntelliJ IDEA, to write your code and ultimately your applications / mods. An IDE is far superior to a standard text editor, even programming text editors like Notepad++ or Sublime. An IDE provides an environment for you to write your code out like you normally do, but it also provides extra useful things, such as syntax highlighting, live error detection, the ability to execute your code without compiling it first, templates, automatic completion, etc.
A class is not the code you write. Java is a type of language known as an Object-Oriented language (shortened to OOP language, Object-Oriented Programming language). In OOP languages, basically everything is set around the concept of objects and parent-child relationships between objects. Say you have a variable, an int variable called i. This variable is in actual fact an object stored in memory, belonging to a series of super objects. Think of it like this, the Integer class is a subclass, or child, of the superclass, or parent, of Object. As such, it inherits all traits of every single super object it inherits. When you write your code, you're ultimately interacting and manipulating a bunch of objects all stored in memory, and the values stored within said objects.
Now that we know what an object is, a class is a special kind of object, that allows you to write the code within the file, in another special type of object called a Method. A method is a special type of object that can store code (at a JVM level, it actually stores bytecode, but that's too advanced for the topic we're talking about). So, in simple terms, a class is a type of object that boths allows you to declare and populate your own objects, and also write code out in methods to interact with said objects.
This probably wasn't 100% correct, it was just a rough skim over it, but you really should invest your time into learning Java and it's core concepts, above learning how to mod.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Next to no one will write up a whole throwable entity for you without you doing anything, especially when the vanilla code is there for you. Take a look at EntitySnowball or another throwable entity and see how Mojang pulled it off.
On another related note, don't use MCreator. It's limited, bulky, messy, and overall a bad decision. Almost everyone in this section despises MCreator to some degree (personally I'm on both sides of the fence, I see why it can be useful, but I'd much prefer those people asking for help to at least put the effort in to code their mods properly) so you will get hate and / or be told to stop using MCreator.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
It'd probably be better off if you invest your time into learning Java before attempting to continue making a mod.
You really shouldn't use a standard text editor like Notepad to write Java code out. You can, but it is incredibly inefficient and slow. Use something called an IDE (Integrated Development Environment), such as Eclipse, Netbeans or IntelliJ IDEA, to write your code and ultimately your applications / mods. An IDE is far superior to a standard text editor, even programming text editors like Notepad++ or Sublime. An IDE provides an environment for you to write your code out like you normally do, but it also provides extra useful things, such as syntax highlighting, live error detection, the ability to execute your code without compiling it first, templates, automatic completion, etc.
A class is not the code you write. Java is a type of language known as an Object-Oriented language (shortened to OOP language, Object-Oriented Programming language). In OOP languages, basically everything is set around the concept of objects and parent-child relationships between objects. Say you have a variable, an int variable called i. This variable is in actual fact an object stored in memory, belonging to a series of super objects. Think of it like this, the Integer class is a subclass, or child, of the superclass, or parent, of Object. As such, it inherits all traits of every single super object it inherits. When you write your code, you're ultimately interacting and manipulating a bunch of objects all stored in memory, and the values stored within said objects.
Now that we know what an object is, a class is a special kind of object, that allows you to write the code within the file, in another special type of object called a Method. A method is a special type of object that can store code (at a JVM level, it actually stores bytecode, but that's too advanced for the topic we're talking about). So, in simple terms, a class is a type of object that boths allows you to declare and populate your own objects, and also write code out in methods to interact with said objects.
This probably wasn't 100% correct, it was just a rough skim over it, but you really should invest your time into learning Java and it's core concepts, above learning how to mod.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!