package hmggirlfront;

import gvclib.item.ItemGunBase;
import gvclib.item.ItemGun_Grenade;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.FMLCommonHandler;
import objmodel.AdvancedModelLoader;

public class GFItemRegistry2 {
	public static void registry(mod_GirlFront mod, RegistryEvent.Register<Item> event){
		{
			 mod.idoll_grenade_n	= new ItemGun_Grenade().setUnlocalizedName("idoll_grenade_n").setMaxStackSize(3)
			    		.setRegistryName(mod.MOD_ID, "idoll_grenade_n").setCreativeTab(mod.tabgg);
			    {
			    	ItemGunBase gun = (ItemGunBase)mod. idoll_grenade_n;
			    	if (FMLCommonHandler.instance().getSide().isClient()) {
						gun.obj_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/entity/grenade.mqo"));
						gun.arm_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm.obj"));
						gun.arm_model2 = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm2.obj"));
						gun.flash_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/flash.obj"));
						
					}
					gun.obj_tex = "gvclib:textures/entity/grenade.png";
					gun.gun_type = 9;
					gun.bullet_model = "gvclib:textures/entity/grenade.mqo";
					gun.bullet_tex = "gvclib:textures/entity/grenade.png";
					gun.bullet_time_max = 60;
					gun.ex = false;
					gun.exfire = false;
					gun.exlevel = 2.0F;
					gun.bullet_c = true;
					gun.mugen = true;
					
					gun.setMaxDamage(1);
					gun.reload_type = 2;
					gun.powor = 30;
					gun.speed = 1.5F;
					gun.bure = 3.0F;
					gun.gra = 0.0F;
					gun.recoil = 0D;
					gun.reloadtime = 50;
					gun.cycle = gun.cocktime = 6;
					gun.scopezoom = gun.scopezoombase = 1.2F;
					gun.magazine = mod.idoll_grenade_n;
					gun.fires = SoundEvents.ENTITY_SNOWBALL_THROW;
					gun.sound = gun.soundbase  = "gvclib.fire_rifle";
					gun.soundsp = 1.0F;
					
					gun.obj_true = true;
					gun.shotgun_pellet = 1;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0; 
					
					gun.model_y = -2.0F;
					gun.model_y_ads = -2.0F;
					gun.model_x = 1.5F;
					gun.model_x_ads = 1.5F;
					gun.model_z = -3.5F;
					gun.model_z_ads = -3.5F;
					
					gun.arm_l_posx = - 0F;
					gun.arm_l_posy = - 0.0F;
					gun.arm_l_posz = - 20F;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0;
					
					gun.mobmax = 30;
				    gun.mobrange = 30;
				    gun.mobbullettype = 9;
				    gun.mobammo = 60;
				    gun.mobcycle = 2;
				    gun.mobbarst = 1;
				    {
						gun.newreload = true;
						gun.mat_rk_0 = 1;
						gun.mat_r_0 = new String[]{"mat1", "0", "60", 
								"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", "0","0"
					    		};
						
					}
				}
			    event.getRegistry().register(mod.idoll_grenade_n);
		}
		{
			 mod.idoll_grenade_f	= new ItemGun_Grenade().setUnlocalizedName("idoll_grenade_f").setMaxStackSize(3)
			    		.setRegistryName(mod.MOD_ID, "idoll_grenade_f").setCreativeTab(mod.tabgg);
			    {
			    	ItemGunBase gun = (ItemGunBase)mod. idoll_grenade_f;
			    	if (FMLCommonHandler.instance().getSide().isClient()) {
						gun.obj_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/entity/grenade.mqo"));
						gun.arm_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm.obj"));
						gun.arm_model2 = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm2.obj"));
						gun.flash_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/flash.obj"));
						
					}
					gun.obj_tex = "gvclib:textures/entity/grenade.png";
					gun.gun_type = 9;
					gun.bullet_model = "gvclib:textures/entity/grenade.mqo";
					gun.bullet_tex = "gvclib:textures/entity/grenade.png";
					gun.bullet_time_max = 60;
					gun.ex = false;
					gun.exfire = true;
					gun.exlevel = 2.0F;
					gun.bullet_c = true;
					gun.mugen = true;
					
					gun.setMaxDamage(1);
					gun.reload_type = 2;
					gun.powor = 1;
					gun.speed = 1.5F;
					gun.bure = 3.0F;
					gun.gra = 0.0F;
					gun.recoil = 0D;
					gun.reloadtime = 50;
					gun.cycle = gun.cocktime = 6;
					gun.scopezoom = gun.scopezoombase = 1.2F;
					gun.magazine = mod.idoll_grenade_f;
					gun.fires = SoundEvents.ENTITY_SNOWBALL_THROW;
					gun.sound = gun.soundbase  = "gvclib.fire_rifle";
					gun.soundsp = 1.0F;
					
					gun.obj_true = true;
					gun.shotgun_pellet = 1;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0; 
					
					gun.model_y = -2.0F;
					gun.model_y_ads = -2.0F;
					gun.model_x = 1.5F;
					gun.model_x_ads = 1.5F;
					gun.model_z = -3.5F;
					gun.model_z_ads = -3.5F;
					
					gun.arm_l_posx = - 0F;
					gun.arm_l_posy = - 0.0F;
					gun.arm_l_posz = - 20F;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0;
					
					gun.mobmax = 30;
				    gun.mobrange = 30;
				    gun.mobbullettype = 9;
				    gun.mobammo = 60;
				    gun.mobcycle = 2;
				    gun.mobbarst = 1;
				    {
						gun.newreload = true;
						gun.mat_rk_0 = 1;
						gun.mat_r_0 = new String[]{"mat1", "0", "60", 
								"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", "0","0"
					    		};
						
					}
				}
			    event.getRegistry().register(mod.idoll_grenade_f);
		}
		{
			 mod.idoll_grenade_s	= new ItemGun_Grenade().setUnlocalizedName("idoll_grenade_s").setMaxStackSize(3)
			    		.setRegistryName(mod.MOD_ID, "idoll_grenade_s").setCreativeTab(mod.tabgg);
			    {
			    	ItemGunBase gun = (ItemGunBase)mod. idoll_grenade_s;
			    	if (FMLCommonHandler.instance().getSide().isClient()) {
						gun.obj_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/entity/grenade.mqo"));
						gun.arm_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm.obj"));
						gun.arm_model2 = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm2.obj"));
						gun.flash_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/flash.obj"));
						
					}
					gun.obj_tex = "gvclib:textures/entity/grenade.png";
					gun.gun_type = 9;
					gun.bullet_model = "gvclib:textures/entity/grenade.mqo";
					gun.bullet_tex = "gvclib:textures/entity/grenade.png";
					gun.bullet_time_max = 40;
					gun.ex = false;
					gun.exfire = false;
					gun.exsmoke = true;
					gun.exlevel = 2.0F;
					gun.bullet_c = true;
					gun.mugen = true;
					
					gun.setMaxDamage(1);
					gun.reload_type = 2;
					gun.powor = 30;
					gun.speed = 1.5F;
					gun.bure = 3.0F;
					gun.gra = 0.0F;
					gun.recoil = 0D;
					gun.reloadtime = 50;
					gun.cycle = gun.cocktime = 6;
					gun.scopezoom = gun.scopezoombase = 1.2F;
					gun.magazine = mod.idoll_grenade_s;
					gun.fires = SoundEvents.ENTITY_SNOWBALL_THROW;
					gun.sound = gun.soundbase  = "gvclib.fire_rifle";
					gun.soundsp = 1.0F;
					
					gun.obj_true = true;
					gun.shotgun_pellet = 1;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0; 
					
					gun.model_y = -2.0F;
					gun.model_y_ads = -2.0F;
					gun.model_x = 1.5F;
					gun.model_x_ads = 1.5F;
					gun.model_z = -3.5F;
					gun.model_z_ads = -3.5F;
					
					gun.arm_l_posx = - 0F;
					gun.arm_l_posy = - 0.0F;
					gun.arm_l_posz = - 20F;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0;
					
					gun.mobmax = 30;
				    gun.mobrange = 30;
				    gun.mobbullettype = 9;
				    gun.mobammo = 60;
				    gun.mobcycle = 2;
				    gun.mobbarst = 1;
				    {
						gun.newreload = true;
						gun.mat_rk_0 = 1;
						gun.mat_r_0 = new String[]{"mat1", "0", "60", 
								"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", "0","0"
					    		};
						
					}
				}
			    event.getRegistry().register(mod.idoll_grenade_s);
		}
		{
			 mod.idoll_grenade_fb	= new ItemGun_Grenade().setUnlocalizedName("idoll_grenade_fb").setMaxStackSize(3)
			    		.setRegistryName(mod.MOD_ID, "idoll_grenade_fb").setCreativeTab(mod.tabgg);
			    {
			    	ItemGunBase gun = (ItemGunBase)mod. idoll_grenade_fb;
			    	if (FMLCommonHandler.instance().getSide().isClient()) {
						gun.obj_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/entity/grenade.mqo"));
						gun.arm_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm.obj"));
						gun.arm_model2 = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/arm2.obj"));
						gun.flash_model = AdvancedModelLoader.loadModel(new ResourceLocation("gvclib:textures/model/flash.obj"));
						
					}
					gun.obj_tex = "gvclib:textures/entity/grenade.png";
					gun.gun_type = 9;
					gun.bullet_model = "gvclib:textures/entity/grenade.mqo";
					gun.bullet_tex = "gvclib:textures/entity/grenade.png";
					gun.bullet_time_max = 20;
					gun.ex = false;
					gun.exfire = false;
					gun.exsmoke = false;
					gun.exflash = true;
					gun.exlevel = 2.0F;
					gun.bullet_c = true;
					gun.mugen = true;
					
					gun.setMaxDamage(1);
					gun.reload_type = 2;
					gun.powor = 30;
					gun.speed = 2.0F;
					gun.bure = 3.0F;
					gun.gra = 0.0F;
					gun.recoil = 0D;
					gun.reloadtime = 50;
					gun.cycle = gun.cocktime = 6;
					gun.scopezoom = gun.scopezoombase = 1.2F;
					gun.magazine = mod.idoll_grenade_fb;
					gun.fires = SoundEvents.ENTITY_SNOWBALL_THROW;
					gun.sound = gun.soundbase  = "gvclib.fire_rifle";
					gun.soundsp = 1.0F;
					
					gun.obj_true = true;
					gun.shotgun_pellet = 1;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0; 
					
					gun.model_y = -2.0F;
					gun.model_y_ads = -2.0F;
					gun.model_x = 1.5F;
					gun.model_x_ads = 1.5F;
					gun.model_z = -3.5F;
					gun.model_z_ads = -3.5F;
					
					gun.arm_l_posx = - 0F;
					gun.arm_l_posy = - 0.0F;
					gun.arm_l_posz = - 20F;
					
					gun.Sprintrotationx = -60; 
					gun.Sprintrotationy = 0;
					
					gun.mobmax = 30;
				    gun.mobrange = 30;
				    gun.mobbullettype = 9;
				    gun.mobammo = 60;
				    gun.mobcycle = 2;
				    gun.mobbarst = 1;
				    {
						gun.newreload = true;
						gun.mat_rk_0 = 1;
						gun.mat_r_0 = new String[]{"mat1", "0", "60", 
								"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", 
					    		"0", "0", "0", "0","0"
					    		};
						
					}
				}
			    event.getRegistry().register(mod.idoll_grenade_fb);
		}
	}
}
