Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • General Discussion
  • .getEntityData() & death
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
dries007

.getEntityData() & death

By dries007, August 5, 2012 in General Discussion

  • Reply to this topic
  • Start new topic

Recommended Posts

dries007    10

dries007

dries007    10

  • Diamond Finder
  • dries007
  • Forge Modder
  • 10
  • 317 posts
Posted August 5, 2012

Is it intentional that you lose the saved EntityData when a player dies? Its kind of annoying, especially because I found that out after coding 2 mods that use it as a permanent player-tied data storage.

To bypass that I assume I need to write my own data storage system? (It will probably use a username.dat, just in a different folder  :'()

  • Quote

Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

width=700 height=100http://dries007.net/banner.png[/img]

Share this post


Link to post
Share on other sites

Zero    38

Zero

Zero    38

  • Creeper Killer
  • Zero
  • Members
  • 38
  • 190 posts
Posted August 5, 2012

If this is the case

To bypass that I assume I need to write my own data storage system? (It will probably use a username.dat, just in a different folder  :'()

 

If this is the case, you could make it store in the mods folder, again within its own folder. Like... /Example Server Folder/mods/SimpleServerData. I know that doesn't help much in terms of what you're expecting, so I'll shush.  :-X

  • Quote

Check out my

Texture Packs Thread here on the Forge Forum. :)

Currently in the process of adding some mod support for JohnSmith Texture Pack.

width=105 height=12https://www.sugarsync.com/piv/D8135159_67366891_21351[/img]

 

width=209 height=19https://www.sugarsync.com/piv/D8135159_67366891_772852[/img]

Share this post


Link to post
Share on other sites

dries007    10

dries007

dries007    10

  • Diamond Finder
  • dries007
  • Forge Modder
  • 10
  • 317 posts
Posted August 5, 2012

I'm going to integrate the player tied system in SimperPermissions so all the mods that use permissions can set player-tied data, that way I only need to code it once, and not for every mod ;-).

 

I found out after wanting to /home after I tried swimming in lava  8)

 

I'm gonna store it in the folder SP uses for it's config and ranks and permissions. I might even 'Upgrade' the permission/rank files to .dat files (I finally found out how MC stores them)

  • Quote

Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

width=700 height=100http://dries007.net/banner.png[/img]

Share this post


Link to post
Share on other sites

OvermindDL1    333

OvermindDL1

OvermindDL1    333

  • World Shaper
  • OvermindDL1
  • Members
  • 333
  • 1439 posts
Posted August 5, 2012

Entity data is tied to an entity, the player controls an entity, but is not an entity itself, and its entity does indeed die.  You can use global save NBT's to store, or a custom file, however.  :)

  • Quote

Share this post


Link to post
Share on other sites

dries007    10

dries007

dries007    10

  • Diamond Finder
  • dries007
  • Forge Modder
  • 10
  • 317 posts
Posted August 9, 2012

I just made .dat files, they use the same save/load system as Minecraft.

I like the NBT system a lot. There is just one thing, Is it me or is it impossible to remove tags?

  • Quote

Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

width=700 height=100http://dries007.net/banner.png[/img]

Share this post


Link to post
Share on other sites

OvermindDL1    333

OvermindDL1

OvermindDL1    333

  • World Shaper
  • OvermindDL1
  • Members
  • 333
  • 1439 posts
Posted August 10, 2012

Never tried.  Can always reflectively do it in the worst case.

  • Quote

Share this post


Link to post
Share on other sites

dries007    10

dries007

dries007    10

  • Diamond Finder
  • dries007
  • Forge Modder
  • 10
  • 317 posts
Posted August 10, 2012

I found out you can best store a collection (with .getTags()) and then run that through a while(Iterator.hasnext()) loop and kill out the ones you don't want.

  • Quote

Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

width=700 height=100http://dries007.net/banner.png[/img]

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • NovaMachina
      [1.16] Block texture resonds to sky light not block light

      By NovaMachina · Posted 28 minutes ago

      Great point. Should have seen that. Would I just pass that into the IVertexBuilder#lightmap function?
    • Draco18s
      [1.16] Block texture resonds to sky light not block light

      By Draco18s · Posted 33 minutes ago

      I wonder what combinedLight is. https://github.com/NovaMachina-Mods/ExNihiloSequentia/blob/1.16/src/main/java/novamachina/exnihilosequentia/client/render/SieveRender.java#L34
    • NovaMachina
      [1.16] Block texture resonds to sky light not block light

      By NovaMachina · Posted 53 minutes ago

      I received a bug report where the texture of a block is only responding to the sky light, but not any block lights (such as torches). Here is the link to the renderer that I believe to be the culprit. Any suggestions? https://github.com/NovaMachina-Mods/ExNihiloSequentia/blob/1.16/src/main/java/novamachina/exnihilosequentia/client/render/SieveRender.java Here is an image that shows the issue: https://repo.jacob-williams.me/repository/raw/exnihilosequentia/issues/images/Lighting%20Bug.png
    • brok4d
      OBJ MODELS

      By brok4d · Posted 2 hours ago

      Hello, this mod is the source, you have to get boredhttps://gitlab.com/Lycanite/LycanitesMobs
    • JayNeedsHelp
      Logger not working

      By JayNeedsHelp · Posted 3 hours ago

      So I'm currently creating a forge mod and I'm having an issue where the console stops logging after some errors. It seems to be connected to the access transformers that I'm using as before I added at's my console was working fine.   Here is my at file:  public-f net.minecraft.client.Minecraft session public net.minecraft.client.Minecraft timer public net.minecraft.client.gui.GuiScreen buttonList public net.minecraft.util.Timer tickLength public net.minecraft.network.play.client.CPacketPlayer onGround public net.minecraft.network.play.server.SPacketEntityVelocity motionX public net.minecraft.network.play.server.SPacketEntityVelocity motionY public net.minecraft.network.play.server.SPacketEntityVelocity motionZ public net.minecraft.network.play.server.SPacketExplosion motionX public net.minecraft.network.play.server.SPacketExplosion motionY public net.minecraft.network.play.server.SPacketExplosion motionZ public net.minecraft.client.renderer.entity.RenderManager renderPosX public net.minecraft.client.renderer.entity.RenderManager renderPosY public net.minecraft.client.renderer.entity.RenderManager renderPosZ   Any help is greatly appreciated thank you!
  • Topics

    • NovaMachina
      2
      [1.16] Block texture resonds to sky light not block light

      By NovaMachina
      Started 52 minutes ago

    • Milk_Shak3s
      1
      OBJ MODELS

      By Milk_Shak3s
      Started 18 hours ago

    • JayNeedsHelp
      0
      Logger not working

      By JayNeedsHelp
      Started 3 hours ago

    • cadbane86140
      0
      Minecraft: Hunger Games Game #36- Shear FIGHT!

      By cadbane86140
      Started 4 hours ago

    • Sad Whale
      6
      Game crashes whenever I try to increase the RAM

      By Sad Whale
      Started 6 hours ago

  • Who's Online (See full list)

    • mp1115
    • Cylixee
    • Woosh
    • Sad Whale
    • Milk_Shak3s
    • cris_lol07
    • dirko524
    • elite_mlgbro1
    • FREyebeans2506
  • All Activity
  • Home
  • Minecraft Forge
  • General Discussion
  • .getEntityData() & death
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community