Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. Feel free to submit a pull request to update the docs https://github.com/MinecraftForge/Documentation
  2. Not with vanilla systems, no.
  3. ...if the player isn't holding an axe...cancel the event...
  4. Correct.
  5. Rather than trying to fake executing a command, just do the things that the command does. i.e. instead of telling the server "the player typed /teleport, run the teleport command" just...teleport the player by changing their position.
  6. Vanilla. The FOVUpdateEvent (Forge) might help you find the right areas to start looking at though.
  7. You'll have to dig into the code yourself and find what you need.
  8. Move the camera further away from the player.
  9. JSON is just data. You are looking for how to render a model.
  10. If you are trying to learn how to mod without knowing how to program (Java preferred, but any language), then you are going to have a lot of trouble.
  11. Look at the available methods to override in the Item class and IForgeItem interface.
  12. Unlocalized names are for display purposes. The registry name is what identifies the item with the game. Which one makes more sense to be the primary key?
  13. Create your own invisible, replacable, isAir block that gets placed in the air spaces.
  14. Every block that is part of your structure should know where in that structure it is, relative to the center, and when it breaks, it should notify the center. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/WindvaneBlock.java#L72
  15. You need to register the serializer and add the json data as well (including adding your serializer to the forge loot_modifier.json).
  16. Do not use item IDs. You do not need to know what they are or interact with them in any way. Your class extends Item Your method is an instance method new ItemStack(this)
  17. Errors are pretty self explanatory. You have a NoClassDefFound error, meaning a class was not found, the name of the class that wasn't found, and the line of code that called it.
  18. Good thing the documentation I linked tells you where it goes so you can create it.
  19. Dude, it's a Forge feature, Forge doesn't have to "update to automatically include it," it is Forge. Check your resources folder. https://mcforge.readthedocs.io/en/1.15.x/gettingstarted/structuring/#the-modstoml-file
  20. That's not a line, that's a sphere. You want to look up how to calculate a Slerp (spherical linear interpolation).
  21. You don't need to implement IForgeItem directly, Item already does that. You just need to override the method.
  22. Derp yeah. I thought it did. Nevermind then.
  23. Stream implements IEnumerable, so you don't need to convert it to a List
  24. BlockPos.getAllInBox(...) would be a much, much better way of handling that loop. Or hell, using three nested loops for x, y, and z...
  25. What happens if the entity isn't a player? What happens if the entity is null?
×
×
  • Create New...

Important Information

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