Everything posted by warjort
-
The game crashed whilst unexpected error Error: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An une
https://github.com/Asek3/Oculus/issues/257
-
Damage increase only applying once
Look at the implementation of the method you are using. It adds the information to a CompoundTag (a map of name->value) with the key in this case being the attribute name. So any additional "adds" for the same attribute name will just overwrite the previous one. Also, your implementation is complete rubbish. Items are singletons. There is only ever one them. Your hits and swordStage will be shared by all swords in the game and so they will overwrite each others data. Instance data for items should be stored in the ItemStack NBT data like the attribute overrides you are playing with, or enchantments or item damage, etc. Use getOrCreateTagElement(modId) to create your own unique tag on the ItemStack to store this data.
-
[1.19.2] How to find the coordinates of the nearest mob?
If you are posting compiler errors, you are in the wrong forum. You want a "learning java" forum. There are many level.getEntities() methods. It is an overloaded method name. And there are other helper methods that are built on top of these basic methods. Look at how vanilla code uses these methods. e.g. Level.getNearestEntity() defined on the EntityGetter interface
-
Mod (forge): how to add a new block/item in 1.19.3
https://github.com/search?l=Java&q=CreativeModeTabEvent&type=Code
-
[1.19.3] How to change the attackDamage variable?
If its your sword, you pass it into the constructor. Otherwise you can apply attribute modifiers for ATTRIBUTES.ATTACK_DAMAGE on the ItemStack. Either directly or using ItemAttributeModifierEvent
-
forge installer error
Update your java to a recent version.
-
Mod (forge): how to add a new block/item in 1.19.3
Look at CreativeModeTabEvent and its subclasses.
-
minecraft keeps crashing when I join my world and get to 100%
Issue with advancementtrophies. Check you have the latest version then contact the mod author.
-
minecraft keeps crashing when I join my world and get to 100%
https://github.com/Asek3/Oculus/issues/257
-
[1.19.2] How to find the coordinates of the nearest mob?
Level.getEntities()
-
1.18.2 exit code -1
The obfuscate mod is not a 1.18.2 mod.
-
Minecraft Server Crashes When Players Join
Issue with the fluidlogged mod. Check you have the latest version then contact the mod author.
-
minecraft crashes and then says this: The game crashed whilst rendering overlay Error
Install the latest optifine preview release.
-
Forge 1.18.2 exit code 1
You need java 17 for minecraft 1.18.2
-
minecraft modded crash with no crash report 1.19.2
If that really is the full log, post the launcher_log.txt before restarting the launcher. But maybe you have this problem? https://forums.minecraftforge.net/topic/119518-exit-code-1073740940/#comment-524102
-
[1.19.2] Dynamic Block Destroy Time with state
You can override BlockBehaviour.getDestroyProgress(). But in some places it just calls BlockState.getDestroySpeed() which is hardwired to return the value from the block properties. In vanilla it only does this to check for special values like 0 and -1 To really override all uses you would need to override the StateDefinition implementation created by the Block constructor so you can override the BlockState implementation to do your logic. Messy, but doable. An alternative would be submit a PR to forge to add something similar to the explosion method. https://docs.minecraftforge.net/en/latest/forgedev/prguidelines/
-
1.19.2 Create Custom Event Methods
They work by magic. Or maybe not. 🙂 They work because somebody calls them from the relevant place in the code. I gave you the answer above. Pseudo code: public static void livingHurt(LivingHurtEvent event) { if (event.damageSource() == DamageSource.LIGHTNING_BOLT && event.getEntity() instanceof Player player && player.getItemInHand(MAIN_HAND).getItem() instanceof AxeItemEx axeItemEx ) { axeItemEx.onHurtByLightning(player, event.getAmount()); } }
-
Missing textures and unloadable models
From 1.19.3 textures need to be in textures/block and textures/item. See Mojang's release notes.
-
crash with no indication of mod, could anyone help me out?
Check you have the latest version then contact the mod author.
-
Player data saving, but not world...
I would think you fix it the same way as you fixed it last time. Either reinstall the mod that has the POI (point of interest) or edit the save to remove this data. This time it is inside the chunk data. I believe POIs have their own directory? https://minecraft.fandom.com/wiki/Java_Edition_level_format#poi_format
-
1.19.2 Create Custom Event Methods
LivingHurtEvent The DamageSource will be LIGHTNING_BOLT I have no idea how your Axe relates to this. Maybe LivingEntity.getItemInHand() ?
-
Player data saving, but not world...
It says it can't find a village "Point of Interest". I would guess this is related to those world gen mods you removed and were having problems with in your previous thread?
-
Description: Exception in server tick loop
Your latest crash shows you using broken client side only mods on the server like "not enough animations" and "entity culling". They are broken because they are trying to load client side GUI classes on the server where they don't exist. Remove these from the server, you don't need them there.
-
Description: Exception in server tick loop
When you have a crash in a mixin like you have, look for the final "caused by" then look for mod names.
-
Description: Exception in server tick loop
Conflict between immersive portals and krypton. Check you have the latest versions then contact the mod authors.