Jump to content

Epsi

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Epsi's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Awesome, it work perfectly and take about one second to update. That still a bit too much but it is far better than the 40 seconds of the normal stat file Thanks Draco18s and Ernio for your time
  2. All right english not being my native language is not helping me with this stuff. My goal is to have the mod only working into one of my computer (I don't care about mod compatibility, it's only for me) that is not even connected to the internet (thus a single player mod, but I don't get the Heresy part). I want, when I click on "Solo" and launch a world, to have a file monitoring the four events. So from your link it is logical server informations on physical client I guess?
  3. Ok, for 1., I want it to work only with the offline minecraft client, no server involved, so there can be only one player, me. Concerning what I am after, my description was all I wanted to do with my mod. Having a quick update of these four value on a file is the only goal of this mod.
  4. I don't doubt it, when I say I was a Forge noob I was serious, I didn't even know its existence yesterday morning Actually I'm trying to monitor four type of events: when the player receive damage, when the player inflict damage, when the player die and when the player kill a mob. Every time one of these even happened, I want a file to be update as fast as possible. I only want that in the classic offline client side. I won't have problem to create and update a file with java, I suppose I won't have problem with the event handler if I follow the tutorial (except if there were changes in envent handler between 1.8 and 1.10.2? ), and finally I just have to find the 4 events I need. I will see the descriptions and those you mention But what did you mean by "extract attacker from DamageSource."? EDIT: LivingAttackEvent you mention and LivingDeathEvent may be what I need, but when it says "a living entity", it mean it is trigger when a mob get damage but also when the player get damage? I saw getEntity get the identity of the source of the damage but I saw nothing to get the identity of the victim... EDIT2: Ok, I get it, I saw the DamageSource source field in the description of LivingAttackEvent so this is the way to get the attacker identity... However when I write @SubscribeEvent public void onDamagesReceived(LivingAttackEvent e) { e. } after e. eclipse propose me several methods like "getEntity(): Entity - EntityEvent", "getEntityLiving(): EntityLivingBase - LivingEvent" and "getSource(): DamageSource- LivingAttackAvent". Won't one of these give me the attacker identity?
  5. Oh I see, thank you. Too bad it would have solve my problem. Then I guess there is still the solution of find a way to update my own file when a mob get damages or get killed. We can have access to this kind of information with Forge? EDIT: Wait, I think I have found what I wanted: the event handler that "allow mod creators to execute their own code when certain events in Minecraft happen" (http://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/event-handler/). I am on the right track right? To bad there is no description of these events because the names aren't very clear. EDIT 2: Isn't that wonderfull http://www.minecraftforge.net/wiki/Event_Reference
  6. Hello Do you see the minecraft stat json file? (http://minecraft.gamepedia.com/Statistics) When I hit an ennemy it take sometimes more than 40 sec to update the damage count and I need it to be quicker (to update the same second I hit the mob). So I Install Forge in the hope to find the part of the minecraft code that control the update rate and to change it. I install it and setup it with this tuto: http://bedrockminer.jimdo.com/modding-tutorials/#basic and every thing works fine with eclipse even if the tuto version is different than my version. Then I looked how to access and modify the minecraft code but I can't find anything, all the tuto I found speaks of adding stuff not modifying directly minecraft code. So as a noob in Forge (but not in java of course) I wonder if any of you could tell my if what I want to do is impossible (it would save me days of useless searching) or if it is simple (yes I admit I would love this answer) or if there is another way to have what I want (I just want to monitor some statistics in a external file, I don't care if it is the minecraft json stat file of a text file created by my mod). If you just point me to a tuto where somebody access and change directly minecraft code it would be awesome to. I use minecraft 1.10.2 with the corresponding forge version. If it has any importance, I code the mod on windows 7 but I will use it on ubuntu 14.04 Also sorry if I made mistakes, english is not my native language.
×
×
  • Create New...

Important Information

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