Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

warjort

Members
  • Joined

  • Last visited

Everything posted by warjort

  1. https://forums.minecraftforge.net/topic/117477-119-how-to-access-blockentity-data-from-containerscreen/ for sending data and accessing block entity data in a container menu/screen for the client. It is not done by default as it would be useless work if it wasn't used. You can only use DataSlots for integers. e.g. the furnace does this for burn/cook time progress and duration, or the lectern does it for the page number. This only sends the data to the client if you open a container so it is more efficient, but less flexible. See those vanilla examples for how to do it. e.g. look at how LecternBlockEntity.dataAccess and LecternMenu.lecternData are used.
  2. You should never "bump". You should ask yourself why nobody is responding. In this case, you don't have an answerable question. We aren't going to design or write your mod for you. Nor teach you mechanics or vector calculus. If you have a specific question about forge or minecraft then feel to ask. But first try to implement your mod, then when you hit a roadblock post a question that is based on specifics. Not the "it doesn't work" style of information you posted above.
  3. Override the enchantment policy methods in your Item class. e.g. something like (untested code) @Override public int getEnchantmentValue(ItemStack stack) { return 1; } @Override public boolean canApplyAtEnchantingTable(ItemStack stack, Enchantment enchantment) { if (enchantment.category == EnchantmentCategory.FISHING_ROD) { return true; } return super.canApplyAtEnchantingTable(stack, enchantment); }
  4. The error says there is something wrong with your codec. Usually, it's a mismatch between the encode/decode methods, such as forgetting to read/write a field in one of them. Or doing the fields in a different order. For you it is trying to decode a string which is sent over the network in UTF format. But it is not valid UTF in that part of the buffer when it comes to reading it. So it's probably not your expected string. You can either add a breakpoint at the UTFDataFormatException constructor to see what the problem is, or enable debug logging for Mojang's network code so you can see the full stacktrace: https://forums.minecraftforge.net/topic/117870-illegal-packet-error-on-multiplayer-modded-minecraft you would need to add the property to your run configurations in the build.gradle or your IDE's run configurations.
  5. Issue with the entity_texture_features mod. Check you have the latest version then contact the mod author.
  6. One of your mods has broken networking code. Mojang don't put these errors in the log by default. For us to see the error you will need to add the following property to your jvm arguments. Since it looks you are using curseforge this in their minecraft settings. Beneath where you change the memory used. For the server you change user_jvm_args.txt But I also noticed you have hexerei. There is a known issue with the 1.19 version not working properly in multiplayer. https://github.com/JoeFoxe/Hexerei-1.18/issues/56
  7. If it is a fixed pattern, look at how the CarvedPumpkinBlock detects if it should spawn golems using the BlockPattern class. Or another way is how BaseFireBlock detects a "nether" portal.
  8. I don't know about the model you are using, but for the vanilla models this is function of the shapes defined in your block class (not just the model). If you have a full face in your shapes it will stop light entering the block to internal faces. Here's a thread where I try to explain it from my limited understanding. I am far from an expert on minecraft's lighting code. 🙂 https://forums.minecraftforge.net/topic/115059-1191-unable-to-create-a-non-opaque-block/
  9. Issue with sky villages. You should add/test mods individually instead of dumping a large number of random mods in your mods folder and then expecting us to fix it for you.
  10. You are missing the blockui and structurize mods.
  11. Post a link to your debug.log
  12. Issue with the babel mod. Check you have the latest version then contact the mod author.
  13. You still don't show your debug.log It looks like an issue with sophisticated backpacks. Check you have the latest version of this mod then contact the mod author. Check the sophisticated core mod as well since that is also mentioned.
  14. Reread the answers above. A Mob is a subclass of LivingEntity.
  15. Override onAddedToWorld() in your Entity class it's a method added by forge from the IForgeEntity interface. Pay attention to what the javadoc says about calling super.
  16. Look in the code for AbstractArrow.addAdditionalSaveData() There's only 1 place where it does Registry.getKey() and that's for the soundEvent. So it basically says your SoundEvent isn't registered. The reason for this is probably because you override getDefaultHitGroundSoundEvent() to return null. That method is used in instance initialisation.
  17. Don't paraphrase errors. Show the full error message preferably by posting a link to the run/logs/debug.log
  18. You have 1.18 mods in your mods folder when trying to run minecraft 1.19.2 I can see caelus, origins and voicechat by looking at the file names.
  19. Issue with the luckperms mod. Check you have the latest version then contact the mod author.
  20. There is an EnumArgument subclass of ArgumentType provided by forge. Never used it myself.
  21. It's groundhog day 🙂 https://forums.minecraftforge.net/topic/117788-my-game-crashes-every-time-i-try-to-play-my-modded-world/#comment-518564 Same error you reported yesterday.

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.