@@ -0,0 +1,2246 @@
+package janluca.quidditch.items;%0A%0Aimport net.minecraft.client.renderer.block.model.ModelResourceLocation;%0Aimport net.minecraft.entity.Entity;%0Aimport net.minecraft.entity.EnumCreatureType;%0Aimport net.minecraft.entity.monster.EntityZombie;%0Aimport net.minecraft.entity.player.EntityPlayer;%0Aimport net.minecraft.entity.projectile.EntityArrow;%0Aimport net.minecraft.entity.projectile.EntityEgg;%0Aimport net.minecraft.entity.projectile.EntityThrowable;%0Aimport net.minecraft.item.Item;%0Aimport net.minecraft.item.ItemStack;%0Aimport net.minecraft.util.ActionResult;%0Aimport net.minecraft.util.EnumActionResult;%0Aimport net.minecraft.util.EnumHand;%0Aimport net.minecraft.util.text.ITextComponent;%0Aimport net.minecraft.util.text.Style;%0Aimport net.minecraft.util.text.TextComponentString;%0Aimport net.minecraft.world.World;%0Aimport net.minecraft.world.biome.Biome;%0Aimport net.minecraftforge.client.model.ModelLoader;%0Aimport net.minecraftforge.fml.common.registry.EntityRegistry;%0Aimport net.minecraftforge.fml.common.registry.GameRegistry;%0Aimport net.minecraftforge.fml.relauncher.Side;%0Aimport net.minecraftforge.fml.relauncher.SideOnly;%0A%0Aimport javax.annotation.Nonnull;%0Aimport javax.annotation.Nullable;%0Aimport javax.swing.plaf.ActionMapUIResource;%0Aimport java.util.Iterator;%0Aimport java.util.List;%0A%0A/**%0A * Created by Jan-Luca on 16.08.2016.%0A */%0Apublic class BroomItem extends Item %7B%0A    public BroomItem()%7B%0A        setRegistryName(%22quidditch%22, %22broom%22);%0A        setUnlocalizedName(%22broom%22);%0A        GameRegistry.register(this);%0A%0A%0A    %7D%0A%0A    @Override%0A    @SideOnly(Side.CLIENT)%0A    public ActionResult%3CItemStack%3E onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)%0A    %7B%0A        if(!worldIn.isRemote) %7B%0A            playerIn.addChatMessage(new TextComponentString(%22Hallo%22));%0A%0A            EntityZombie z = new EntityZombie(worldIn);%0A            z.setPosition(playerIn.posX, playerIn.posY + 30, playerIn.posZ);%0A            worldIn.spawnEntityInWorld(z);%0A        %7D%0A%0A        return new ActionResult(EnumActionResult.PASS, itemStackIn);%0A    %7D%0A%0A    @SideOnly(Side.CLIENT)%0A    public void initModel()%7B%0A        ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation(getRegistryName(), %22inventory%22));%0A    %7D%0A%0A%7D%0A

Add files via upload