Jump to content

Vega Alpha

Forge Modder
  • Posts

    8
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Texas USA
  • Personal Text
    Games are the final frontier.

Vega Alpha's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I’m constructing a MOD that implements MyBlock extends net.minecraft.block.Block and an associated MyTileEntity extends net.minecraft.tileentity.TileEntity that should open MyGuiScreen extends net.minecraft.client.gui.GuiScreen when the Minecraft Server decides to. The client side will ask the server to open MyGuiScreen and the Server will open it, after taking security concerns into account. Currently I have MyGuiScreen opening just fine when the client decides to, like this if (worldIn.isRemote) playerIn.openGui(MyMod.INSTANCE, MyGuiHandler.GUI_ID, worldIn, x, y, z) How do I allow the server to open MyGuiScreen at the client after the server receives a request from the client to do so?
  2. This is great! You have saved me from writing a mess of code that reinvents the wheel.
  3. The user diesieben07 gave a good answer to a question I did not intend to ask. I need to know how to create from scratch a Minecraft Forge Mod project that Eclipse Mars recognizes as a Gradle project, making the Eclipse view called "Gradle Tasks" work with the new project. This has the benefit of making accessible many of the new project's Gradle features from within Eclipse without using the command line. I may have found an answer to the question I wanted to ask, but I want to check with the community to make sure I'm not missing a better way. Here is what I did to create a Forge Minecraft Mod project that is also recognized by Eclipse as a Gradle project. [*]I made an eclipse workspace by pointing Eclipse to an empty directory, then closed Eclipse. This step came from Forge documentation and diesieben07. [*]I used gradlew setupDecompWorkspace eclipse on the new workspace and then opened Eclipse on the second new workspace within the "eclipse" folder. [*]The workspace appeared with a project called "MDKExample". [*]I created a new Gradle project with File > New > Project > Gradle > Gradle Project. [*]I copied the contents of build.gradle found within the MDKExample into the build.gradle of my new Gradle project. [*]I deleted the Java file "src/test/java/LibraryTest.java" [*]I right clicked on my new project and selected "Refresh" from the menu that appeared. [*]I made sure the Eclipse view called "Gradle Tasks" is closed. [*]I right clicked on my new project and selected "Gradle > Refresh Gradle Project". [*]I opened the Eclipse view called "Gradle Tasks" using Window > Show View > Other > Gradle > Gradle Tasks. [*]I doubled clicked the Gradle task called "eclipse" found in the Gradle Tasks view under my new project's name. [*]Done These steps create an empty Gradle project that Eclipse recognizes and is also a Minecraft Forge project. I am using Forge forge-1.8.9-11.15.1.1722-mdk and Eclipse IDE for Java Developers, Version: Mars.2 Release (4.5.2), Build id: 20160218-0600 While the result seems perfect it takes many steps to set it up. It seems like something a custom Forge Eclipse plugin could nicely simplify. Or perhaps, a Gradle task could setup what I have done here. Thoughts? Thank you for the considerable time you have spent reading and answering this post.
  4. Hi! I'm making a mod and I need to save data with a game but not associated with any particular dimension. I am familiar with extending class WorldSavedData but it does not seem to fit the need I have. Is there a way to use class WorldSavedData without the class World instance making the data multi-verse instead of for a particular dimension. I also need some clarification. Seem that when starting new game it refers to it as a World. In the Forge & Minecraft code it seems that a World can be a dimension and does not refer generally with a particular game save. I'm calling data not associated with a particular world/dimension as multi-verse or game data. Can anyone clear this up for me?
  5. I am trying to correct how I follow the instructions here (http://www.minecraftforge.net/wiki/Installation/Source). That page was last modified on 6 April 2016, at 03:18, so I think it's likely that the instructions are current. I've followed the instructions three times and each yielded the same results. I found this (http://www.minecraftforge.net/wiki/Eclipse) page discussing Minecraft Forge's special support to Eclipse developers. That page was last modified on 30 August 2014, at 19:18, so it likely is outdated, but I have failed to find a newer one. From reading the page I came to believe that the workspace that Gradle created is suitable for building my mods. There is no mention there, of the use of the Gradle support within Eclipse. The workspace already contained a project called MDKExample. I assumed that because Gradle made the workspace and example project, that the intent of the MDK is to facilitate the use of Gradle in a mod project I create. When I opened the Eclipse view called "Gradle Tasks" (Window > Show View > Other > Gradle > Gradle Tasks) it indicated that there are no Gradle projects. Why is this? Is it reasonable to expect that with some effort, a veteran Java programmer and Eclipse user, but new to modding and Gradle, could make a Gradle project (File > New > Project > Gradle > Gradle Project) that is recognized by Eclipse and able to build my Minecraft mod? Perhaps by following some variation of the Advanced instructions given here (http://www.minecraftforge.net/forum/index.php/topic,14048.0.html)? Thanks!
  6. I am trying to correct how I follow the instructions here (http://www.minecraftforge.net/wiki/Installation/Source). That page was last modified on 6 April 2016, at 03:18, so I think it's likely that the instructions are current. I've followed the instructions three times and each yielded the same results. I found this (http://www.minecraftforge.net/wiki/Eclipse) page discussing Minecraft Forge's special support to Eclipse developers. That page was last modified on 30 August 2014, at 19:18, so it likely is outdated, but I have failed to find a newer one. From reading the page I came to believe that the workspace that Gradle created is suitable for building my mods. There is no mention there, of the use of the Gradle support within Eclipse. The workspace already contained a project called MDKExample. I assumed that because Gradle made the workspace and example project, that the intent of the MDK is to facilitate the use of Gradle in a mod project I create. When I opened the Eclipse view called "Gradle Tasks" (Window > Show View > Other > Gradle > Gradle Tasks) it indicated that there are no Gradle projects. Why is this? Is it reasonable to expect that with some effort, a veteran Java programmer and Eclipse user, but new to modding and Gradle, could make a Gradle project (File > New > Project > Gradle > Gradle Project) that is recognized by Eclipse and able to build my Minecraft mod? Perhaps by following some variation of the Advanced instructions given here (http://www.minecraftforge.net/forum/index.php/topic,14048.0.html)? Thanks!
  7. Greetings, I have a working mod for Forge 1.8-11.14.4.1577. The mod overrides addRandomArmor() as shown in the following code excerpt. public class MyMob extends net.minecraft.entity.monster.EntityMob { private net.minecraft.item.Item rareItem; public MyMob(net.minecraft.world.World world, net.minecraft.item.Item rareItem) { super(world); this.rareItem = rareItem; } @Override protected void addRandomArmor() { this.dropItem(rareItem, 1); } } I want to migrate this mod to Forge 1.8.9-11.15.1.1722. I took the documented steps to upgrade the project. After the upgrade I found that addRandomArmor() method does not seem to be a part of EntityMob anymore. I went through the normal intuitive search into the Minecraft source, looking for how best to handle this problem. I didn't find an answer so I moved on to search this forum and eventually Google. Google found for me that addRandomArmor() is misleading and that the correct method name might be dropRareDrop(). That better represents how I am using addRandomArmor(), but dropRareDrop() is not present either. I made a guess when I moved my code to net.minecraft.entity.EntityLivingBase#onDeathUpdate(), but that did not seem to work correctly. I decided I lack sufficient familiarity with the Minecraft source to find the best solution within a reasonable amount time. What would you recommend? - Thank you for your time.
  8. I'm making my first Minecraft mod and I have a couple of books. The books describe the mcmod.info file. That file includes a place to enter credits. I decided I wanted to give credit to the makers, suppliers and contributors of the materials and resources I will use in making my first shareable Mod. Among those resources is this forum. So that left me thinking, "Who else should I be crediting?" I'm afraid I don't yet understand the players. There seems to be something called "FML." I don't know what that is since the books have not made it plain to me. I thought I knew what Forge is but now it only seems to be the name of the API I'm learning that will enable me to write a mod. I could go on about my confusions. Answering them all would likely consume more time than you will have to spend on me. I think the root problem is I lack "domain knowledge" of Minecraft, Forge and the modding scene in general to carry on an intelligent conversation. So perhaps describing those things is a lessor task to answering a large number of discrete questions. To help you minimize the effort to write the primer I should describe your audience, me. I am a 47 year old Software Engineer who has been excited about programming since I got a Commodore 64 computer in 1982. I learned Basic first then moved on to assembly since that was the only way to get the best performance from that computer. From there I moved on to Pascal. In 1986 I went to college and learned many other languages including C and C++. I have 26 years professional programming experience starting in 1989. Today I am up to date with C/C++, Java, and web technologies such as CSS, JavaScript and HTML 5 and still as enthusiastic as the 15 year old child I was in 1982. I've been playing Minecraft for years now. I have never killed an Ender Dragon but I have built a red stone calculator. I’m off for Christmas, so I thought I would make a MineCraft adventure map featuring some mods and then play it with my four children.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.