Jump to content

[SOLVED] [1.15.2] Storing inventory contents to capability


Novârch

Recommended Posts

I've been trying to make a "time revert" effect lately, where you would set a checkpoint at one time and then be able to go back to it. This of course requires lots of things to be saved (broken blocks, placed blocks, entity positions, game time, etc.), things like broken and placed blocks have been easy, but I'm having trouble with player inventories. The half-baked system I thought up was giving all the ItemStacks in a player's inventory a special variable in a capability and then to delete all items that don't have that variable at a certain value, this works poorly though, items don't revert durability and stackable items can be destroyed if manually stacked. Is there a way I can save every player's inventory contents into a capability to be able to revert to that? I'd really appreciate some ideas.

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

Link to comment
Share on other sites

What I can think of is to use ItemStack.write() to write the stack into the compound, and then use CompoundNBT.put() to save the compound that contains the info of the itemstack. In this way every single compound will have an itemstack, store in that given compound.

This is what I do to save a list of BlockPos

private void writeBlockPosWithDirectionList(CompoundNBT compound, String key, HashSet<Connection> targetList, boolean direction)
{
    CompoundNBT subCompound = new CompoundNBT();
    ArrayList<Integer> x = new ArrayList<>();
    ArrayList<Integer> y = new ArrayList<>();
    ArrayList<Integer> z = new ArrayList<>();
    ArrayList<Integer> d = new ArrayList<>();
    targetList.forEach((connection) -> {
        BlockPos blockPos = connection.blockPos;
        x.add(blockPos.getX());
        y.add(blockPos.getY());
        z.add(blockPos.getZ());
        if (direction)
            d.add(connection.direction.getIndex());
    });
    subCompound.putIntArray("x", x);
    subCompound.putIntArray("y", y);
    subCompound.putIntArray("z", z);
    if (direction)
        subCompound.putIntArray("d", d);
    compound.put(key, subCompound);
}

read

private HashSet<Connection> readBlockPosWithDirectionList(CompoundNBT compound, String key)
{
    HashSet<Connection> connections = new HashSet<>();
    CompoundNBT subCompound = compound.getCompound(key);
    int[] x = subCompound.getIntArray("x");
    int[] y = subCompound.getIntArray("y");
    int[] z = subCompound.getIntArray("z");
    int[] d = subCompound.getIntArray("d");
    for (int i=0;i<subCompound.getIntArray("x").length;i++)
        connections.add(new Connection(new BlockPos(x[i], y[i], z[i]), Direction.byIndex(d[i])));
    return connections;
}
Edited by poopoodice
Link to comment
Share on other sites

8 hours ago, poopoodice said:

What I can think of is to use ItemStack.write() to write the stack into the compound, and then use CompoundNBT.put()

Thank you! I've gone ahead and used that and setup a capability, I also took a look at the read write methods inside PlayerInventory. The issue now is that for some reason the inventory in the capability is syncing with the player's inventory, so it isn't reverting like it should. Can you see anything I missed here that could cause that, the issue seems pretty much impossible.

 

Edit: Forgot to include a link to the class, here.

Edit 2: It seems that it removes new items but doesn't bring back old ones? Weird.

Edit 3: It also seems the items added to the player's inventory are ghost items and disappear when dropped. I'm stupid and didn't check World#isRemote.

Edited by Novârch

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

Link to comment
Share on other sites

I'm pretty sure you are interacting directly with the player inventory

https://github.com/Novarch129/JoJo-s-Bizarre-Survival/blob/1.15.x/src/main/java/io/github/novarch129/jojomod/capability/StandPlayerEffects.java#L26

Instead you should copy the inventory of the player in order to save it, for example ArrayList<ItemStack>, and use ItemStack.copy

Edited by poopoodice
Link to comment
Share on other sites

11 hours ago, poopoodice said:

Instead you should copy the inventory of the player in order to save it, for example ArrayList<ItemStack>, and use ItemStack.copy

I'm doing that now, I've updated the repo with the new code so you can just use the same links. The same issue still occurs though, if I throw an item it will not re-appear in my inventory, but if I manually delete it using creative mode it will.

 

Edit: I have confirmed the issue is linked to tossing the item, if I toss the item no matter what I do the item will be erased. I don't understand why the list in the capability updates.

