本文介绍了从哪里开始创建Minecraft客户端模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我已经查看了所有的网络和YouTube,由于某些原因,这是一些绝密的信息或东西,但我试图找出在哪里开始制作一个Minecraft客户端mod,最好是可以放进入一个包,像饲料的野兽或技术包为了简单的用户,但任何一种方式是罚款。 我将如何创建一个mod?我熟悉eclipse和java编程本身,但我不知道从哪里开始编写一个插件。 我试过设置Minecraft Forge,但由于某种原因它是如此令人难以置信的混乱和非常混乱。我不能只包括一些Minecraft库,从一个简单的样板开始,从那里走? (喜欢为Bukkit开发)解决方案 选择修改方法 在创建minecraft客户端模块时,我的研究发现创建模块的不同方法。在这里列出的选择,他们有不同的优惠: 源修改:混淆安装mods,难以发展的最高概率(特别是更新后),但允许添加大部分功能。 ModLoader :更容易使用,有限的功能,没有经常使用,无法找到支持? Minecraft Forge :稍微更难开发,更可扩展,大型API,易于安装的mods,经常使用的(FTB,Technic) Minecraft Forge可能是目前(2014年3月)更好的选择之一,所以这里是一个简短的入门介绍: 使用Eclipse(Mac& PC)设置Minecraft Forge 下载&安装 Java开发工具包7 (如果您还没有) 下载&安装 eclipse (如果您没有了) 下载 Src > Minecraft Forge ,您将要开发的Minecraft版本。 (我推荐推荐) 将文件解压缩到您选择的文件夹。 Windows Shift +右键单击到文件夹的空白处,然后选择在此处打开命令窗口或 Mac :打开终端并导航到提取的文件的目录。 运行此命令。 Windows: gradlew setupDecompWorkspace 或 Mac: ./ gradlew setupDecompWorkspace 如果以前的命令成功完成,请运行以下命令。 Windows: gradlew eclipse 或 Mac: ./ gradlew eclipse 打开Eclipse。如果这是您第一次使用eclipse,您将收到一个名为选择工作区的弹出窗口。如果是这种情况,请浏览提取的文件,选择eclipse文件夹,然后按确定。如果这不是您第一次使用eclipse,请转到文件>切换工作区>其他... ,然后在提取伪造文件的文件夹中选择eclipse文件夹。 这就是你应该知道有一个伪造的环境准备开始创建mods。 以锻炼的方式工作,您希望它     在minecraft中没有声音播放? 进入eclipse目录并复制资产文件夹并将其粘贴到一个目录(gradlew.bat)。     我没有登录屏幕,所以我的用户名不在那里 添加您的用户名进入eclipse并导航到运行>运行配置>java应用程序>客户端> 参数和程序参数:下面添加以下替换steve sername - username steve 。 多人游戏 为了在多人游戏中进行测试,您必须认证自己或服务器允许你。你基本上和单人玩家基本上是一样的,而不是'--username steve',你会用你的Minecraft帐户的电子邮件地址替换它,并添加你的密码,这样替换 312mine!用你自己的密码 - username [email protected] - 密码321mine!。 note 您可以在单人游戏中使用已验证的版本,但这并不是必需的。 h1> 设置Minecraft Forge的视频教程: http://youtu.be/ZCCyGJxEFNM 基本修改: http://www.minecraftforge.net/wiki/Basic_Modding 稍微过时 (1) Mod开发支持 http://www.minecraftforum.net/forum/140-modification-development/ 更多支持: http://www.minecraftforum.net / forum / 56-mapping-and-modding / (1) (1)链接 Dylan Meeus 的曲线 I've looked all over the net and YouTube and for some reason this is some top secret information or something but I'm trying to find out where to get started on making a Minecraft client mod, preferably something that can be put into a pack like feed the beast or technicpack for simplicity for users but either way is fine.How would I go about creating a mod? I'm familiar with eclipse and java programming itself but I don't know where to start writing a plugin.I've tried setting up Minecraft Forge but for some reason it is so incredibly confusing and very messy. can't I just include some Minecraft library, start with a simple boilerplate and go from there? (Like developing for Bukkit) 解决方案 Choosing a modding methodWhen creating minecraft client mods my research has found that different methods of creating mods. of the choices listed here, they have different perks:Source modding: Confusing to install mods, difficult to develop for, highest probability of breaking (especially after an update), but allows for the most features to be added.ModLoader: Easier to use, limited features, not used often, unable to find support?Minecraft Forge: Slightly more difficult to develop, more extendable, large API, easy to install mods, frequently used (FTB, Technic)Minecraft Forge is probably one of the better options as of right now (March 2014) so here is a short intro to getting started:Setting up Minecraft Forge with Eclipse (Mac & PC)Download & install Java Development Kit 7 (If you don't already have it)Download & install eclipse (If you don't already have it)Download Src of Minecraft Forge for the version of Minecraft you want to develop. (I Suggest Recommended)Extract the files to a folder of your choosing. Windows: Shift + Right Click into the white space of the folder and select "Open command window here" OR for Mac: open Terminal and navigate to the directory of the extracted files.Run this command. Windows: gradlew setupDecompWorkspace OR Mac: ./gradlew setupDecompWorkspaceIf previous command finishes successfully, run the following. Windows: gradlew eclipse OR Mac: ./gradlew eclipseOpen Eclipse. If this is your first time using eclipse you will get a popup saying "Select a workspace". If this is the case, browse to the extracted files, select the "eclipse" folder and press "OK". If this is NOT your first time using eclipse, go to File > Switch Workspace > other... and select the eclipse folder inside the folder where you extracted the forge files.That's all, you should know have a forge environment ready to go to start creating mods.Getting forge to work the way you would expect it to    There are no sounds playing in minecraft?Go into the eclipse directory and copy the "assets" folder and paste it up one directory (where gradlew.bat is).    I didn't get a login screen so my username isn't thereSingle-PlayerTo add your username go into eclipse and navigate to "Run > Run Configurations.. > java Application > client > Arguments" and under "Program arguments:" add the following replacing "steve" with your username --username steve.Multi-PlayerFor testing in a multi-player you must authenticate yourself or the server wont allow you on. You do basically the same thing as you would in single player but instead of '--username steve' you would replace it with your Minecraft account email address and add your password as so replacing 312mine! with your own password --username [email protected] --password 321mine!.note You can use the authenticated version in single-player as well but it's not necessary.Helpful resourcesVideo Tutorial for Setting up Minecraft Forge: http://youtu.be/ZCCyGJxEFNMBasic Modding: http://www.minecraftforge.net/wiki/Basic_Modding Slightly Outdated(1)Mod development Support: http://www.minecraftforum.net/forum/140-modification-development/More Support: http://www.minecraftforum.net/forum/56-mapping-and-modding/(1)(1) Links Curtousy of Dylan Meeus 这篇关于从哪里开始创建Minecraft客户端模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 07:39