Everything posted by warjort
-
Understanding Abstract Container Menu addDataSlot()
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.
-
Make the player/an entity leashable
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.
-
[SOLVED] 1.19 Enchantments system
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); }
-
[1.18.2] Network error on login
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.
-
Crash report 1.19.2
Issue with the entity_texture_features mod. Check you have the latest version then contact the mod author.
-
Illegal Packet Error on Multiplayer Modded Minecraft
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
-
How do I check neighboring blocks?
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.
-
Block side turns black if side faces solid block
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/
-
Errors in currently selected datapacks prevented the world from loading.
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.
-
Errors in currently selected datapacks prevented the world from loading.
Looks like an issue with the drinkbeer mod.
-
Errors in currently selected datapacks prevented the world from loading.
We have no psychic powers. Post the log.
-
Please help
You are missing the blockui and structurize mods.
-
Please help
Post a link to your debug.log
-
Errors in currently selected datapacks prevented the world from loading.
Issue with the babel mod. Check you have the latest version then contact the mod author.
-
Minecarft mod pack chrashes after going into new creative tab
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.
-
Getting the "LivingEntity"
Reread the answers above. A Mob is a subclass of LivingEntity.
-
org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
Issue with valhelsia core, others have said it is a conflict with optifine.
-
Getting the "LivingEntity"
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.
-
[1.18.2] NBT errors on world close
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.
-
[1.18.2] Spawn any lightning and create a custom one
Don't paraphrase errors. Show the full error message preferably by posting a link to the run/logs/debug.log
-
Forge keeps crashing
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.
-
1.19 Forge Server, Crashes on any player Join.
Issue with the luckperms mod. Check you have the latest version then contact the mod author.
-
[1.19] Can you define an Enum or List for a command argument?
There is an EnumArgument subclass of ArgumentType provided by forge. Never used it myself.
-
Colliding entity with block.
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.
-
My game crashes every time I try to play my modded world.
.
IPS spam blocked by CleanTalk.