• 0

    posted a message on 1.12 - Custom Recipes

    aaand can i use nbt data for recipe ingredients? i know i can use it for results but i think not for ingredients

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 1.12 - Custom Recipes

    how can i give the result a enchantment?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on crafting recipe not work

    I try to update my mod to MC 1.12, but i have a problem with the new json files.


    the console throws a exception but i dont know why it is a "unknown item"



    My json file:


    {
    "type": "minecraft:crafting_shapeless",
    "ingredients": [
    {
    "item": "minecraft:water_bucket"
    },
    {
    "item": "orecore:oil_paste"
    },
    {
    "item": "orecore:oil_paste"
    },
    {
    "item": "orecore:oil_paste"
    },
    {
    "item": "orecore:oil_paste"
    }
    ],
    "result": {
    "item": "orecore:oil_bucket"
    }
    }




    and the console:


    [22:45:51] [main/ERROR] [FML]: Parsing error loading recipe orecore:oil_bucket
    com.google.gson.JsonSyntaxException: Unknown item 'orecore:oilPaste'
    at net.minecraftforge.common.crafting.CraftingHelper.getItemStackBasic(CraftingHelper.java:253) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.lambda$init$37(CraftingHelper.java:531) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.getIngredient(CraftingHelper.java:201) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.lambda$init$36(CraftingHelper.java:518) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.getRecipe(CraftingHelper.java:402) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.lambda$loadRecipes$42(CraftingHelper.java:702) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.findFiles(CraftingHelper.java:790) ~[CraftingHelper.class:?]
    at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:659) ~[CraftingHelper.class:?]
    at java.util.ArrayList.forEach(Unknown Source) [?:1.8.0_131]
    at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:614) [CraftingHelper.class:?]
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:779) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:576) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:416) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]

    Posted in: Modification Development
  • 0

    posted a message on Throwable Entity invisible

    i call it in the main class. And i saw tutorial about that.

    client proxy:


    public void registerRenderer() {

    RenderingRegistry.registerEntityRenderingHandler(EntityDynamite.class, new IRenderFactory() {


    @Override
    public Render createRenderFor(RenderManager manager) {
    return new RenderSnowball<EntityDynamite>(manager, ModItems.dynamite, Minecraft.getMinecraft().getRenderItem());
    }
    });
    }



    and i changed the path from the res location to: textures/items/earlymodernage/dynamite.png

    Posted in: Modification Development
  • 0

    posted a message on Throwable Entity invisible

    i think the problem is the resource location..:




    public class ModEntitys {

    public static int dynamite = 0;




    public ModEntitys(){
    register();
    }


    private void register() {
    //ResourceLocation loc = new ResourceLocation(AgeOfWeapons.MODID, "dynamite"); test
    EntityRegistry.registerModEntity(new ResourceLocation("ageofweapons", "items/earlymodernage/dynamite.png"), EntityDynamite.class, "dynamite", dynamite, AgeOfWeapons.instance, 64, 1, true);;

    }

    }

    Posted in: Modification Development
  • 0

    posted a message on Armor Effects, kick from server

    works! here for all with the same problem:


    @Override
    public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
    if (!world.isRemote && player.inventory.armorInventory.get(3) != null && player.inventory.armorInventory.get(3).getItem() == ModItems.lavacrystalHelmet
    && player.inventory.armorInventory.get(2) != null && player.inventory.armorInventory.get(2).getItem() == ModItems.lavacrystalChestplate
    && player.inventory.armorInventory.get(1) != null && player.inventory.armorInventory.get(1).getItem() == ModItems.lavacrystalLeggins
    && player.inventory.armorInventory.get(0) != null && player.inventory.armorInventory.get(0).getItem() == ModItems.lavacrystalBoots) {
    this.effectPlayer(player, Potion.getPotionById(12), 1);
    }
    }

    Posted in: Modification Development
  • 0

    posted a message on Armor Effects, kick from server

    I tryed to make armor that gives the player a effect if it wear all parts of it, all works fine in single player, but if the mod runs on a server and the player try to wear one piece of the armor, he fly from the server... has anyone a idea whats the problem in the code? i can´t fix it


    This is the server console:


    [23:29:51] [Server thread/WARN] [net.minecraft.network.NetworkSystem]: Failed to handle packet for /127.0.0.1:53422
    net.minecraft.util.ReportedException: Ticking player
     at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:406) ~[ly.class:?]
     at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:164) ~[mi.class:?]
     at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:215) ~[NetworkDispatcher$1.class:?]
     at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:287) ~[er.class:?]
     at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180) [mh.class:?]
     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:743) [MinecraftServer.class:?]
     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:384) [lh.class:?]
     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:624) [MinecraftServer.class:?]
     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?]
     at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
    Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.player.InventoryPlayer.func_70440_f(I)Lnet/minecraft/item/ItemStack;
     at xxrexraptorxx.orecore.items.ItemModArmorSpecial.onArmorTick(ItemModArmorSpecial.java:28) ~[ItemModArmorSpecial.class:?]
     at net.minecraft.entity.player.InventoryPlayer.func_70429_k(InventoryPlayer.java:356) ~[aax.class:?]
     at net.minecraft.entity.player.EntityPlayer.func_70636_d(EntityPlayer.java:514) ~[aay.class:?]
     at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2085) ~[sw.class:?]
     at net.minecraft.entity.player.EntityPlayer.func_70071_h_(EntityPlayer.java:232) ~[aay.class:?]
     at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:329) ~[ly.class:?]
     ... 9 more




    And this is the code of the armor:


    @Override
    public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
    if (!world.isRemote && player.inventory.armorItemInSlot(3) != null && player.inventory.armorItemInSlot(3).getItem() == ModItems.lavacrystalHelmet
    && player.inventory.armorItemInSlot(2) != null && player.inventory.armorItemInSlot(2).getItem() == ModItems.lavacrystalChestplate
    && player.inventory.armorItemInSlot(1) != null && player.inventory.armorItemInSlot(1).getItem() == ModItems.lavacrystalLeggins
    && player.inventory.armorItemInSlot(0) != null && player.inventory.armorItemInSlot(0).getItem() == ModItems.lavacrystalBoots) {
    this.effectPlayer(player, Potion.getPotionById(12), 1);
    }
    }

    private void effectPlayer(EntityPlayer player, Potion potion, int amplifier) {
    //Always effect for 8 seconds, then refresh
    if (player.getActivePotionEffect(potion) == null || player.getActivePotionEffect(potion).getDuration() <= 1)
    player.addPotionEffect(new PotionEffect(potion.getPotionById(12), 159, amplifier, true, true));
    }



    thx for the help!

    Posted in: Modification Development
  • 0

    posted a message on Bucket Recipe | 1.11, Forge

    can you show me how i do this ^^´

    Posted in: Modification Development
  • 0

    posted a message on Bucket Recipe | 1.11, Forge

    I created a shaped crafting recipes that allows me to craft with a water Bucket and oil paste a oil bucket, but when i craft this is the result 1 oil bucket and 1 empty bucket from the water bucket....how can i disable this funktion?

    Posted in: Modification Development
  • 0

    posted a message on Generating blocks in vanilla ore veins | Forge, 1.11

    How can i generate blocks in vanilla ore veins? With my normal ore generator that doesnt work..has anyone an idea?

    Posted in: Modification Development
  • 0

    posted a message on Modify vanilla items/blocks

    thanks :DD

    Posted in: Modification Development
  • 0

    posted a message on Modify vanilla items/blocks

    i dont know if its right, but it dont works



    package xxrexraptorxx.relicsofdeath.util;
    
    import java.util.List;
    
    import xxrexraptorxx.relicsofdeath.main.ModItems;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.init.Blocks;
    import net.minecraft.item.ItemStack;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;
    
    public class CustomTab extends CreativeTabs {
    
    	public CustomTab() {
    		super("mainTab");
    	}
    
    
    
    	@Override
    	public ItemStack getTabIconItem() {    	
    		return new ItemStack(ModItems.soul);		    	
    	}
    	
    	
    	
    	@SideOnly(Side.CLIENT)
    	public void displayAllRelevantItems(List ItemList) {
    		ItemList.add(new ItemStack(Blocks.COMMAND_BLOCK));
    
    	}
    }
    Posted in: Modification Development
  • 0

    posted a message on Modify vanilla items/blocks

    I have a question: how can i add a creative tab to a vanilla item/block (as example the commandblock)


    and how can i add item/blocks with meta data to a creative tab ?

    i hope anyone can help me :D

    Posted in: Modification Development
  • 0

    posted a message on Chest loot

    thanks!

    Posted in: Modification Development
  • 0

    posted a message on Chest loot

    how i exactly use this? i´m reeeelatively new at modding ^^

    Posted in: Modification Development
  • To post a comment, please .