Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. Please post your debug log as described in my signature (the text below each of my posts) or the EAQ (the pinned topic in the topic list)
  2. Adding stuff to the registry requires it be on both sides. If your only replacing server-side logic, then it’s not required on the sever side
  3. You could wrap fluids in the registry and override their method that makes them flow into an area
  4. Yes you can. Fluids have a non-flowing Block that doesn’t update by default. Not necessary
  5. 9minecraft and similar sites initially get their mods from CurseForge before they modify them.
  6. Your Java is more than 150 versions behind. How long do you leave minecraft running before quitting it? That log seems to be completely normal. How much ram are you giving minecraft?
  7. 9minecraft and similar sites illegally redistributes mods without the author’s permission, depriving mod authors of revenue. In addition mods downloaded from these sites can contain additional malware/viruses added by the sites owner that are not part of the original mod. Only download mods from CurseForge or the authors official website
  8. You might (very likely do) not have the same issue as the OP. Trying to help multiple people with different problems on the same thread is ineffective
  9. Does this happen with the latest forge (currently 25.0.55)?
  10. Please show what happens when you click the “Details” button
  11. TileEntity#onLoad is the same as checking if the tick is the tiles first tick, but indicates your intention better
  12. The best way would be to create an entity in a fake world with the same motion, position, look direction, limb positions as your entity, and then render the other entity from your entity’s renderer
  13. I recommend using a git client. I recommended GitHub Desktop because it’s easy to use, eclipse and IntelliJ also have integrated clients. Other good clients are git kracken and source tree
  14. The event fires every time a block is placed. I believe you could check if that block is liquid (cheap), if it is also a source (cheap) and is a flowing block (cheap) set it to stationary water. If the block isn’t a source set it to air (cheap) and optionally find the source and set it to air (potentially expensive). Setting a BlockState will likely call your listener again, so be careful.
  15. You might want to look at WorldEventListeners, they aren’t cancelable, and don’t have write access to a world, but you can probably do an instanceof WorldServer and cast. You need to be efficient if you use this method, as it is called every BlockState change. You can see an example in WorldRenderer/RenderGlobal and at https://github.com/Cadiboo/NoCubes/blob/396d3e731da4c3f7f6b8dd3107877ea442f09fe0/src/main/java/io/github/cadiboo/nocubes/world/ModWorldEventListener.java#L26. My code increases the chunk update distance when a block is placed from 1 block to 2 blocks to remove seams that form in my world caused by outdated meshes.
  16. The steps I was suggesting: 1) grassModel = getGrassModel 2) wrapped = new WorldAwareGrassModel(grassModel, alphaGrassModel) 3) Models.put(grassModelName, wrapped)
  17. Yay, eclipse. You need to refresh your project every time you change a file outside eclipse. Or, you can open the file in eclipse (Eclipse has a JSON plugin)
  18. Use a git client. GitHub Desktop is a user friendly and underpowered one. Make a repository in the root folder of your project and publish it to GitHub Edit: Sorry, when I opened this page up again it re-posted this.
  19. Use a git client. GitHub Desktop is a user friendly and underpowered one. Make a repository in the root folder of your project and publish it to GitHub
  20. If you get an error post it
  21. Autogenerating your models is a thing
  22. Minecraft only renders baked models. You can bake an unbaked model by calling IModel#bake. Baked models are an optimised representation of IModels. I would replace the grass baked model with a wrapper that takes in the vanilla grass baked model and your grass baked model, and switches between them based on what world the player is in (baked models used on many threads at once, and need to be very fast, so in a client tick event store whether the player is in your world in a boolean field, and access it from your baked model). You can see an example of a baked model with 2 delegates at https://github.com/Cadiboo/WIPTech/blob/WIPTechAlpha/src/main/java/cadiboo/wiptech/client/model/BakedModelGlitch.java.
  23. Show your log Vanilla has many examples
×
×
  • Create New...

Important Information

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