Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trigga_scopez

Forge Modder
  • Joined

  • Last visited

  1. Please may you tell me how?
  2. How would i do that though?
  3. So how would I make the gun semi auto? please help i need this quickly.
  4. Hi, I am the creator of the Guns 'N' stuff mod this mod uses forge , therefore i would like the Forge Modder or Modder status please. Thank you.
  5. how would I go about doing so?
  6. i tried this code package alex.modtut.items; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import alex.modtut.MainClass; import alex.modtut.lib.Constants; public class ItemRapidPistol extends Item { private World worldObj; private double posX; private double posZ; private double posY; private Object explosionRadius; private int counter =20; public ItemRapidPistol() { super(); setCreativeTab(MainClass.GunsNStuff); setUnlocalizedName("RapidPistol"); setTextureName(Constants.MODID + ":RapidPistol"); } @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,EntityPlayer par3EntityPlayer) { if(par3EntityPlayer.capabilities.isCreativeMode||par3EntityPlayer.inventory.consumeInventoryItem(ModItems.orangeItem)) counter--; if(counter == 0) { par2World.playSoundAtEntity(par3EntityPlayer, "mob.irongolem.hit", 0.4F, 3F / (itemRand.nextFloat() * 0.4F + 0.8F)); { par2World.spawnEntityInWorld(new alex.modtut.items.M16EntityBlasterBolt(par2World, par3EntityPlayer)); } counter=20; } return par1ItemStack; } }
  7. I removed it since it wasnt working. ithe main reason could be i dont know where to put it.
  8. Here is my ItemRapidPistol class package alex.modtut.items; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import alex.modtut.MainClass; import alex.modtut.lib.Constants; public class ItemRapidPistol extends Item { private World worldObj; private double posX; private double posZ; private double posY; private Object explosionRadius; public ItemRapidPistol() { super(); setCreativeTab(MainClass.GunsNStuff); setUnlocalizedName("RapidPistol"); setTextureName(Constants.MODID + ":RapidPistol"); } @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,EntityPlayer par3EntityPlayer) { if(par3EntityPlayer.capabilities.isCreativeMode||par3EntityPlayer.inventory.consumeInventoryItem(ModItems.orangeItem)) { par2World.playSoundAtEntity(par3EntityPlayer, "mob.irongolem.hit", 0.4F, 3F / (itemRand.nextFloat() * 0.4F + 0.8F)); { par2World.spawnEntityInWorld(new alex.modtut.items.M16EntityBlasterBolt(par2World, par3EntityPlayer)); } } return par1ItemStack; } }
  9. I know this is kinda late but I followed the same tutorial and I need to have my gun shoot like a pistol, But ive tried all the things you guys posted but they wont work at all please help, Email me if you have to, [email protected]

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.