Jump to content

Saving data to player.dat file


oldcheese

Recommended Posts

Hi.

 

I'm experimenting with making mods, and one of the things I'd really love to do is add a weapon that basically 'saves' to a player. So you pick up a blank weapon, and if player variable X = 2 then it's a sword with 5 damage that sets people on fire. if X = 1 then It's a sword that blinds.

 

So far so good. I made a simple orb that is right clicked to create the weapon depending on X, then changes back if dropped or logged out.  I'm using a simple item that sets a variable to 2 when clicked to test all this, what I CAN'T figure out is how to save a variable to the player!

 

My general guess would be to make a eventhandler for login/logout that would load/save an NBT. but I have no idea how to save a NBT tag to the player.dat file, is there a specific way to save it? sorry if I say dumb stuff my english isn't very good and I can't say what I'm doing very well. but I hope you guys can help on how to save Variable to the player.

Link to comment
Share on other sites

There would be 2 approaches here:

 

Save property to weapon when it's crafted, which is not what you want.

 

Save property to player and check it when you use certain custom item.

 

IEntityExtendedProperties - saving stuff to player in runtime memory AND saving it to disk whenever MC normally saves/loads player.

You won't need packets since everything happens on server side.

 

here tutorial how to do it:

http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-forge-1-6-4-1-8-eventhandler-and

(2nd post)

 

Edit:

Ewe Loon idea is NOT good here, saving and loading uses IO operations (interacting with hard-drive) you DON'T want that. Use IEEP to keep data loaded all the time and save/loaded only when MC does.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Ewe Loon

1. When calling getEntityData() you are getting NBTTagCompound with key of "ForgeData".

Using it is not THAT risky, but if used with too generic key names might cause 2 mods put same key and corrupt data.

 

2. Accessig getEntityData() and getting data in it uses very INEFFICIENT process (byte-reading, comparable to String reading) and shouldn't be ever used beside one-time accessing.

In this thread author pointed out he wants to use data that presists (not pointed out but probably had in mind). It's MUCH better to store IEEP with single value that ise loaded once per construcing and saved once a while (on entity save) than reading it every time server-side wants to use it - e.g damaging enemy.

In more complicated cases, like IEEP being synchronized to client and used in renderer (GUI for e.g) those calls would be made on FPS-timing, on my comp it could get to about 500 calls if not more. Kinda stupid to read NBT 500 times per second, don't you think?

 

And one last thing - I stated: "saving and loading uses IO operations (interacting with hard-drive)", how is this not correct?

Saving NBT uses IO, reading it is just very inefficient.

 

#noHate :)

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

using extended entity properties adds the properties to all entities in the game , this is also inefficient as they all get loaded and saved even if not used

as for 2 mods using the same tag ids , the same can happen with extended entity properties too

 

the differences between the 2 differences is one was added by FORGE and the other was added by MOJANG after forge added their one

 

if you are really worried about efficiency dont use minecraft at all, if you read the code you will see that most of it is inefficiently written anyway

 

>> In more complicated cases, like IEEP being synchronized to client and used renderer (GUI for e.g) those calls would be made on FPS-timing, on my comp it could get to about 500 calls if not more. Kinda stupid to read NBT 500 times per second, don't you think?

 

NBT is a HashMap    Extended Entity Properties are also HashMaps  wow what a difference

 

BOTH methods have pros and cons , dont rubbish one just because you thought of something else

 

Link to comment
Share on other sites

using extended entity properties adds the properties to all entities in the game , this is also inefficient as they all get loaded and saved even if not used

Bullshit. You are the one registering the IEEP instance, you decide exactly which entities you add it to.

sorry, you are correct on this, I thought it was a static hashmap, but it isnt.

 

the differences between the 2 differences is one was added by FORGE and the other was added by MOJANG after forge added their one

Bullshit. Both getEntityData and IEEP are Forge patches. getEntityData saves in a tag called "ForgeData". Definitely added by Mojang.

Both forge, wow, I wouldnt have expected that.

 

if you are really worried about efficiency dont use minecraft at all, if you read the code you will see that most of it is inefficiently written anyway

Bullshit.

I still think there is a lot of inefficient code in it, but what hasn't got that problem these days, my computer is many years old, and still runs it ok, so the inefficiency isn't an issue anyway

 

NBT is a HashMap    Extended Entity Properties are also HashMaps  wow what a difference

