Started by
LueLusten
on
Topic category: Help with Minecraft modding (Java Edition)
We are removing tinckers from our mod pack its just not that great on FPS and servers at the moment, only think all the players really want is the Slime boots
how would I make this in MCreator, I see a mod for 1.8 had it so is it possble with 1.10? thanks
Make on boots (in armor) Add Effect To Player , and jump boost id :)
Jump boost I give that a look thanks AloA
I have followed the options for this but I still getting hurt, the bouce is set to 255 but its not over riding the fall damage like it's mean to ... any ideas why?
Friendly bump here, how do I get it to not give me fall damage.
Add a custom recipe, as a standalone mod element. Here you can choose enchantment level for your boots. Choose feather falling 10. This way, when you craft slime boots in game, the boots will have feather falling!
Give the boots Jump Boost like "martinbv95" said, but also give them Resistance too.
I have fixed it I just added no fall damage to the custom code
IMGUR Full Images: http://imgur.com/a/vEkJj
Video: https://vimeo.com/193545296
Yes I know this is not super or anything but it works :) I have added 2 events one was add cutom postion, jump then the second was a custom event
Custem Event:
[spoiler]
entity.fallDistance = 0.0F;
[/spoiler]
Full Armor code, Genarated by MCreator:
[spoiler]
package mod.mcreator;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraft.world.World;
import net.minecraft.potion.PotionEffect;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.Item;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.init.MobEffects;
import net.minecraft.init.Items;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.Minecraft;
import java.util.Random;
public class mcreator_jellyArmor {
public mcreator_jellyArmor() {
}
public static Item helmet;
public static Item body;
public static Item legs;
public static Item boots;
public static Object instance;
public void load(FMLInitializationEvent event) {
if (event.getSide() == Side.CLIENT) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
.register(helmet, 0, new ModelResourceLocation("TestEnvironmentMod:0", "inventory"));
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
.register(body, 0, new ModelResourceLocation("TestEnvironmentMod:0", "inventory"));
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
.register(legs, 0, new ModelResourceLocation("TestEnvironmentMod:0", "inventory"));
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
.register(boots, 0, new ModelResourceLocation("TestEnvironmentMod:JellyBootiesItem", "inventory"));
}
GameRegistry.addRecipe(new ItemStack(boots, 1),
new Object[]{"XXX", "X4X", "678", Character.valueOf('4'), Items.DIAMOND_BOOTS, Character.valueOf('6'), Items.SPECKLED_MELON,
Character.valueOf('7'), Items.SUGAR, Character.valueOf('8'), Items.SPECKLED_MELON,});
boots.setCreativeTab(mcreator_wittlesTab.tab);
}
public void generateNether(World world, Random random, int chunkX, int chunkZ) {
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
}
public int addFuel(ItemStack fuel) {
return 0;
}
public void serverLoad(FMLServerStartingEvent event) {
}
public void preInit(FMLPreInitializationEvent event) {
}
public void registerRenderers() {
}
static {
ItemArmor.ArmorMaterial enuma = EnumHelper.addArmorMaterial("JELLYARMOR", "JellyBooties", 100, new int[]{0, 0, 0, 50}, 100, null,
3.9999999999999996f);
int armorPreffix = 0;
helmet = (new ItemArmor(enuma, armorPreffix, EntityEquipmentSlot.HEAD) {
public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack) {
int i = (int) entity.posX;
int j = (int) entity.posY;
int k = (int) entity.posZ;
}
}).setUnlocalizedName("0");
helmet.setMaxStackSize(1);
body = (new ItemArmor(enuma, armorPreffix, EntityEquipmentSlot.CHEST) {
public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack) {
int i = (int) entity.posX;
int j = (int) entity.posY;
int k = (int) entity.posZ;
}
}).setUnlocalizedName("0");
body.setMaxStackSize(1);
legs = (new ItemArmor(enuma, armorPreffix, EntityEquipmentSlot.LEGS) {
public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack) {
int i = (int) entity.posX;
int j = (int) entity.posY;
int k = (int) entity.posZ;
}
}).setUnlocalizedName("0");
legs.setMaxStackSize(1);
boots = (new ItemArmor(enuma, armorPreffix, EntityEquipmentSlot.FEET) {
public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack) {
int i = (int) entity.posX;
int j = (int) entity.posY;
int k = (int) entity.posZ;
if (true) {
if (entity instanceof EntityLivingBase)
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.JUMP_BOOST, 0, 8));
}
if (true) {
entity.fallDistance = 0.0F;
}
}
}).setUnlocalizedName("JellyBootiesItem");
boots.setMaxStackSize(1);
GameRegistry.registerItem(boots, "JellyBootiesItem");
}
}
[/spoiler]
I hope that might help help any other 1.7.1 (1.10.2) users