Edited by Novârch

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

Link to comment
Share on other sites

3 hours ago, Novârch said:

I'm doing that now, I've updated the repo with the new code so you can just use the same links. The same issue still occurs though, if I throw an item it will not re-appear in my inventory, but if I manually delete it using creative mode it will.

 

Edit: I have confirmed the issue is linked to tossing the item, if I toss the item no matter what I do the item will be erased. I don't understand why the list in the capability updates.

When you toss an item the itemstack is modified, and since you only pass a reference of the player itemstacks to your capability, those itemstacks will also shrink. Copy the stacks with .copy() in your detonate method when you save the itemstacks to create new identical itemstacks instead. However this also means that you can now duplicate items by saving, tossing items, and revert, since you will get your items back, and still have the old items on the ground.

 

P.S. Interesting mod :)

  • Like 1
Link to comment
Share on other sites

4 hours ago, vemerion said:

When you toss an item the itemstack is modified, and since you only pass a reference of the player itemstacks to your capability, those itemstacks will also shrink. Copy the stacks with .copy()

That's exactly what I was looking for! Thank you!

  • Like 1

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

Link to comment
Share on other sites

  • Novârch changed the title to [SOLVED] [1.15.2] Storing inventory contents to capability

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • just got some awesome news from one of the mod authors I waiting on to fix an issue with there mod, and they told me that the issue I was experiencing had been fixed in the latest update. went to update the mod and several others that had apparently had updates and when I launched it, it got down to creating the overworld pipeline and then crashed and gave me an hs error report and such but Im also including the usually logs that ya'll require as well. I honestly have no idea whats causing it. using mc 1.19.2 forge version 43.2.11 Modpack: Minecolonies: Dimensional Adventure launcher_log hs_err_pid3760.log debug.log latest.log
    • Here's the crash log     [14:46:15] [main/INFO]: ModLauncher running: args [--username, Aegia, --version, forge-43.2.0, --gameDir, C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test, --assetsDir, C:\Users\nhock\Twitch\Minecraft\Install\assets, --assetIndex, 1.19, --uuid, 104402799c574480915e19487e68b040, --accessToken, ????????, --clientId, ZGYwN2RlNDYtMjI0Mi00NjhjLWE3MmUtYTdmNDg4ZTg4YzA1, --xuid, 2535417184517646, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 43.2.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [14:46:15] [main/INFO]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.3 by Microsoft; OS Windows 10 arch amd64 version 10.0 [14:46:16] [main/INFO]: OptiFineTransformationService.onLoad [14:46:16] [main/INFO]: OptiFine ZIP file URL: union:/C:/Users/nhock/Twitch/Minecraft/Instances/RPG%20Test/mods/OptiFine_1.19.2_HD_U_I1%20(2).jar%23231!/ [14:46:16] [main/INFO]: OptiFine ZIP file: C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods\OptiFine_1.19.2_HD_U_I1 (2).jar [14:46:16] [main/INFO]: Target.PRE_CLASS is available [14:46:16] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/nhock/Twitch/Minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2397!/ Service=ModLauncher Env=CLIENT [14:46:16] [main/INFO]: OptiFineTransformationService.initialize [14:46:17] [main/INFO]: Found mod file [1.19.2-forge]-Epic-Knights-7.11.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file alcocraftplus-1.19.2-forge-1.0.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Alexs+Armoury+v1.4.1-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file alexsmobs-1.21.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Animalistic_mod_1.2.0_1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Aquaculture-1.19.2-2.4.8.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file archers_paradox-1.19.2-4.2.0.13.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file BetterAnimationsCollection-v4.0.5-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file bettercombat-forge-1.7.1+1.19.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file bettervillage-forge-1.19.2-3.1.0 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file born_in_chaos_[Forge]1.19.2_1.5.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file citadel-2.1.4-1.19.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file cloakanddagger-1.3.5 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file combatroll-forge-1.1.5+1.19.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file comforts-forge-6.0.5+1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file CosmeticArmorReworked-1.19.2-v1a.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file curios-forge-1.19.2-5.1.4.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file CutAndSlash+v0.41.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Decorative+Blocks-forge-1.19.2-3.0.0.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file DistantHorizons-1.6.9a-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Divine+Weaponry+V1.2+1.19.2 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file DMC-Weapons-Reborn-1.19.2-1.3.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file domesticationinnovation-1.6.1-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file dragonmounts-1.19.2-1.1.4a.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file DungeonCrawl-1.19-2.3.12.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file dungeons-and-taverns-2.0.2+forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file DungeonsArise-1.19.2-2.1.55-beta.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file effective_fg-1.3.4.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file endrem_forge-5.2.1-R-1.19.X.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file EnemyExpansion1.13-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Enhanced_Celestials-forge-1.19.2-2.1.0.5.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file epicsamurai-0.0.8.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file fantasyfurniture-1.19.2-6.7.0.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file footwork-2.6.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file ftb-quests-forge-1902.4.16-build.235.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file geckolib-forge-1.19-3.1.40 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file geckolib-forge-1.19-3.1.40.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Gobber2-Forge-1.19.2-2.7.28.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file guardvillagers-1.19.2-1.5.5.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file hats-and-cosmetics-1.4-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file hearth_and_home-forge-1.19.2-1.0.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file humancompanions-1.19.2-1.7.4.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file illageandspillage-1.19.2-1.2.4.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file JetAndEliasArmors1.4.1-1.19.2 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file KnightQuest1.2.6.Patch.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file L_Enders_Cataclysm-0.84-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file meetyourfight-1.19.2-1.3.3.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file mmoparties-2.4.4.1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Monster_Hunter_MC'Legacy_mod.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file MouseTweaks-forge-mc1.19-2.23.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Paraglider-1.19.2-1.7.0.5 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file ParCool-1.19.2-3.0.1.0-R.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file PickUpNotifier-v4.2.4-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file PuzzlesLib-v4.4.0-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file RegionsUnexploredForge-0.4.1_1+1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file relics-1.19.2-0.4.6.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file RPG_style_more_weapons_4.7.5.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file ShoulderSurfing-Forge-1.19.2-2.3.2 (1).jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file signpost-1.19.2-2.01.0.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file simplyswords-forge-1.47.0-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file soundphysics-forge-1.19.2-1.0.18.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file sprout-1.4.4-forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file starterkit-1.19.2-5.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Swashbucklers+2.5+1.19.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file tlc_forge-1.0.2-R-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file TravelersBackpack-1.19.2-8.2.25.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file untamedwilds-1.19.2-3.0.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file valhelsia_core-forge-1.19.2-0.5.0.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file valhelsia_structures-forge-1.19.2-1.0.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file visuality-forge-2.0+forge-mc1.19.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file VisualWorkbench-v4.2.4-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Wabi-Sabi-Structures-1.1.1-Forge.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file wardance-1.1.2.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file waystones-forge-1.19.2-11.4.0.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file weaponmaster-multi-forge-1.19.x-3.0.3.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file WWOO-FORGE-3.1.9+1.19.x.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file Xaeros_Minimap_23.4.4_Forge_1.19.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/INFO]: Found mod file XaerosWorldMap_1.30.3_Forge_1.19.1.jar of type MOD with provider {mods folder locator at C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test\mods} [14:46:17] [main/WARN]: Mod file C:\Users\nhock\Twitch\Minecraft\Install\libraries\net\minecraftforge\fmlcore\1.19.2-43.2.0\fmlcore-1.19.2-43.2.0.jar is missing mods.toml file [14:46:17] [main/WARN]: Mod file C:\Users\nhock\Twitch\Minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.19.2-43.2.0\javafmllanguage-1.19.2-43.2.0.jar is missing mods.toml file [14:46:17] [main/WARN]: Mod file C:\Users\nhock\Twitch\Minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.19.2-43.2.0\lowcodelanguage-1.19.2-43.2.0.jar is missing mods.toml file [14:46:17] [main/WARN]: Mod file C:\Users\nhock\Twitch\Minecraft\Install\libraries\net\minecraftforge\mclanguage\1.19.2-43.2.0\mclanguage-1.19.2-43.2.0.jar is missing mods.toml file [14:46:17] [main/INFO]: Found mod file fmlcore-1.19.2-43.2.0.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@5d58c727 [14:46:17] [main/INFO]: Found mod file javafmllanguage-1.19.2-43.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@5d58c727 [14:46:17] [main/INFO]: Found mod file lowcodelanguage-1.19.2-43.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@5d58c727 [14:46:17] [main/INFO]: Found mod file mclanguage-1.19.2-43.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@5d58c727 [14:46:17] [main/INFO]: Found mod file client-1.19.2-20220805.130853-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@5d58c727 [14:46:17] [main/INFO]: Found mod file forge-1.19.2-43.2.0-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@5d58c727 [14:46:17] [main/INFO]: Found 7 dependencies adding them to mods collection [14:46:17] [main/INFO]: Found mod file mixinextras-forge-0.2.0-beta.6.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/INFO]: Found mod file jankson-1.2.1.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/INFO]: Found mod file MixinExtras-0.2.0-beta.6.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/INFO]: Found mod file commonality-1.19.2-4.2.1.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/INFO]: Found mod file Registrate-MC1.19-1.1.5.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/INFO]: Found mod file apexcore-1.19.2-7.3.1.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/INFO]: Found mod file spectrelib-forge-0.12.4+1.19.2.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@44de94c3 [14:46:17] [main/ERROR]: Missing or unsupported mandatory dependencies:     Mod ID: 'collective', Requested by: 'starterkit', Expected range: '[6.49,)', Actual version: '[MISSING]'     Mod ID: 'terrablender', Requested by: 'regions_unexplored', Expected range: '[2.0.1.128,)', Actual version: '[MISSING]'     Mod ID: 'libraryferret', Requested by: 'bettervillage', Expected range: '[4.0.0,)', Actual version: '[MISSING]'     Mod ID: 'architectury', Requested by: 'ftbquests', Expected range: '[6.3.49,)', Actual version: '[MISSING]'     Mod ID: 'valhelsia_furniture', Requested by: 'valhelsia_structures', Expected range: '[1.19.2-1.0.0,)', Actual version: '[MISSING]'     Mod ID: 'cloth_config', Requested by: 'combatroll', Expected range: '[8.0.0,)', Actual version: '[MISSING]'     Mod ID: 'ftblibrary', Requested by: 'ftbquests', Expected range: '[1902.3.19-build.214,)', Actual version: '[MISSING]'     Mod ID: 'architectury', Requested by: 'magistuarmory', Expected range: '[6.2.43,)', Actual version: '[MISSING]'     Mod ID: 'architectury', Requested by: 'simplyswords', Expected range: '[5.12.42,)', Actual version: '[MISSING]'     Mod ID: 'ftbteams', Requested by: 'ftbquests', Expected range: '[1902.2.9-build.61,)', Actual version: '[MISSING]'     Mod ID: 'cloth_config', Requested by: 'bettercombat', Expected range: '[8.0.0,)', Actual version: '[MISSING]'     Mod ID: 'playeranimator', Requested by: 'combatroll', Expected range: '[0.3.5,)', Actual version: '[MISSING]'     Mod ID: 'cofh_core', Requested by: 'archers_paradox', Expected range: '[10.2,10.3]', Actual version: '[MISSING]'     Mod ID: 'itemfilters', Requested by: 'ftbquests', Expected range: '[1902.2.9-build.46,)', Actual version: '[MISSING]'     Mod ID: 'playeranimator', Requested by: 'bettercombat', Expected range: '[0.9.9,)', Actual version: '[MISSING]'     Mod ID: 'balm', Requested by: 'waystones', Expected range: '[4.1.0,)', Actual version: '[MISSING]'     Mod ID: 'corgilib', Requested by: 'enhancedcelestials', Expected range: '[1.0.0.22,)', Actual version: '[MISSING]'     Mod ID: 'cloth_config', Requested by: 'magistuarmory', Expected range: '[8.2.88,)', Actual version: '[MISSING]' [14:46:17] [main/INFO]: OptiFineTransformationService.transformers [14:46:17] [main/INFO]: Targets: 386 [14:46:18] [main/INFO]: additionalClassesLocator: [optifine., net.optifine.] [14:46:19] [main/INFO]: Compatibility level set to JAVA_17 [14:46:19] [main/ERROR]: Mixin config epicsamurai.mixins.json does not specify "minVersion" property [14:46:19] [main/ERROR]: Mixin config sprout.mixins.json does not specify "minVersion" property [14:46:19] [main/INFO]: Successfully loaded Mixin Connector [com.sonicether.soundphysics.MixinConnector] [14:46:19] [main/INFO]: Successfully loaded Mixin Connector [tictim.paraglider.MixinConnector] [14:46:19] [main/INFO]: Launching target 'forgeclient' with arguments [--version, forge-43.2.0, --gameDir, C:\Users\nhock\Twitch\Minecraft\Instances\RPG Test, --assetsDir, C:\Users\nhock\Twitch\Minecraft\Install\assets, --uuid, 104402799c574480915e19487e68b040, --username, Aegia, --assetIndex, 1.19, --accessToken, ????????, --clientId, ZGYwN2RlNDYtMjI0Mi00NjhjLWE3MmUtYTdmNDg4ZTg4YzA1, --xuid, 2535417184517646, --userType, msa, --versionType, release, --width, 1024, --height, 768] [14:46:19] [main/WARN]: Reference map 'arclight.mixins.refmap.json' for epicsamurai.mixins.json could not be read. If this is a development environment you can ignore this message [14:46:19] [main/WARN]: Reference map 'untamedwilds.refmap.json' for untamedwilds.mixins.json could not be read. If this is a development environment you can ignore this message [14:46:19] [main/WARN]: Reference map 'simplyswords-common-refmap.json' for simplyswords-common.mixins.json could not be read. If this is a development environment you can ignore this message [14:46:19] [main/WARN]: Reference map 'simplyswords-forge-refmap.json' for simplyswords.mixins.json could not be read. If this is a development environment you can ignore this message [14:46:19] [main/WARN]: Reference map 'tlc.refmap.json' for tlc.mixins.json could not be read. If this is a development environment you can ignore this message [14:46:20] [main/WARN]: Error loading class: dev/kosmx/playerAnim/core/data/KeyframeAnimation$AnimationBuilder (java.lang.ClassNotFoundException: dev.kosmx.playerAnim.core.data.KeyframeAnimation$AnimationBuilder) [14:46:21] [main/WARN]: @Final field f_96540_:Ljava/util/List; in relics.mixins.json:MixinScreen should be final [14:46:21] [main/WARN]: Error loading class: dev/kosmx/playerAnim/api/layered/ModifierLayer (java.lang.ClassNotFoundException: dev.kosmx.playerAnim.api.layered.ModifierLayer)  
    • https://gist.github.com/CodeSceptile/e3e5b86015f1fb192a0ba3661b89c495 I downloaded and updated some mods then FTB chunks just broke updated/downloaded mod list: FTB Quests Architectury API Supplementaries [Beachparty] Let's Do Beachparty Merchant Markers Miri's Excessive Building RPG天启进化[RPGAE] Pineapple Delight AlizarasSnails Alizaras Things Hostile Mobs and Girls (HMaG) subpocket Elytra Slot (Fabric/Forge/Quilt) Caelus API (Forge)
    • Nice question  you can use directly nbt or create a capability  whats the deal  NBT is data stored inside an internal database every time you recall data it has to create an NBT object and query the internal database to read or write data  Capability is a java object loaded in memory it recall data from the item internally uses NBT but only query  save/write data when changes are detected, capabilities keep loaded in memory until the item is stored or discarted  if you just gonna store a simple number you gonna call one every 2 or 3 ticks like the ammunition/fuel count then no problem  on using NBT directly but if you wanna doo complex thing that need to consult data every tick or worst as mi items that uses json system to display animations client side it gonna slowdown the computer  this case is better to recall the data from the capability loaded in memory and the capability will take care of read/writing nbt thing only when changes are detected    this gun was made animation in client side whit nbt in old 1.8 its choppy and skip badly frames this one was made in 1.12 whit a capability to query the data client side   
    • I have turned down all graphic settings to the smallest except fps which is 30 i can move around the world for about like 10 sec and then the world crashes and then when i log in it crashesh instanly and i have to kms using nbt explorer https://pastebin.com/B0ggsSDa
×
×
  • Create New...

Important Information

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