Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

twixthehero

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About twixthehero

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have a simple POC mod which includes some external dependencies into it. When I run the `shadowJar` task, I see the appropriate dependencies are relocated and packaged into the output at `build/libs/classloadtest-1.15.2-0.0.1-shadow.jar`. However, when I run the `jar` task, the dependencies are not included in the output jar. I searched around a bit and found [1.14.4] Jar-In-Jar Dependency Extraction Not Working [SOLVED] which I didn't really see any big differences besides Minecraft version. Did I mess up something with my configuration? Here's my `build.
  2. Hello all - How would I go about randomly spawning experience near the player? I thought about using ITickHandler to do it every so many ticks, but there's no way to get access to each player... Any thoughts? EDIT: Found a solution to get the player through ITickHandler: http://www.minecraftforge.net/forum/index.php?topic=4139.0
  3. You don't have the @ForgeSubscribe annotation anywhere, so even if you register your overlay class with Forge, it's not going to find any methods that it needs to call back. @ForgeSubscribe(priority=EventPriority.NORMAL) Also, I believe that you should be extending Gui, not GuiIngameForge.
  4. It looks like those classes have invalid sides attached to them. "@SideOnly(Side.SERVER)" Have you modified those two classes at all?
  5. Hello all! - I've been working on creating a new experience called "XM." The problem is that once you "pick it up (collide with it)," it doesn't go away, but instead keeps floating by your head. I use LivingDeathEvent to spawn in the XM. It seems like the "setDead()" function is not working...Any idea why this is happening? EntityXMOrb.java package twixthehero.ingress.entity; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import twixthehero.ingress.Ingress; import cpw.mods.fml.common.network.PacketDispatch
  6. Thanks everyone! I decided to use a packet (since I hadn't used them before, and I figured it was a good time to learn). In my IPlayerTracker, I use: ByteArrayOutputStream os = new ByteArrayOutputStream(4); DataOutputStream dos = new DataOutputStream(os); try { dos.writeInt(Ingress.OPEN_TEAM_SELECT_PACKET); } catch (IOException e) { e.printStackTrace(); } Packet250CustomPayload packet = new Packet250CustomPayload(); packet.channel = "IngressGUI"; packet.data = os.toByteArray(); packet.length = os.size(); PacketDispatcher.sendPacketToPlayer(packet, (Player)player);
  7. Just for clarification, when you place an item into a slot, it appears in two slots, right? And what do you mean by not updated?
  8. You said you copied all the methods in Container and Inventory. Why not just extend Container like in this tutorial: http://www.minecraftforge.net/wiki/Containers_and_GUIs Is there something that you can't do by overriding the methods in that class?
  9. I'm trying to use a GuiScreen because I don't need to store any items inside it. Containers are for storing items inside, right? Why would this GUI need a container?
  10. I do have the GUIHandler and it is registered correctly. The problem is that within my IPlayerTracker, when I call player.openGui(), player is an instance of EntityPlayerMP so it doesn't open the GUI because it's looking for a container. IPlayerTracker: package twixthehero.ingress.server; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagString; import twixthehero.ingress.Ingress; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.IPlayerTracker; /* * TO
  11. Hello - What I'm trying to do is open a GUI for the player when they login to the server. I implement IPlayerTracker so that I can get the callback for onPlayerLogin(EntityPlayer player). In this function, I have attempted to use player.openGui(...) but no GUI ever opens. I "Ctrl+clicked" openGui in Eclipse and onward until I got to FMLNetworkHandler.openGui(). At the bottom of this method, it says: if (player instanceof EntityPlayerMP) { NetworkRegistry.instance().openRemoteGui(mc, (EntityPlayerMP) player, modGuiId, world, x, y, z); } else { NetworkRegistry.instanc
  12. I GOT IT TO RENDER! (sorry for caps, very exciting!) I just changed my block to extend BlockContainer instead of Block, and it works! Thank you so much! Please write the wiki page too, because I'm sure there are lots of people still trying to get this correct for the new versions.
  13. Thanks. I went and looked at your code. I changed some of what I had to more closely match yours and I still just get an empty bounding box. I even tried using your model and got nothing.
  14. Hello - How did you get you model to start rendering? Using the code on the wiki doesn't work, and I've tried many, many threads that I've discovered on the internet through searching (all to no avail).
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.