NBT is a HashMap that stores each property on it's own as a structure of wrappers (NBTTagInt for integer, etc.). With IEEP you have one HashMap that stores reference to one wrapper object (implementing IEEP) that stores all your data. With that method primitives do not get boxed, etc.

I was referring to efficiency , one you write methods in your class to read and write the values the other its in a separate class, just a different approach

 

BOTH methods have pros and cons , dont rubbish one just because you thought of something else

The only "good" thing about getEntityData is that it is a little bit easier to use if you just store one thing.

That's all.

getEntityData has some builtin error checking, getExtendedProperties() will return null if it wasn't registered to that entity so error checking is necessary.

 

I think its time for this to be closed

 

diesieben07, You're one of the best coders in here, you personally have answered some of the hardest questions i have asked, and pointed me to good resources, keep up the good work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • - Minecraft Crash Report ---- // This doesn't make any sense! Time: 2024-06-16 16:50:19 Description: Ticking entity java.lang.NoSuchMethodError: 'net.minecraft.world.entity.LivingEntity net.minecraftforge.event.entity.living.LivingKnockBackEvent.getEntityLiving()'     at com.charles445.damagetilt.EventHandler.onKnockback(EventHandler.java:30) ~[DamageTilt-1.19-forge-0.1.1.jar%23208!/:1.19-forge-0.1.1] {re:classloading}     at com.charles445.damagetilt.__EventHandler_onKnockback_LivingKnockBackEvent.invoke(.dynamic) ~[DamageTilt-1.19-forge-0.1.1.jar%23208!/:1.19-forge-0.1.1] {re:classloading,pl:eventbus:B}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2385!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2385!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2385!/:?] {}     at net.minecraftforge.common.ForgeHooks.onLivingKnockBack(ForgeHooks.java:331) ~[forge-1.19.2-43.4.0-universal.jar%23248!/:?] {re:classloading}     at net.minecraft.world.entity.LivingEntity.m_147240_(LivingEntity.java:1387) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.LivingEntity.m_6469_(LivingEntity.java:1142) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.animal.axolotl.Axolotl.m_7327_(Axolotl.java:386) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.behavior.MeleeAttack.m_6735_(MeleeAttack.java:50) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.behavior.MeleeAttack.m_6735_(MeleeAttack.java:17) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.behavior.Behavior.m_22554_(Behavior.java:49) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.Brain.m_21957_(Brain.java:516) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.Brain.m_21865_(Brain.java:475) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.animal.axolotl.Axolotl.m_8024_(Axolotl.java:359) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.Mob.m_6140_(Mob.java:733) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.world.entity.LivingEntity.m_8107_(LivingEntity.java:2546) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.Mob.m_8107_(Mob.java:517) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.world.entity.AgeableMob.m_8107_(AgeableMob.java:127) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,re:classloading}     at net.minecraft.world.entity.animal.Animal.m_8107_(Animal.java:53) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,re:classloading,pl:mixin:APP:sanitydim.mixins.json:MixinAnimal,pl:mixin:A}     at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2291) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.Mob.m_8119_(Mob.java:318) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:658) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.world.level.Level.m_46653_(Level.java:457) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:323) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:303) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:866) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at java.lang.Thread.run(Thread.java:833) [?:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Suspected Mod:      DamageTilt (damagetilt), Version: 0.1.1         at TRANSFORMER/[email protected]/com.charles445.damagetilt.EventHandler.onKnockback(EventHandler.java:30) Stacktrace:     at com.charles445.damagetilt.EventHandler.onKnockback(EventHandler.java:30) ~[DamageTilt-1.19-forge-0.1.1.jar%23208!/:1.19-forge-0.1.1] {re:classloading}     at com.charles445.damagetilt.__EventHandler_onKnockback_LivingKnockBackEvent.invoke(.dynamic) ~[DamageTilt-1.19-forge-0.1.1.jar%23208!/:1.19-forge-0.1.1] {re:classloading,pl:eventbus:B}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2385!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2385!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2385!/:?] {}     at net.minecraftforge.common.ForgeHooks.onLivingKnockBack(ForgeHooks.java:331) ~[forge-1.19.2-43.4.0-universal.jar%23248!/:?] {re:classloading}     at net.minecraft.world.entity.LivingEntity.m_147240_(LivingEntity.java:1387) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.LivingEntity.m_6469_(LivingEntity.java:1142) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.animal.axolotl.Axolotl.m_7327_(Axolotl.java:386) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.behavior.MeleeAttack.m_6735_(MeleeAttack.java:50) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.behavior.MeleeAttack.m_6735_(MeleeAttack.java:17) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.behavior.Behavior.m_22554_(Behavior.java:49) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.Brain.m_21957_(Brain.java:516) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.ai.Brain.m_21865_(Brain.java:475) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.animal.axolotl.Axolotl.m_8024_(Axolotl.java:359) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.world.entity.Mob.m_6140_(Mob.java:733) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.world.entity.LivingEntity.m_8107_(LivingEntity.java:2546) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.Mob.m_8107_(Mob.java:517) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.world.entity.AgeableMob.m_8107_(AgeableMob.java:127) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,re:classloading}     at net.minecraft.world.entity.animal.Animal.m_8107_(Animal.java:53) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,re:classloading,pl:mixin:APP:sanitydim.mixins.json:MixinAnimal,pl:mixin:A}     at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2291) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cgm.mixins.json:common.LivingEntityMixin,pl:mixin:APP:tacz.mixins.json:common.LivingEntityMixin,pl:mixin:APP:rottencreatures-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:presencefootsteps.mixin.json:ILivingEntity,pl:mixin:APP:presencefootsteps.mixin.json:MLivingEntity,pl:mixin:A}     at net.minecraft.world.entity.Mob.m_8119_(Mob.java:318) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:658) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.world.level.Level.m_46653_(Level.java:457) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:323) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:303) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A} -- Entity being ticked -- Details:     Entity Type: minecraft:axolotl (net.minecraft.world.entity.animal.axolotl.Axolotl)     Entity ID: 963     Entity Name: Ajolote     Entity's Exact location: 54.92, 48.44, -15.72     Entity's Block location: World: (54,48,-16), Section: (at 6,0,0 in 3,3,-1; chunk contains blocks 48,-64,-16 to 63,319,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,-64,-512 to 511,319,-1)     Entity's Momentum: -0.02, 0.14, 0.24     Entity's Passengers: []     Entity's Vehicle: null Stacktrace:     at net.minecraft.world.level.Level.m_46653_(Level.java:457) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}     at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:323) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading}     at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:303) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:rottencreatures-common.mixins.json:common.ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ServerWorldMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:866) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at java.lang.Thread.run(Thread.java:833) [?:?] {} -- Affected level -- Details:     All players: 1 total; [ServerPlayer['xTheWolfGamingx'/223, l='ServerLevel[Mundo nuevo]', x=-0.76, y=33.00, z=10.07]]     Chunk stats: 2809     Level dimension: minecraft:overworld     Level spawn location: World: (0,103,0), Section: (at 0,7,0 in 0,6,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)     Level time: 424 game time, 424 day time     Level name: Mundo nuevo     Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true     Level weather: Rain time: 103098 (now: false), thunder time: 144079 (now: false)     Known server brands: forge     Level was modded: true     Level storage version: 0x04ABD - Anvil Stacktrace:     at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:866) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[client-1.19.2-20220805.130853-srg.jar%23243!/:?] {re:classloading,pl:accesstransformer:B}     at java.lang.Thread.run(Thread.java:833) [?:?] {} -- System Details -- Details:     Minecraft Version: 1.19.2     Minecraft Version ID: 1.19.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 17.0.8, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 830277512 bytes (791 MiB) / 2818572288 bytes (2688 MiB) up to 10737418240 bytes (10240 MiB)     CPUs: 12     Processor Vendor: AuthenticAMD     Processor Name: AMD Ryzen 5 2600 Six-Core Processor                 Identifier: AuthenticAMD Family 23 Model 8 Stepping 2     Microarchitecture: Zen+     Frequency (GHz): 3.39     Number of physical packages: 1     Number of physical CPUs: 6     Number of logical CPUs: 12     Graphics card #0 name: Radeon RX 590 Series     Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x67df     Graphics card #0 versionInfo: DriverVersion=31.0.21912.14     Memory slot #0 capacity (MB): 8192.00     Memory slot #0 clockSpeed (GHz): 2.13     Memory slot #0 type: DDR4     Memory slot #1 capacity (MB): 8192.00     Memory slot #1 clockSpeed (GHz): 2.13     Memory slot #1 type: DDR4     Virtual memory max (MB): 24486.16     Virtual memory used (MB): 15299.95     Swap memory total (MB): 8192.00     Swap memory used (MB): 188.92     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx10G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Server Running: true     Player Count: 1 / 8; [ServerPlayer['xTheWolfGamingx'/223, l='ServerLevel[Mundo nuevo]', x=-0.76, y=33.00, z=10.07]]     Data Packs: vanilla, mod:campsite_structures, mod:ambientsounds (incompatible), mod:mutantmonsters (incompatible), mod:cgm (incompatible), mod:fallout_inspired_power_armor, mod:simpleshops (incompatible), mod:hunting_delight, mod:creativecore (incompatible), mod:ava, mod:bunker_down, mod:tacz (incompatible), mod:satako, mod:taccraft, mod:rottencreatures (incompatible), mod:sound_physics_remastered (incompatible), mod:marbledsarsenal, mod:mobsunscreen, mod:ags_hud_texts, mod:scorchedguns, mod:enhancedvisuals (incompatible), mod:securitycraft, mod:marbledsapi, mod:horror_element_mod, mod:zombieawareness (incompatible), mod:yungsapi, mod:additionalguns, mod:lostcities (incompatible), mod:damageindicator (incompatible), mod:projectarsenal, mod:demogorgon, mod:coroutil (incompatible), mod:simpleplanes (incompatible), mod:kevin_trophy, mod:wegotrunnners, mod:automobility (incompatible), mod:damagetilt (incompatible), mod:puzzleslib (incompatible), mod:k_turrets, mod:framework (incompatible), mod:firstaid (incompatible), mod:forge, mod:travelerstitles, mod:horde_hoard, mod:ags_day_counter, mod:geckolib3 (incompatible), mod:sanitydim, mod:presencefootsteps     World Generation: Experimental     Type: Integrated Server (map_client.txt)     Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge'     Launched Version: 1.19.2-forge-43.4.0     ModLauncher: 10.0.8+10.0.8+main.0ef7e830     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:          mixin-0.8.5.jar mixin PLUGINSERVICE          eventbus-6.0.3.jar eventbus PLUGINSERVICE          fmlloader-1.19.2-43.4.0.jar slf4jfixer PLUGINSERVICE          fmlloader-1.19.2-43.4.0.jar object_holder_definalize PLUGINSERVICE          fmlloader-1.19.2-43.4.0.jar runtime_enum_extender PLUGINSERVICE          fmlloader-1.19.2-43.4.0.jar capability_token_subclass PLUGINSERVICE          accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE          fmlloader-1.19.2-43.4.0.jar runtimedistcleaner PLUGINSERVICE          modlauncher-10.0.8.jar mixin TRANSFORMATIONSERVICE          modlauncher-10.0.8.jar fml TRANSFORMATIONSERVICE      FML Language Providers:          [email protected]         lowcodefml@null         javafml@null     Mod List:          client-1.19.2-20220805.130853-srg.jar             |Minecraft                     |minecraft                     |1.19.2              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         campsite_structures-1.19.2-FORGE-1.0.3.jar        |Campsite Structures           |campsite_structures           |1.0.3               |DONE      |Manifest: NOSIGNATURE         AmbientSounds_FORGE_v5.2.13_mc1.19.2.jar          |Ambient Sounds                |ambientsounds                 |5.2.13              |DONE      |Manifest: NOSIGNATURE         MutantMonsters-v4.0.6-1.19.2-Forge.jar            |Mutant Monsters               |mutantmonsters                |4.0.6               |DONE      |Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a         cgm-forge-1.19.2-1.3.7.jar                        |MrCrayfish's Gun Mod          |cgm                           |1.3.7               |DONE      |Manifest: NOSIGNATURE         (NoStructures)FalloutInspiredPA(1.19.2).jar       |Power armor                   |fallout_inspired_power_armor  |1                   |DONE      |Manifest: NOSIGNATURE         simpleshops-1.2.2.jar                             |Simple Shops                  |simpleshops                   |1.1.4               |DONE      |Manifest: NOSIGNATURE         Hunting_Delight Forge 1.19.2 2.9.9.jar            |Hunting delight               |hunting_delight               |2.9.9               |DONE      |Manifest: NOSIGNATURE         CreativeCore_FORGE_v2.9.4_mc1.19.2.jar            |CreativeCore                  |creativecore                  |2.9.3               |DONE      |Manifest: NOSIGNATURE         ava-1.19.2-2.2.791.jar                            |A.V.A - Alliance of Valiant Ar|ava                           |2.2.791             |DONE      |Manifest: NOSIGNATURE         bunker-down 1-1-4- 1-19-2.jar                     |Bunker Down                   |bunker_down                   |1.1.4               |DONE      |Manifest: NOSIGNATURE         tacz-1.19.2-1.0.0-beta.jar                        |Timeless & Classics Guns: Zero|tacz                          |1.0.0               |DONE      |Manifest: NOSIGNATURE         Satako-6.0.16-1.19.jar                            |Satako                        |satako                        |6.0.16-1.19         |DONE      |Manifest: NOSIGNATURE         TacCraft [Forge 1.19.2] 0.1.jar                   |TacCraft                      |taccraft                      |1.0.0               |DONE      |Manifest: NOSIGNATURE         rottencreatures-forge-1.19.2-1.0.1.jar            |Rotten Creatures              |rottencreatures               |1.0.1               |DONE      |Manifest: NOSIGNATURE         soundphysics-forge-1.19.2-1.0.18.jar              |Sound Physics Remastered      |sound_physics_remastered      |1.19.2-1.0.18       |DONE      |Manifest: NOSIGNATURE         marbledsarsenal-1.19.2-2.1.1.jar                  |Marbled's Arsenal             |marbledsarsenal               |2.1.1               |DONE      |Manifest: NOSIGNATURE         mobsunscreen-forge-1.19.2-3.0.9.jar               |Mob Sunscreen                 |mobsunscreen                  |3.0.9               |DONE      |Manifest: NOSIGNATURE         hud_texts_v1.0_1.19.2_[FORGE].jar                 |Hud Texts                     |ags_hud_texts                 |1.0                 |DONE      |Manifest: NOSIGNATURE         scorchedguns-1.12-1.19.2.jar                      |Scorched Guns                 |scorchedguns                  |0.7.2               |DONE      |Manifest: NOSIGNATURE         EnhancedVisuals_FORGE_v1.5.9_mc1.19.2.jar         |EnhancedVisuals               |enhancedvisuals               |1.5.9               |DONE      |Manifest: NOSIGNATURE         [1.19.2] SecurityCraft v1.9.6.1.jar               |SecurityCraft                 |securitycraft                 |1.9.6.1             |DONE      |Manifest: NOSIGNATURE         marbledsapi-1.19.2-1.0.7.jar                      |Marbled's API                 |marbledsapi                   |1.0.7               |DONE      |Manifest: NOSIGNATURE         Horror_elements_mod_1.5.6_1.19.2.jar              |Horror Element Mod            |horror_element_mod            |1.5.6               |DONE      |Manifest: NOSIGNATURE         zombieawareness-1.19.2-1.12.3.jar                 |Zombie Awareness              |zombieawareness               |1.19.2-1.12.3       |DONE      |Manifest: NOSIGNATURE         YungsApi-1.19.2-Forge-3.8.10.jar                  |YUNG's API                    |yungsapi                      |1.19.2-Forge-3.8.10 |DONE      |Manifest: NOSIGNATURE         additional-guns-0.8.2-1.19.2.jar                  |Additional Guns               |additionalguns                |0.8.2               |DONE      |Manifest: NOSIGNATURE         lostcities-1.19-6.0.29.jar                        |LostCities                    |lostcities                    |1.19-6.0.29         |DONE      |Manifest: NOSIGNATURE         Directional-Damage-Indicator-Mod-Forge-1.19.2.jar |Damage Indicator              |damageindicator               |1.0.0-1.19.2        |DONE      |Manifest: NOSIGNATURE         projectarsenal-0.4.0-1.19.2.jar                   |Project Arsenal               |projectarsenal                |0.4.0               |DONE      |Manifest: NOSIGNATURE         Demogorgon-2.0.1-1.19.2.jar                       |demogorgon                    |demogorgon                    |2.0.1               |DONE      |Manifest: NOSIGNATURE         coroutil-forge-1.19.2-1.3.6.jar                   |CoroUtil                      |coroutil                      |1.19.2-1.3.6        |DONE      |Manifest: NOSIGNATURE         simpleplanes-1.19.2-5.2.2.jar                     |Simple Planes                 |simpleplanes                  |1.19.2-5.2.2        |DONE      |Manifest: NOSIGNATURE         Ryan's Zombies v5.jar                             |Kevin trophy                  |kevin_trophy                  |1.0.0               |DONE      |Manifest: NOSIGNATURE         Wegotrunners0.5.1.19.2.jar                        |wegotrunnners                 |wegotrunnners                 |1.0.0               |DONE      |Manifest: NOSIGNATURE         automobility-0.4.2+1.19.2-forge.jar               |Automobility                  |automobility                  |0.4.2+1.19.2-forge  |DONE      |Manifest: NOSIGNATURE         DamageTilt-1.19-forge-0.1.1.jar                   |DamageTilt                    |damagetilt                    |0.1.1               |DONE      |Manifest: NOSIGNATURE         PuzzlesLib-v4.4.2-1.19.2-Forge.jar                |Puzzles Lib                   |puzzleslib                    |4.4.2               |DONE      |Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a         K-Turrets-2.0.45-1.19.jar                         |K-Turrets                     |k_turrets                     |2.0.45-1.19         |DONE      |Manifest: NOSIGNATURE         framework-forge-1.19.2-0.6.16.jar                 |Framework                     |framework                     |0.6.16              |DONE      |Manifest: 0d:78:5f:44:c0:47:0c:8c:e2:63:a3:04:43:d4:12:7d:b0:7c:35:37:dc:40:b1:c1:98:ec:51:eb:3b:3c:45:99         firstaid-1.12.0.jar                               |First Aid                     |firstaid                      |1.12.0              |DONE      |Manifest: NOSIGNATURE         forge-1.19.2-43.4.0-universal.jar                 |Forge                         |forge                         |43.4.0              |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         TravelersTitles-1.19.2-Forge-3.1.2.jar            |Traveler's Titles             |travelerstitles               |1.19.2-Forge-3.1.2  |DONE      |Manifest: NOSIGNATURE         eh1.3.1-1.19.2.jar                                |Horde Hoard                   |horde_hoard                   |1.1.0               |DONE      |Manifest: NOSIGNATURE         day_counter_v3.4_1.19.2_[FORGE].jar               |Day Counter                   |ags_day_counter               |3.4                 |DONE      |Manifest: NOSIGNATURE         geckolib-forge-1.19-3.1.40.jar                    |GeckoLib                      |geckolib3                     |3.1.40              |DONE      |Manifest: NOSIGNATURE         sanitydim-mc1.19.2-1.1.0.jar                      |Sanity: Descent Into Madness  |sanitydim                     |1.1.0               |DONE      |Manifest: NOSIGNATURE         PresenceFootsteps-1.19.2-1.6.4.1-forge.jar        |Presence Footsteps (Forge)    |presencefootsteps             |1.19.2-1.6.4.1      |DONE      |Manifest: NOSIGNATURE     Crash Report UUID: 0105f2e8-e4d1-4bdb-9b78-814e9fe0e356     FML: 43.4     Forge: net.minecraftforge:43.4.0
    • Its a little late now, but did you fix it? If so, how?
    • I tried to download the waystones mod and whenever i enter the game it gives me: error Loading mods 1 error has occurred during loading Mod file waystones-forge-1.21-21.0.1.jar needs language provider javafl.51 or above to load we have found 50.0.20 I've tried every search i can think of but i still cant seem to find a solution. i don't have much experience with downloading mods on Minecraft java seen that I've only played with mods on Minecraft PE. I've tried re-installing the mod several times and that has not worked.  please please someone help me out 
    • Its when minecraft tries loading patchouli- Im on the correct version of it and everything is up to date
    • I cannot get my custom entities to spawn naturally in the world. They spawn successfully from a spawn egg. I have tried a video and did what they said, but still doesn't work.   I put this in the entity's class: public static boolean canSpawn(EntityType<CarnAchillobator> entityType, ServerLevelAccessor levelAccessor, MobSpawnType mobSpawnType, BlockPos pos, RandomSource randomSource) { return Monster.checkMonsterSpawnRules(entityType, levelAccessor, mobSpawnType, pos, randomSource); }   I this in the main class: @SubscribeEvent public static void registerSpawnPlacementsEvent(@NotNull SpawnPlacementRegisterEvent event) { event.register(ModEntities.ACHILLOBATOR.get(), SpawnPlacements.Type.ON_GROUND, Heightmap.Types.WORLD_SURFACE, CarnAchillobator::canSpawn, SpawnPlacementRegisterEvent.Operation.AND); In the modid/biome_modifier directory, spawn_achillobator.json file: { "type": "forge:add_spawns", "biomes": [ "minecraft:jungle", "minecraft:sparse_jungle", "minecraft:windswept_forest", "minecraft:dark_forest", "minecraft:old_growth_birch_forest" ], "spawners": { "type": "wilddinos:achillobator", "weight": 100, "minCount": 1, "maxCount": 1 } }  
  • Topics

×
×
  • Create New...

Important Information

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