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


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About idev

  • Rank
    Tree Puncher
  1. I don't know how, but setting: mappings channel: 'snapshot', version: '20210309-1.16.5' build.gradlew helped me. In short, I deployed the project on a new one and it all worked. I thought it was a bug or a flaw, maybe it is
  2. Is this even possible with forge? Maybe I'm waiting in vain for an answer and I need to come up with a workaround
  3. Hello, I have been suffering for 6 hours and cannot find a good, working solution. I need the text above the creature to always face the camera. I went through a lot of code examples and even tried to find the source code of the tag item in the game and render it. But I didn't find anything I needed. As far as I understand, the new version does not have MatrixStack.rotate, I need it judging by the examples. I tried GlStateManager and don't know how to pass the required matrixStack to fontRenderer.draw (matrixStack, ...) What should I do? Now I stopped at the option that is shown
  4. It may seem silly, but I just can't find how to cancel particles of potion effects or replace them, please tell me. I didn't even find a hint of calling them or drawing them
  5. @Mod.EventBusSubscriber(modid = XCraft.MODID, value = Dist.CLIENT) public class ListenGuiOpenEvent{ @SubscribeEvent(priority = EventPriority.HIGHEST) public static void guiOpen(GuiOpenEvent event) { if (event.getGui() instanceof DemoScreen) { System.out.println("Gui Demo open scene"); } } } Oh, I'm sorry, but I'm not talking about that a bit. I calmly added the events themselves. You wrote above about canceling the closure, I thought it was something like a method, most likely I was looking in the wrong place
  6. Unfortunately, I have not found a more or less detailed description. Climbing in the GuiOpenEvent itself, I found only a description. That, in general, was clear before. I quote: This event is called before any Gui will open. If you don't want this to happen, cancel the event. If you want to override this Gui, simply set the gui variable to your own Gui. That is, I need to redefine the open screen anyway? I found nothing about the other. You said about canceling the closure, and I tried to reproduce it, but I did not find anything I needed. Maybe I misunderstood
  7. I do not understand. I started listening to GuiOpenEvent But what will make it not close?
  8. Trying to add a screen before uploading to the world. I did not find examples anywhere, I had to write something of my own. I'm not sure if this approach is correct, I'm not very sure. However, this works more or less. The screen appears but disappears immediately. And I need to wait for the buttons to be pressed before it disappears. How can I implement this? @Mod.EventBusSubscriber(modid = XCraft.MODID, value = Dist.CLIENT) public class ListenEntityJoinWorldEvent { @SubscribeEvent public static void joinEntity(EntityJoinWorldEvent event) { if (event.getEntity(
  9. Alas, the EntityJoinWorldEvent event does not send me EntityPlayer. I think another event is needed here, but I do not know which one.
  10. Many thanks. I haven't been in mod for long and didn't know about it. I will definitely study
  11. Did not quite understand. You can read a little more about: "then attach it to the player with a default value"
  12. Hello. Faced such a problem. I don't even know where to start. I rendered a new screen, when using the item I open it (temporarily). There are two buttons on this screen. Type one and type two. (this is the essence of the player so to speak), I need to somehow extend the base class of the player to add a new player type with a new change (the choice takes place on the buttons), but since a lot of functionality will be tied to this change, I do not know what to do. For example, in the future I will need to ignore the damage of other players with the same player type. Maximum simp
  13. I don't even know, I thought it changed in version 16.5, so I went to the forum. The IDE can be said to be clean, like a clean installation of MC Forge, I even created an almost clean mod, removing all unnecessary, and I used PacketSpawn for tests
  14. There are a few things I tried to do for rendering. In the Networking and PacketSpawn class, but I'm not sure if this was needed at all. Took from an example https://github.com/idev-hub/DangerMod
  15. I duplicated GranateEntity above with the place where I entered createSpawnPacket, but got an error.
  • Create New...

Important Information

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