Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. I was looking into particles in 1.14.4 when I found IParticleData. As far as I can tell from the usage in vanilla, it is a way to sync particles to client via packets. However, I am unsure if I completely understood it, and have the following questions regarding it: 1. If a particle is client-only, and is only created via client-side renderers (i.e. TESR), does that mean it does not need an implementation of IParticleData? 2. How does one register an implementation of IParticleData to its according particle?
  2. It seems that this problem was caused by invoking ItemEntity's constructor, which uses the hardcoded value of the vanilla ItemEntity type. I've fixed this and updated the GitHub repo. However, I am experiencing another problem after changing the constructor. Whenever I try to spawn the entity, it will not spawn (at least on the client) and the console logs: [Client thread/WARN] [minecraft/ClientPlayNetHandler]: Received passengers for unknown entity How would I fix this?
  3. I am trying to create a custom ItemEntity class (FancyItemEntity) to gain more control over dropped items in world. One feature I would like to add is a custom renderer for my custom ItemEntity. The entity is registered here. The renderer is here. However, when I spawn my custom entity as demonstrated here, the entity created on the server is my custom ItemEntity, but the entity on the client side is still the vanilla ItemEntity. Why is the entity created on the client still the vanilla ItemEntity? How would I fix this?
  4. This seems to be caused by a corrupted zip file. The build was successful after I cleared the gradle caches of the version that is experiencing the problem.
  5. I am trying to make something happen when the player enters any block of water. I have not find any hooks regarding this. Is there a hook I can use to detect this? What is the best approach to do this?
  6. I have a Capability in my mod that tracks the player's progress through the mod. I would like to make certain recipes not craftable until the player made certain progress. I've heard that Minecraft now has its own recipe unlocking system. However, as far as I could tell it is based on advancements, and cannot be unlocked by checking against my Capability. In versions prior to 1.14.4, I created a custom IRecipe implementation to manage player-specific recipe. However, I am not sure whether that is the best approach in 1.14.4. What is the most preferred way to create player-specific recipes?
  7. Make sure you have Java installed. If the jar still doesn't open with Java, use Jarfix.
  8. The installer download should only download a jar file. You need to run the jar file, not extract it.
  9. I am setting up a Forge workspace for 1.14.4. However, when I execute gradlew eclipse, the following error occurs: https://gist.github.com/davidmaamoaix/b359a24cd442eda5c86e5a5dfba6da9b When I import the project in eclipse, the editor indicates that the source is missing (cannot view source code of Forge & Minecraft). How would I fix this?
  10. Make sure you've downloaded the installer (not the mdk, source, etc) on the download page.
  11. 1.8.9 is no longer supported on this forum due to its age. Please update to 1.14 and above if you would like to receive support on this forum.
  12. This is not caused by the renderer, but rather your TileEntity. It is not synced to the client.
  13. In general, you can submit a PR to Forge and suggest to add your hook. In this case though, depending on the amount of blocks whose shape you want to modify, you can replace the vanilla block with your own variant.
  14. I suppose the new mapping is AbstractGui#blit.
  15. I am porting my mod to 1.14.4. Previously, I used GuiContainer#drawTexturedModalRect to draw the GUI as well as a furnace-like progress bar. However, I cannot find the equivalent of this in 1.14.4's ContainerScreen<T>. How do I draw the GUI of a ContainerScreen<T> in 1.14.4?
  16. I doubt that it is caused by the government's firewall, as I am currently in China, and I can still build/setup projects without major connection problem (although relatively slow due to the geographical location).
  17. You did not answer the question. What launcher are you using?
  18. Run the installer, preferably via the command line.
  19. It is supposed to be a jar file. It is not a java file, and cannot be converted to one.
  20. 1. Make sure you are in the same directory as the jar file. 2. Make sure the name of your jar file is forge-1.12.2-14.23.5.2847.jar.
  21. In this case, you can forget about Block#onBlockActivated and implement the entire behavior in the RightClickBlock event subscriber.
  22. The mapping name may have changed in newer versions (haven’t checked). What version of Minecraft are you working with?
  23. ModBlocks::NOODLE_ORE is always null. You've never give it a value.
  24. Override Block#onBlockActivated.
  25. Recipes should be done with JSON, not code.
×
×
  • Create New...

Important Information

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