Jump to content

Boy132

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by Boy132

  1. Thank you! Changing the ordering did the trick. Don't worry. I'm going to use conditional recipes and config values later. The example above was basically just for testing.
  2. Hello! I'm trying to overwrite the vanilla recipes for the wooden tools. I have this "wooden_sword.json" inside "resources/data/minecraft/recipes", for example. When checking ingame the recipe hasn't changed. (wooden sword is still crafted with wood instead of the new dirt) I'm also overwriting the recipe for bread the exact same way (created a file "resources/data/minecraft/recipes/bread.json") and for bread it works. I also tried it with the stone tools and it also didn't work. No errors or hints in the logs. I'm using Forge 43.1.1. If you need more information let me know. Thanks in advance.
  3. Thank you for your answer! Sadly none of that worked for me, I tried it with 0f, 0.05f, 0.1f and 0.2f (and editing the model json) and the result were the same as before.
  4. So I've made a multiblock structure (and basically followed this video: https://www.youtube.com/watch?v=GQRxeJSoUI4) and everything works fine but there are some lighting problems because the model of the controller is bigger than one block (it is 2x2 blocks): I know that you used to fix this by overriding isFullBlock and later getRenderLayer but both of these methods don't exist anymore. Using RenderTypeLookup.setRenderLayer(block, RenderType.getCutout()) didn't work either.
  5. I have the same problem on 1.16.3 with nearly the same code. Did you find a solution?
  6. Figured it out: my custom structures caused the crash. Disabling the structure registration solved the problem.
  7. Hmm, thats weird... The logs are attached now. debug.log latest.log
  8. -snip- Full log: https://hastebin.com/kahuqizofe.pl
  9. Hello, I am currently updating my mod from 1.15 to 1.16. Minecraft starts without erros but as soon as I try to join a world or click on "create world" it crashs: https://hastebin.com/dirihipifo.sql Is this a minecraft/ forge problem? Or my mods fault?
  10. There are basically two buses to choose from: https://mcforge.readthedocs.io/en/1.15.x/events/intro/ You can figure it out.
  11. First of all this is the wrong section. You would need to post this under "Modding Support". Make sure it's a .json file and not a normal .txt file. Check if you modid is really testmod and that the registryname of your item is set to test_item.
  12. I guess you need to make the constructor public with an access transformer.
  13. This thread is from 2018... please make a new thread for your problem instead of bumping this one.
  14. Show your whole class and/ or where you register the event.
  15. You need to put your modid in front of name. ("name": "memesounds:giornos_theme") You play your sound by adding a chat message? Okay
  16. The interface is just called Command now.
  17. Just to be sure: your block of the crop breaks when it turns mature? Also your spoiler in the post above seems to be broken. (at least for me it says "Advanced issue found")
  18. I totally agree with you. I thought in this case it's fine because the code isn't complex at all and there is no real vanilla reference to look at. ^^
  19. What do you mean by "change my pseudo"?
  20. This should work: @Override public boolean hasContainerItem() { return true; } @Override public ItemStack getContainerItem(ItemStack itemStack) { ItemStack stack = itemStack.copy(); if(stack.attemptDamageItem(1, random, null)) { stack.shrink(1); stack.setDamage(0); } return stack; } EDIT: And of course set the max damage in your item's properties. (maxDamage)
  21. Listen to LivingDamageEvent or AttackEntityEvent and apply your logic there.
×
×
  • Create New...

Important Information

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