- 93
- 0
Пж если кто знает то напишите как создать свой эффект(например как Industrial craft 2 радиация).
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
package ModOne.Effects;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.Configuration;
public class Effect extends Potion {
public static ResourceLocation textureResource = new ResourceLocation("enviromine", "textures/gui/status_Gui.png");
public static Effect gipotermiya;
public Effect(int id, boolean isBadEffect, int color, String name) {
super(id, isBadEffect, color);
this.setPotionName("potion." + name);
LanguageRegistry.instance().addStringLocalization(this.getName(), name);
}
public Potion setIconIndex(int x, int y) {
super.setIconIndex(x, y);
return this;
}
public static void loadEffects() {
gipotermiya = new Effect(29, true, 5149490, "Гипотермия");
}
public static void register() {
Potion.potionTypes[29] = gipotermiya;
}
@Override
@SideOnly(Side.CLIENT)
public boolean hasStatusIcon()
{
Minecraft.getMinecraft().renderEngine.bindTexture(textureResource);
return true;
}
}
Dragon2488 написал(а):![]()
Еще одна такая тема - и бан.
Я искал не в гугле.
Я тож искала.Сделала, но помог тимахаGloomyFolken написал(а):Ты искал везде, но не искал в гугле? У тебя странное представление о "везде".