<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[ Probleme Modification KB] &#x27;&#x27; coter client&#x27;&#x27;]]></title><description><![CDATA[<p dir="auto">Bonjour,Bonsoir,</p>
<p dir="auto">Voila je fait appelle a vous , car j’ai recemment commencer a essayer de comprendre le java …. mon niveau global en java ‘’ Debutant ‘’ , je n’ai pas encore assez d’experience dans le domaine , c est pour ca que je fait apelle a vous …</p>
<p dir="auto">Mon Problem : J ai cree un mod , qui importe les .class qui concerne le Kb coter client …<br />
et j ai copier coller ceci :</p>
<p dir="auto">Permier .Class = ExampleMod</p>
<pre><code class="java">
package ExampleMod;

import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.network.play.client.*;
import net.minecraft.entity.*;
import net.minecraftforge.fml.client.*;
import net.minecraftforge.event.entity.*;
import net.minecraft.client.Minecraft;
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;

@Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION)
public class ExampleMod
{
public static final String MODID = "JingoClient";
public static final String VERSION = "0.1 Beta";
private boolean isAirBorne;
public double motionZ;
public double motionY;
public double motionX;
public double posZ;
public double posX;
public double posY;

public boolean velocityChanged;
protected void setBeenAttacked()
{
this.velocityChanged = true;
}

@EventHandler
public void addVelocity(double x, double y, double z)
{
this.motionX += x;
this.motionY += y;
this.motionZ += z;
this.isAirBorne = true;
}

public static double Pmmmmlll = 1.8D;
public static double vz1 = 1.8D;
public static double vz2 = 1.8D;
public void setVelocity(double x, double y, double z)
{
this.motionX = x / Pmmmmlll;
this.motionY = y / vz1;
this.motionZ = z /vz2;

}
public Minecraft mc = Minecraft.getMinecraft();

}

</code></pre>
<p dir="auto">Deuxieme .Class = SPacketEntityVelocity</p>
<pre><code class="java">
package net.minecraft.minecraft;

import java.io.IOException;
import net.minecraft.entity.Entity;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.*;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.client.multiplayer.*;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault;

public class SPacketEntityVelocity implements Packet &lt;inethandlerplayclient&gt;{
private int entityID;
private int motionX;
private int motionY;
private int motionZ;
private net.minecraft.network.play.server.SPacketEntityVelocity packetIn;

public SPacketEntityVelocity()
{
}

public SPacketEntityVelocity(Entity entityIn)
{
this(entityIn.getEntityId(), entityIn.motionX, entityIn.motionY, entityIn.motionZ);
}

public SPacketEntityVelocity(int entityIdIn, double motionXIn, double motionYIn, double motionZIn)
{
this.entityID = entityIdIn;
double d0 = 3.9D;

if (motionXIn &lt; -d0)
{
motionXIn = -d0;
}

if (motionYIn &lt; -d0)
{
motionYIn = -d0;
}

if (motionZIn &lt; -d0)
{
motionZIn = -d0;
}

if (motionXIn &gt; d0)
{
motionXIn = d0;
}

if (motionYIn &gt; d0)
{
motionYIn = d0;
}

if (motionZIn &gt; d0)
{
motionZIn = d0;
}

this.motionX = (int)(motionXIn * 8000.0D);
this.motionY = (int)(motionYIn * 8000.0D);
this.motionZ = (int)(motionZIn * 8000.0D);
}

/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityID = buf.readVarIntFromBuffer();
this.motionX = buf.readShort();
this.motionY = buf.readShort();
this.motionZ = buf.readShort();
}

/**
* Writes the raw packet data to the data stream.
*/
public void writePacketData(PacketBuffer buf) throws IOException
{
buf.writeVarIntToBuffer(this.entityID);
buf.writeShort(this.motionX);
buf.writeShort(this.motionY);
buf.writeShort(this.motionZ);
}

/**
* Passes this Packet on to the NetHandler for processing.
*/
@EventHandler
public void processPacket(INetHandlerPlayClient handler)
{
handler.handleEntityVelocity(packetIn);
}

public int getEntityID()
{
return this.entityID;
}

public int getMotionX()
{
return this.motionX;
}

public int getMotionY()
{
return this.motionY;
}

public int getMotionZ()
{
return this.motionZ;
}
}

</code></pre>
<p dir="auto">Croyez moi , je sais pas si c est bon , mais ca ma mis aucune erreur … j’ai fait pas mal de version modifier , pour comprendre le system de minecraft ( Importation , modification de Reach , KnockBack, ajout d’item modder ect …) mais je m’en rend comte que Forge et Version , c est pas la meme chose …</p>
<p dir="auto">Merci de bien vouloir m’aider ( un peu )…&lt;/inethandlerplayclient&gt;</p>
]]></description><link>https://www.minecraftforgefrance.fr/topic/4746/probleme-modification-kb-coter-client</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 09:46:56 GMT</lastBuildDate><atom:link href="https://www.minecraftforgefrance.fr/topic/4746.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Dec 2017 16:54:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [ Probleme Modification KB] &#x27;&#x27; coter client&#x27;&#x27; on Wed, 13 Dec 2017 13:35:32 GMT]]></title><description><![CDATA[<p dir="auto">En quoi c est ‘’ Mechant ‘’ de faire un mod qui sers a reduire ou augmenter le kb ? a la base je voulais faire un mod ‘’ Troll Kb ‘’ , en gros je prend genre 15 block en Y et 20 block en X ……</p>
<hr />
<p dir="auto">J’ai deja une version que j ai modifier et qui me permet de prendre 10 block en X et 5 en Y</p>
<p dir="auto">Mais moi je veux cette fois-ci le faire en MOD</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/59329</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/59329</guid><dc:creator><![CDATA[AYMANOUH]]></dc:creator><pubDate>Wed, 13 Dec 2017 13:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to [ Probleme Modification KB] &#x27;&#x27; coter client&#x27;&#x27; on Tue, 12 Dec 2017 17:26:18 GMT]]></title><description><![CDATA[<p dir="auto">C’est quoi Version ?</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/59320</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/59320</guid><dc:creator><![CDATA[Superloup10]]></dc:creator><pubDate>Tue, 12 Dec 2017 17:26:18 GMT</pubDate></item><item><title><![CDATA[Reply to [ Probleme Modification KB] &#x27;&#x27; coter client&#x27;&#x27; on Tue, 12 Dec 2017 17:20:19 GMT]]></title><description><![CDATA[<p dir="auto">C’est un troll ? Si la réponse est non, c’est encore + affligeant de nous faire croire que MFF t’aiderait à parfaire ton joli hack…</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/59319</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/59319</guid><dc:creator><![CDATA[Deleted]]></dc:creator><pubDate>Tue, 12 Dec 2017 17:20:19 GMT</pubDate></item></channel></rss>