UPDATE 7/NOV/2011
PLEASE NOTE:
I have begun work on my 1.8.1 tutorials. I will no longer be visiting this thread
new thread:
http://www.minecraftforum.net/topic/683263-inlanoches-tutorials-18-modloader/
Ok, wanting to get save/load working, I backed up my work, then I cleaned out my MCP, and since I was doing that, I added AudioMod and DataSaver Class, as well. I also updated my MCP, and now I'm getting some of the errors others are getting.
If you to are getting these errors, it should be an easy fix. Usually it's a method call/variable name that was previously undetermined by MCP. After updating, this unknow is most likely know. Just go back to the super class (and follow the chain till you find it) and find what the new name is.
I'm guessing this would be considered an intermediate tutorial, since not many people seem to be posting how to do this. There are a few things that you will need:
1. ModLoader (a must)
2. Eclipse (inLanoche says USE ECLIPSE)
3. Techne (or a great visualization of 3 dimensional box art)
First things first. I posted else where about things I have been finding out about building mobs. I will use some of that here, and I may migrate my (continuing) findings here after this tutorial. I may also do a vid tut for those that don't want to read.
To start, I would start a new mod. Do as you will, but I say learn first, implement after. Once you understand this, it's pretty easy to do more of the basic stuff. Now to the tutorial. Please refrain from posting till I post the end of this tutorial. There are 4 Java files that need to be worked on, so I will do each one in a seperate post.
In using eclipse (since it is the only way I know how to do this, and it works well), know that your custom data files are stored in 2 places:
MCP\temp\bin\minecraft\
MCP\jars\bin\minecraft.jar
so if I talk about puting a file into the mob folder, know that I mean both in the MCP\temp\bin\minecraft\mob folder and in the mod folder within the jar file MCP\jars\bin\minecraft.jar
Now on to the fun...
<sorry about the organization of this growing tutorial, it's the first I have ever made>
Updates on this tutorial:
-Creation of Entity, Render and Model java files
-How to use Techne to build the model
-Creating a spawn block to spawn your model
-Breakdown on the vars and Methods for Entity, Render, and Model Java files
-Adding a GUI to your block to pick what mob to spawn
-Flying mobs
-Add a name above the mob(Render java method)
- Controllable, rideable mobs (page 8, post 160, link is not working right)
- Fixing Rotation on linked objects in your Mob
- Rayvyn shows how to do Hi-Res textures
-Super/Sub Classing tip
- Custom Animations
- Keystroke Comands and Entity Control
- Texture and Model Scaling video
- Tamable Super Class example (see post for features - WIP)
- Drivable Vehicle Mob
- Creating an on screen HUD
- KillNature
- Registered Member
-
Member for 13 years, 6 months, and 15 days
Last active Tue, Oct, 8 2013 13:25:32
- 0 Followers
- 180 Total Posts
- 2 Thanks
-
20
inlanoche posted a message on [ModLoader1.7.3] Adding Custom MOBs and MORE!Posted in: Tutorials -
7
zeeksphere posted a message on [1.7.2]Language Extension MOD(BG HE HU LV RU)Posted in: Language PacksAvailable for MC Beta 1.7.2: BG, HE, HU, LV, and RU.(See the latest posts)
I've created a MOD which adds Japanese Characters to Minecraft and provided it to Japanese minecrafters. Now I finally was able to support Russian, Greek, Hungarian, Latvian, Hebrew, Lithuanian(new!), and Turkish(new!) so I'd like to share it with those who use these languages!
It allows to show additional characters, and also to chat and to edit sign messages in Japanese/Russian/Greek/Hungarian/Latvian/Hebrew! (Sorry those who use Hebrew but it doesn't support right-to-left character rendering yet).
(Keyboard input only tested on Windows. It may not work properly on Mac, Linux, or other operating systems.)
It is an EXTENSION so it STILL supports default minecraft characters(Latin alphabet and something else).
How to use
-
[*:1rs83r3n]Press Shift + Space to toggle between default input and additional input.
[*:1rs83r3n]Press Ctrl + Shift + Space to re-select your additional input language.
[*:1rs83r3n](Japanese) Press No Convert (無変換) to toggle between Hiragana/Katakana.
Use in Multiplayer (for official server)
If you'd like to allow chatting/writing on signs in additional characters, you have to modify server file.
- [*:1rs83r3n]For Official Server: Download (.txt file)
[*:1rs83r3n]For Bukkit server (work-in-progress): Download (source code included; LGPL license)
Download
Download Client MOD (v1.05)
Download font.txt for Official Server
MOD Conflicts
This MOD conflicts with Optimine, Improved Chat, and so on. Probably I'll provide merged versions in the future if you want them. - To post a comment, please login.
1
Anyway here is my long thingy of ideas that you probably will just ignore but anyway good day friends!
1
Anyways, i was tinkering with my codes a bit. I figured a way to open inventory when right clicking a mob with.. an item. I though you could use it and am sharing it. ( with anyone)
Although its a bit stupid because you can open the mobs inventory right away without taming but you can fit it in...
I'm a bad guide and teacher, so i couldn't really make this tutorialish but i might edit this reply when i have time, which i don't right now.
So , in your EntitySomething code add this:
This is where the game opens the inventory/gui when you right click it. As you can see in this part:
You must right click the mob with a bone to open its inventory.
You must also add this below all your codes.
There is a bit more you must add, here is the full code for EntitySomething.
Full EntitySomething code(edit accordingly!):
This here is the gui of the inventory. Here is the code for that one.
SomethingInventoryGui:
Here is where you define your gui. You must make the texture too. Here is one:
http://www.2shared.com/photo/wVkMVbKB/inventory.html
Now you also need the gui code, like so:
SomethingInventory:
So in this one you MUST change the entity with yours or your entity will give an error. I used my EntitySomething here but you must change it with EntityCat and so on.
You also need SomethingContainer code:
After you are done with these, you should have an inventory pop up when you right click that Entity with a bone(you can edit). Also the entity will drop all of the items in its inventory upon death. Simple but can be coded furthermore to a more advanced code.
Note: I wrote all these in a hurry, sorry. I didn't have much time while writing these so there might be something wrong.
1
If you still think your spawnerblock is bugged, try setting the mob that it spawns into a pig or another mob. If it crashes and doesn't spawn a pig too then your spawner is bugged, if it works then your mob is bugged.
By the way inlanoche i love your tameable mob tutorial! You are a great help i hope you keep things up :smile.gif: