Everything posted by warjort
-
[1.18.2] Method for iterating over blocks belonging to a tag
Datapacks are not loaded during datagen. Datagen is where you generate them. ๐
-
Forge Installer only installs as a Notepad file
https://johann.loefflmann.net/en/software/jarfix/index.html
-
[1.18.2] how to create my own fluid overlay
Forge added support for this in 1.19 (search for rendering) - https://github.com/MinecraftForge/MinecraftForge/issues/8608 I don't think there is anything for this in 1.18.2, but somebody might correct me?
-
Forge Installation Error - "Unable to find valid certification path to requested target"
Make sure you have a recent version of java installed.
-
Game crash on startup 1.18.2 forge 4.1.60
I tried creating a modpack with your versions of forge, create, flywheel and jei. It worked fine for me. I then started adding your mods with create in the name which is how I spotted you were using a beta release. With their latest versions this also worked fine.
-
Game crash on startup 1.18.2 forge 4.1.60
None of your links to pastebin are working. Use a different fle upload site. e.g. http://gist.github.com
-
Game crashing everytime i run my mods
You are trying to use mods for 1.18.2 with 1.18.1
-
Game crash on startup 1.18.2 forge 4.1.60
https://www.curseforge.com/minecraft/mc-mods/createaddition/files That is a beta release and not the latest version. If its not that, you should go through your mods to check you have the latest versions. The problem is likely one of these mods has a dependency on a specific (older) version of create.
-
Held item not working unless switched off of
Like I said, you create one for each player.addEffect()
-
Held item not working unless switched off of
public class CopperizedDiamondSword extends SwordItem{ MobEffectInstance m = new MobEffectInstance(ModEffects.DAMAGE_BOOST_EFFECT.get(),10,3 ); You can't do this. This will try to create the MobEffectInstance when the sword is created. The effect won't be registered yet, they are registered after items. You also want a new MobEffectInstance for every addEffect(). It is this object that keeps track of the time left. You can't share them between players or even different applications of the effect on the same player.
-
Game crash on startup 1.18.2 forge 4.1.60
This is a duplicate.
-
Game crash on startup 1.18.2 forge 4.1.60
Yes you do: Although the I think the latest version of flywheel is 0.6.4? Try redownloading the files. If that doesn't fix it, post the full logs/debug.log. Maybe that will have a clue?
-
Game crash on startup 1.18.2 forge 4.1.60
- 1.18.2 keeps crashing everytime.
Doesn't this work? https://www.curseforge.com/minecraft/mc-mods/architectury-api/files/3855244 If it doesn't, contact the mod author to find out which version of forge is supported.- 1.18.2 keeps crashing everytime.
Missing the architectury mod.- java.lang.NoSuchMethodError [Crash Report]
https://github.com/sp614x/optifine/issues/6974- Held item not working unless switched off of
The following is the basics (it probably contains typos so double check names and values with the Minecraft/Forge source). You create and register the MobEffect like anything else using DeferredRegistry. There is a ForgeRegistries.MOB_EFFECTS. See net.minecraft.world.effect.MobEffects for how it constructs vanilla effects with attribute modifiers. I would guess yours would be very similar to MobEffects.STRENGTH and AttackDamageMobEffect? You will also need a src/main/resources/assets/modid/textures/mob_effect/yourid.png for displaying the status icon to the user and give it a translation in your language file "effect.modid.yourid": "Blah" See the MobEffect class for the callbacks on what behaviour you can override. What you actually add to the entity is a MobEffectInstance, which I suppose most importantly for you defines the duration of the effect.- Held item not working unless switched off of
First: That use of Integer.MAX_VALUE is going to cause an overflow. Use 100 or something for testing. Integer.MAX_VALUE + 1 = negative value But I think the correct way to do what you are doing is via a MobEffect, see LivingEntity.addEffect() Your right click would apply the effect and then the effect would add the modifier. It would also mean the effect is saved with the player so it would survive reloads of the game. You certainly can't change data in your Item. There is only ever 1 instance of that. Stored mutable data for an Item should be in the ItemStack nbt.- How can i send message by my mode?
If you don't figure it for yourself and understand it, how will you know the code is correct? How will you fix bugs when it breaks? We are here to answer questions about forge, not teach you java or fix your code. Here is what you asked for, but how do you know I am correct? ๐ // First navigate to the class you were told to use PlayerList players = chatEvent.getPlayer().server.getPlayerList(); // Now send use the method you were told about players.broadcastSystemMessage(Component.literal("Hello"), ChatType.SYSTEM);- How can i send message by my mode?
https://www.baeldung.com/java-method-in-javadoc#referencing-a-method-in-another-class ClassName#method is the javadoc name for the method ClassName.method() @diesieben07 told you it confuses people who don't write java professionally ๐- Server Crashed when forge started to load
You don't have X11 available so it can't display the GUI. Start the server with the nogui option. It goes after where you have "java -jar forge-xxx.jar"- Held item not working unless switched off of
We can let the original poster clarify what they really want, then continue this "tangent" if it is still relevant.- Held item not working unless switched off of
My understanding is they want to apply a bonus based on which slot the item is in? There's no way for somebody to replicate this logic if they are using say a loot table function to do the override.- invalid paths argument
This isn't curseforge, it's a server installation. Looks like the installation didn't complete properly because this file is missing Reinstalling should fix it. Make sure it tells you the installation completed successfully.- Held item not working unless switched off of
My bad, I read that as a cache when it is as you say an override. The original poster should still use the ItemAttributeModifierEvent, otherwise if somebody does define an override their logic won't be invoked. - 1.18.2 keeps crashing everytime.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.