Everything posted by warjort
-
Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:
Use an excludes in your jar task configuration to ignore .DS_Store files. https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:excludes I am surprised gradle doesn't automatically exclude them?
-
[1.19]How to get Player Spawnlocation
err... ๐ ServerPlayer.getRespawnPosition() but you will also need ServerPlayer.getRespawnDimension()
-
[1.19] Custom Minecart
Didn't exist in 1.18.2 it was hardcoded. See the 1.19 release notes for the change: https://feedback.minecraft.net/hc/en-us/articles/6731464524941-Minecraft-Java-Edition-1-19
-
Requesting An Example of the code of a Custom Projectile
NOTE: I wrote "? extends ProjectileCopy" in case you want a subclass in future, otherwise it can just be ProjectileCopy.
-
Requesting An Example of the code of a Custom Projectile
The other constructor that takes a Llama as a parameter, you obviously don't need. Unless you want to do something similar to Llama.spit() but then it won't be a Llama for your projectile.
-
Requesting An Example of the code of a Custom Projectile
First, please don't post code in images. Either paste the code snippets using the <> option or put your code on github if it is large. Your question is a misunderstanding of lambdas again, like with the BlockEntity problem you had. But this time with generics. Your constructor needs to mention the actual entity class as the generic parameter, not Entity. public class ProjectileCopy extends Projectile { public ProjectileCopy(EntityType<? extends ProjectileCopy> entityType, Level level) {
-
[1.19] Custom painting not showing up in the rotation
This change is documented here (search for paintings): https://feedback.minecraft.net/hc/en-us/articles/6731464524941-Minecraft-Java-Edition-1-19
-
[1.19] Custom painting not showing up in the rotation
You need to add your painting(s) to the painting_variant placeable tag Add the following tag file to your mod: src/main/resources/data/minecraft/tags/painting_variant/placeable.json with the contents (check I have this correct). { "values": [ "mass_effects_mod:bcs_painting", "mass_effects_mod:bcs" ] } You can also create this file using datagen if you want. https://forge.gemwire.uk/wiki/Datageneration
-
[1.18.2] Get world data file path
There are some "hidden" limits which you might hit. e.g. StringTag.write() uses DataOutput.writeUTF() which has this in its javadoc
-
Requesting An Example of the code of a Custom Projectile
Projectiles are just special Entities that extend the Projectile class or one of its subclasses like AbstractArrow. So tutorials for creating entities will get you a lot of the way there. e.g. registering your EntityType and EntityRenderer For the actual implementation, look at one of the vanilla projectiles or a mod that does something close to what you want.
-
[Version 1.19] Add custom (sound) setting to Minecraft's GUI pause menu
The SoundOptionsScreen will show you how to code the Slider. To actually modify the screen you will need to register for forge's ScreenEvent(s) in your FMLClientSetup. For example, you can respond to the Init.Post event by checking if it is the PauseScreen then adding your slider. Your problems are probably going to be: * Some other mod does the same thing and you end up drawing over each other * Somebody runs the game in large gui mode and your slider doesn't fit on the screen So you may want to be intelligent about where you add your slider, based on for example what widgets are actually on the screen.
-
1.18.2 Errors in currently selected datapacks prevented world from loading
Your actual error is This is a Mojang DataFix that looks to be related to changes made in 1.18.2 to support the new feature: https://www.minecraft.net/en-us/article/minecraft-java-edition-1-18-2 So there is probably something about the modded structures in your world save from 1.18.1 that does not follow the vanilla format and so can't be fixed. There would have been no standard format for this before the feature was added in 1.18.2 There is also these warnings: The only thing I can suggest is to identify your worldgen mods that add structures and talk to the mod authors. They may have a solution to this problem?
-
Custom Fire Producing Particles When It Breaks
I am not sure what you are describing? There are particle effects produced while the fire is burning. I don't see any when the block is destroyed? There is a Level.levelEvent() for event 1009 in BaseFireBlock.playerWillDestroy() which ends up in LevelRenderer.levelEvent() that plays the fire extinguish sound(s). A word of warning. You should be careful with this kind of thing. Not everything is OOP. e.g. search the codebase for references to (Base)FireBlock or Material.FIRE and you will find old legacy hardcoding. There is also the more modern BlockTags.FIRE, which I guess you want to add your block to.
-
Edit Forge Loading Screen with ModCode in 1.18.1
You can find many mods that do this on curseforge, an example search: https://www.curseforge.com/minecraft/mc-mods/search?search=loading+screen "loading screen" can mean loading a world or loading the game, so make sure you have one that does what you want.
-
[1.19.1] Summon entity on client only
Nope sorry, I a think I am confusing two different things. The code to draw the hitbox is in LevelRenderer.renderHitOutline.
-
[1.19.1] Summon entity on client only
Doesn't that only get used to custom draw the "hitbox" of the block the player is looking at? @diesieben07 Now I know why you didn't want people using the old gui overlay event, it's all changed in the latest version. ๐ I would say you want to register for RenderGuiEvent.Pre to make sure you are drawing before the HUD gets displayed. Then do something similar to the vanilla hitbox code in ScreenEffectRenderer.renderScreenEffect(), the renderTex() code. Except instead of using getOverlayBlock(Player), you use your block's BlockState and BlockPos.
-
[1.18.2] Custom Crafting Table
I am not really following what you are asking? Let me "guess". You have a custom recipe, but you also want to reference "standard patterns". By standard patterns do you mean ShapelessRecipe and ShapedRecipe used by the vanilla crafting station? If you want to understand how the vanilla crafting table works look at vanilla's CraftingMenu, CraftingScreen and their related classes. In particular CraftingMenu.slotChangedCraftingGrid() is where it uses the RecipeManager to locate recipes of RecipeType.CRAFTING
-
Forge 1.19-41.0.85 Loading Error
Correct, you have the latest ellemes (2.0.2) but it is that mod that has an error: Report it to the author
-
how to fix failed to download version manifest, can not find server jar url.?
This might not fix it, but your java version is old - Oracle 1.8.0_51, even the latest java 8 from Oracle is 1.8.0_331 But you are going to need java 17 to run minecraft anyway, so might as well update.
-
You should try our sister game, Minceraft! : when I try and go into a creative singleplayer world, I can join my server perfect.
You have appleskin for 1.19 which won't work with 1.18
-
1.18.2 Forge crashes with no mods
That should work according the user on the other thread, but you better asking curseforge. Only they know how their software works.
-
1.16.5 should be a LTS version
Are you going to pay for the extra people to do this? If not, do you think it is fair to divert effort from the more recent versions to support your version? forge-1.16.x has been supported for about 22 months, which is nearly twice as long as Mojang supported the vanilla version. Try getting Mojang to fix a bug in 1.16.5 that isn't a security issue. ๐ NOTE: I am not associated with forge and played no part in this decision. The above is just my opinion based on my experience with how limited resources get deployed in software projects.
-
1.18.2 Forge crashes with no mods
This is a curseforge bug. See: https://forums.minecraftforge.net/topic/113178-better-minecraft-forge-125-exit-code-1/
-
Mods Not Visible Ingame? 1.19
One thing you can try is to add your mods one-by-one to the mods folder to locate which mod is causing the problem.
-
Mods Not Visible Ingame? 1.19
It is finding your mods, e.g. You have an error, but that log you posted doesn't show any errors. Are you sure it is complete? Compare the bottom of your actual log file with what is at the bottom of what you posted.
IPS spam blocked by CleanTalk.