diff --git a/src/main/java/com/s5gi/giGuns/guns/GunHandler.java b/src/main/java/com/s5gi/giGuns/guns/GunHandler.java index 5909ba2..fc57ad6 100644 --- a/src/main/java/com/s5gi/giGuns/guns/GunHandler.java +++ b/src/main/java/com/s5gi/giGuns/guns/GunHandler.java @@ -92,7 +92,7 @@ public class GunHandler implements Listener { @EventHandler public static void onRightClick(PlayerInteractEvent event) { if (event.getAction() == Action.RIGHT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_AIR) { - if (event.getAction()==Action.RIGHT_CLICK_BLOCK && Calc.isInteractable(event.getClickedBlock())) { + if (event.getAction()==Action.RIGHT_CLICK_BLOCK && Calc.isInteractable(event.getClickedBlock()) && !event.getPlayer().isSneaking()) { return; } if (event.getHand() == EquipmentSlot.HAND) { @@ -145,16 +145,17 @@ public class GunHandler implements Listener { event.setCancelled(true); return; } else { - double dueDamage = gun.damage()-Math.min(GunHandler.Calc.getDamageAfterArmor(damagedPlayer), gun.damage()-0.5f); + double dueDamage = gun.damage()-GunHandler.Calc.getDamageAfterArmor(damagedPlayer); + if (dueDamage < 0.5) dueDamage=0.5; damagedPlayer.damage(dueDamage, bulletOwner); gun.onHitEntity(damagedPlayer.getLocation(), damagedPlayer); - Calc.makeBlood(event.getEntity().getLocation(), (float) dueDamage); + if (gun.makeBlood()) Calc.makeBlood(event.getEntity().getLocation(), (float) dueDamage); physicsBullets.remove(physbullet); } } else if (event.getHitEntity() instanceof LivingEntity livingEntity) { livingEntity.damage(gun.damage(), bulletOwner); gun.onHitEntity(event.getEntity().getLocation(), livingEntity); - Calc.makeBlood(event.getEntity().getLocation(), (int) gun.damage()); + if (gun.makeBlood()) Calc.makeBlood(event.getEntity().getLocation(), (int) gun.damage()); physicsBullets.remove(physbullet); } @@ -214,7 +215,7 @@ public class GunHandler implements Listener { else if(chest == Material.DIAMOND_CHESTPLATE)red = red + 0.32; else if(chest == Material.NETHERITE_CHESTPLATE)red = red + 0.38; - return red; + return red * 2; } public static boolean decreaseMatchingItem(Player player, ItemStack targetItem) { diff --git a/src/main/java/com/s5gi/giGuns/guns/Guns.java b/src/main/java/com/s5gi/giGuns/guns/Guns.java index 37bac8e..a2f02b3 100644 --- a/src/main/java/com/s5gi/giGuns/guns/Guns.java +++ b/src/main/java/com/s5gi/giGuns/guns/Guns.java @@ -11,6 +11,7 @@ public class Guns { GunHandler.register(new barrettM82()); GunHandler.register(new AK47()); GunHandler.register(new m4a1s()); + GunHandler.register(new rocketJumper()); } // public static final IGun hecateII = new IGun() { diff --git a/src/main/java/com/s5gi/giGuns/guns/IGun.java b/src/main/java/com/s5gi/giGuns/guns/IGun.java index f71cf71..c00175c 100644 --- a/src/main/java/com/s5gi/giGuns/guns/IGun.java +++ b/src/main/java/com/s5gi/giGuns/guns/IGun.java @@ -54,6 +54,7 @@ public interface IGun { gunItem.setItemMeta(meta); return gunItem; } + default boolean makeBlood() {return true;} default boolean gravity() {return false;} default IBullet compileBullet() { IGun gun = this; diff --git a/src/main/java/com/s5gi/giGuns/guns/ind/m1Bazooka.java b/src/main/java/com/s5gi/giGuns/guns/ind/m1Bazooka.java index 7cf8e61..fa5f4d0 100644 --- a/src/main/java/com/s5gi/giGuns/guns/ind/m1Bazooka.java +++ b/src/main/java/com/s5gi/giGuns/guns/ind/m1Bazooka.java @@ -1,12 +1,16 @@ package com.s5gi.giGuns.guns.ind; import com.s5gi.giGuns.guns.BulletType; +import com.s5gi.giGuns.guns.GunHandler; import com.s5gi.giGuns.guns.IGun; import org.bukkit.*; import org.bukkit.block.Block; +import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Player; import org.bukkit.inventory.CraftingRecipe; import org.bukkit.inventory.ShapedRecipe; +import org.bukkit.util.Vector; import java.util.List; @@ -47,7 +51,27 @@ public class m1Bazooka implements IGun { } private static void explode(Location location) { - location.getWorld().createExplosion(location, 4.5f, false, false); + //location.getWorld().createExplosion(location, 1f, false, false); + for (Entity entity : location.getWorld().getNearbyEntities(location, 5f, 5f, 5f)) { + + if (entity instanceof LivingEntity livingEntity) { + if (entity instanceof Player player) { + player.damage(4f - GunHandler.Calc.getDamageAfterArmor(player)); + } else { + livingEntity.damage(4f); + } + Location playerLocation = livingEntity.getLocation(); + + // Calculate direction vector (from point to player) + Vector direction = playerLocation.toVector().subtract(location.toVector()); + + // Normalize the vector to keep consistent speed + direction.normalize().multiply(1); // Change the multiplier for speed adjustments + + // Apply velocity to the player + livingEntity.setVelocity(livingEntity.getVelocity().add(direction)); + } + } location.getWorld().spawnParticle(Particle.EXPLOSION, location, 10, 0.1f, 0.1f, 0.1f); } diff --git a/src/main/java/com/s5gi/giGuns/guns/ind/rocketJumper.java b/src/main/java/com/s5gi/giGuns/guns/ind/rocketJumper.java new file mode 100644 index 0000000..4f4e39f --- /dev/null +++ b/src/main/java/com/s5gi/giGuns/guns/ind/rocketJumper.java @@ -0,0 +1,105 @@ +package com.s5gi.giGuns.guns.ind; + +import com.s5gi.giGuns.guns.BulletType; +import com.s5gi.giGuns.guns.IGun; +import org.bukkit.*; +import org.bukkit.block.Block; +import org.bukkit.entity.Entity; +import org.bukkit.entity.LivingEntity; +import org.bukkit.inventory.CraftingRecipe; +import org.bukkit.inventory.ShapedRecipe; +import org.bukkit.util.Vector; + +import java.util.List; + +public class rocketJumper implements IGun { + @Override + public String name() { + return "&6Rocket Jumper"; + } + + @Override + public List description() { + return List.of("&6Fictional", "&6Rocket jump like your a tf2 player..."); + } + + @Override + public BulletType bulletType() { + return BulletType.HEAVY; + } + + @Override + public List sound() { + return List.of(Sound.ENTITY_GENERIC_EXPLODE, Sound.ENTITY_FIREWORK_ROCKET_BLAST); + } + + @Override + public float soundPitch() { + return 1f; + } + + @Override + public void onHitEntity(Location location, LivingEntity entity) { + explode(location); + } + + @Override + public void onHitBlock(Location location, Block block) { + explode(location); + } + + private static void explode(Location location) { + //location.getWorld().createExplosion(location, 1f, false, false); + for (Entity entity : location.getWorld().getNearbyEntities(location, 5f, 5f, 5f)) { + + if (entity instanceof LivingEntity livingEntity) { + Location playerLocation = livingEntity.getLocation(); + + // Calculate direction vector (from point to player) + Vector direction = playerLocation.toVector().subtract(location.toVector()); + + // Normalize the vector to keep consistent speed + direction.normalize().multiply(2); // Change the multiplier for speed adjustments + + // Apply velocity to the player + livingEntity.setVelocity(livingEntity.getVelocity().add(direction)); + } + } + location.getWorld().spawnParticle(Particle.EXPLOSION, location, 10, 0.1f, 0.1f, 0.1f); + } + + @Override + public boolean makeBlood() { + return false; + } + + @Override + public double bulletSpeed() {return 4;} + + @Override + public double damage() { + return 0; + } + + @Override + public int cooldown() { + return 40; + } + + @Override + public int textureId() { + return 7; + } + + @Override + public CraftingRecipe recipe() { + ShapedRecipe recipe = new ShapedRecipe(NamespacedKey.fromString("giguns:rocketjumper"), compileGun()); + recipe.shape("III","rgT","IIs"); + recipe.setIngredient('T', Material.TNT); + recipe.setIngredient('I', Material.IRON_BLOCK); + recipe.setIngredient('r', Material.BREEZE_ROD); + recipe.setIngredient('s', Material.STICK); + recipe.setIngredient('g', Material.SLIME_BLOCK); + return recipe; + } +} diff --git a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/crossbow.json b/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/crossbow.json index acf2137..493efe9 100644 --- a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/crossbow.json +++ b/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/crossbow.json @@ -55,8 +55,14 @@ "type": "model", "model": "item/m4a1s" } + }, + { + "when": "gunmodel7", + "model": { + "type": "model", + "model": "item/rocketjumper" + } } - ] } } \ No newline at end of file diff --git a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/diamond_hoe.json b/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/diamond_hoe.json deleted file mode 100644 index 88d315f..0000000 --- a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/diamond_hoe.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "model": { - "type": "select", - "property": "custom_model_data", - "fallback": { - "type": "model", - "model": "item/diamond_hoe" - }, - "cases": [ - { - "when": "gunmodel0", - "model": { - "type": "model", - "model": "item/deserteagle" - } - }, - { - "when": "gunmodel1", - "model": { - "type": "model", - "model": "item/ak47" - } - } - ] - } -} \ No newline at end of file diff --git a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/iron_hoe.json b/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/iron_hoe.json deleted file mode 100644 index 2fb674d..0000000 --- a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/iron_hoe.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "model": { - "type": "select", - "property": "custom_model_data", - "fallback": { - "type": "model", - "model": "item/iron_hoe" - }, - "cases": [ - { - "when": "gunmodel0", - "model": { - "type": "model", - "model": "item/hecateii" - } - } - ] - } -} \ No newline at end of file diff --git a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/stone_hoe.json b/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/stone_hoe.json deleted file mode 100644 index c367ad9..0000000 --- a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/stone_hoe.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "model": { - "type": "select", - "property": "custom_model_data", - "fallback": { - "type": "model", - "model": "item/stone_hoe" - }, - "cases": [ - { - "when": "gunmodel0", - "model": { - "type": "model", - "model": "item/barettm82" - } - } - ] - } -} \ No newline at end of file diff --git a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/wooden_hoe.json b/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/wooden_hoe.json deleted file mode 100644 index 4f3d88b..0000000 --- a/src/main/resources/TexturePack/giGuns Pack Java/assets/minecraft/items/wooden_hoe.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "model": { - "type": "select", - "property": "custom_model_data", - "fallback": { - "type": "model", - "model": "item/wooden_hoe" - }, - "cases": [ - { - "when": "gunmodel0", - "model": { - "type": "model", - "model": "item/1911" - } - } - ] - } -} \ No newline at end of file diff --git a/src/main/resources/TexturePack/giGuns Pack Java/bb/m1bazooka.bbmodel b/src/main/resources/TexturePack/giGuns Pack Java/bb/m1bazooka.bbmodel index d05e60e..4e8c298 100644 --- a/src/main/resources/TexturePack/giGuns Pack Java/bb/m1bazooka.bbmodel +++ b/src/main/resources/TexturePack/giGuns Pack Java/bb/m1bazooka.bbmodel @@ -1 +1 @@ -{"meta":{"format_version":"4.10","model_format":"java_block","box_uv":false},"name":"m1bazooka","parent":"","ambientocclusion":true,"front_gui_light":false,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":64,"height":64},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[7,3,-8],"to":[10,6,23],"autouv":0,"color":8,"origin":[7,3,7],"faces":{"north":{"uv":[10,11,13,14],"texture":0},"east":{"uv":[0,0,31,3],"texture":0},"south":{"uv":[12,6,15,9],"texture":0},"west":{"uv":[0,3,31,6],"texture":0},"up":{"uv":[3,37,0,6],"texture":0},"down":{"uv":[6,6,3,37],"texture":0}},"type":"cube","uuid":"86311147-e2b4-fbf8-bfd5-6cd90189acdc"},{"name":"trigger","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[8,1.75,-3.75],"to":[9,3,-3.5],"autouv":0,"color":6,"rotation":[22.5,0,0],"origin":[8,1,-3],"faces":{"north":{"uv":[15,6,16,7],"texture":0},"east":{"uv":[15,7,16,8],"texture":0},"south":{"uv":[15,8,16,9],"texture":0},"west":{"uv":[15,9,16,10],"texture":0},"up":{"uv":[16,11,15,10],"texture":0},"down":{"uv":[16,11,15,12],"texture":0}},"type":"cube","uuid":"dcc7e1f4-9a34-2e63-f76a-b6ee3228e137"},{"name":"grip","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[8,-1,7],"to":[9,4,10],"autouv":0,"color":7,"rotation":[-22.5,0,0],"origin":[8,2,8],"faces":{"north":{"uv":[10,14,11,19],"texture":0},"east":{"uv":[6,6,9,11],"texture":0},"south":{"uv":[11,14,12,19],"texture":0},"west":{"uv":[9,6,12,11],"texture":0},"up":{"uv":[13,17,12,14],"texture":0},"down":{"uv":[14,14,13,17],"texture":0}},"type":"cube","uuid":"4f9f0937-5261-a615-73c3-382dd5e6c83e"},{"name":"grip2","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[8,-1,-2],"to":[9,4,0],"autouv":0,"color":7,"rotation":[-22.5,0,0],"origin":[8,2,-1],"faces":{"north":{"uv":[13,9,14,14],"texture":0},"east":{"uv":[6,11,8,16],"texture":0},"south":{"uv":[14,9,15,14],"texture":0},"west":{"uv":[8,11,10,16],"texture":0},"up":{"uv":[13,11,12,9],"texture":0},"down":{"uv":[15,14,14,16],"texture":0}},"type":"cube","uuid":"fcf2de8a-9554-91be-bfe3-c1e17df90922"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[6.5,3,-8],"to":[7,7,-7],"autouv":0,"color":6,"origin":[5.5,4,-8],"faces":{"north":{"uv":[28,27,28.5,31],"texture":0},"east":{"uv":[7,17,8,21],"texture":0},"south":{"uv":[24,34,24.5,38],"texture":0},"west":{"uv":[11,23,12,27],"texture":0},"up":{"uv":[27,18,27.5,19],"texture":0},"down":{"uv":[22,26,22.5,27],"texture":0}},"type":"cube","uuid":"41f79c5c-7065-a978-8ecb-ea2d4bee8049"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[6.5,3,3],"to":[7,7,4],"autouv":0,"color":6,"origin":[5.5,4,3],"faces":{"north":{"uv":[16,14,16.5,18],"texture":0},"east":{"uv":[13,18,14,22],"texture":0},"south":{"uv":[15,18,15.5,22],"texture":0},"west":{"uv":[8,19,9,23],"texture":0},"up":{"uv":[14,28,14.5,29],"texture":0},"down":{"uv":[17,19,17.5,20],"texture":0}},"type":"cube","uuid":"7069999e-99c3-14b7-7bd6-3f3cd600faa3"}],"outliner":[{"name":"group","origin":[8,2,8],"color":0,"uuid":"2deeb729-5933-98ee-de04-a0f6893e0830","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"selected":false,"children":["dcc7e1f4-9a34-2e63-f76a-b6ee3228e137","fcf2de8a-9554-91be-bfe3-c1e17df90922","4f9f0937-5261-a615-73c3-382dd5e6c83e","86311147-e2b4-fbf8-bfd5-6cd90189acdc","41f79c5c-7065-a978-8ecb-ea2d4bee8049","7069999e-99c3-14b7-7bd6-3f3cd600faa3"]}],"textures":[{"path":"C:\\Users\\5gi\\AppData\\Roaming\\ModrinthApp\\profiles\\Fabulously Optimized\\resourcepacks\\giGuns Pack Java\\assets\\minecraft\\textures\\item\\m1bazooka.png","name":"m1bazooka.png","folder":"item","namespace":"minecraft","id":"0","group":"","width":64,"height":64,"uv_width":64,"uv_height":64,"particle":true,"use_as_default":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","pbr_channel":"color","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"a0bf46b2-32fb-8b00-fb64-612202f16ff0","relative_path":"../assets/minecraft/textures/item/m1bazooka.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAcFJREFUeF7tmT1uwkAQRtcHyBmo0kEb5RAUkSgsIvkmKXORyBKIAinHQClBVK44Q5p0jky0zsqyYX9mvTvej8pC3vHsmzdjY7KX91UtAn0+3/ZZoEu3l80AAAagBTADQg2iqIfgw27fy+U7X7Xfnz+Ooqqq4JPcpYCDdwEAgAH9LZBvL2K3nl2tO/w8ptcCKoDmeDmfpTEDytP/qCkWf8dJGdAHoDwJ1tVviqh9F0gegGwAdQY0Bjy9PtdfmwNbE7QNSA5A9zG1WIjrbwZpgOz/yRrQAFA3JwF0B9+kAajP2CoAuWnTzZue7/KMr7t2cAbIFriVtC0I3eTGOI8EwBiJ+roGAAy9FNVpAV9VGTPuXQPUZGIcYq6wAOBeC8AAhYBJC5ic66qxy3qjFnC5kFwbGxhrALYbsV1HAb8vhjUA24QAILL3B6MbYGuOr3UAYPIc4KsKIeN6NyC2odeFDQC+WyB6A3z3X/IAfAN2jc/2Dw3Xjcv1AEBFkmscGMC1clR5wwAqklzjwACulaPKGwZQkeQaBwZwrRxV3jCAiiTXODCAa+Wo8oYBVCS5xoEBXCtHlTcMoCLJNQ4M4Fo5qrx/Ae8wSlCz0qeVAAAAAElFTkSuQmCC"}],"display":{"thirdperson_righthand":{"rotation":[0,-9.25,0],"translation":[-0.25,6.25,8.5]},"thirdperson_lefthand":{"translation":[0,5.25,10.75]},"firstperson_righthand":{"translation":[10.5,7,8]},"gui":{"rotation":[20,128,3],"translation":[0.5,1.25,0],"scale":[0.6,0.6,0.6]}}} \ No newline at end of file +{"meta":{"format_version":"4.10","model_format":"java_block","box_uv":false},"name":"m1bazooka","parent":"","ambientocclusion":true,"front_gui_light":false,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":64,"height":64},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[7,3,-8],"to":[10,6,23],"autouv":0,"color":8,"origin":[7,3,7],"faces":{"north":{"uv":[10,11,13,14],"texture":0},"east":{"uv":[0,0,31,3],"texture":0},"south":{"uv":[12,6,15,9],"texture":0},"west":{"uv":[0,3,31,6],"texture":0},"up":{"uv":[3,37,0,6],"texture":0},"down":{"uv":[6,6,3,37],"texture":0}},"type":"cube","uuid":"86311147-e2b4-fbf8-bfd5-6cd90189acdc"},{"name":"trigger","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[8,1.75,-3.75],"to":[9,3,-3.5],"autouv":0,"color":6,"rotation":[22.5,0,0],"origin":[8,1,-3],"faces":{"north":{"uv":[15,6,16,7],"texture":0},"east":{"uv":[15,7,16,8],"texture":0},"south":{"uv":[15,8,16,9],"texture":0},"west":{"uv":[15,9,16,10],"texture":0},"up":{"uv":[16,11,15,10],"texture":0},"down":{"uv":[16,11,15,12],"texture":0}},"type":"cube","uuid":"dcc7e1f4-9a34-2e63-f76a-b6ee3228e137"},{"name":"grip","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[8,-1,7],"to":[9,4,10],"autouv":0,"color":7,"rotation":[-22.5,0,0],"origin":[8,2,8],"faces":{"north":{"uv":[10,14,11,19],"texture":0},"east":{"uv":[6,6,9,11],"texture":0},"south":{"uv":[11,14,12,19],"texture":0},"west":{"uv":[9,6,12,11],"texture":0},"up":{"uv":[13,17,12,14],"texture":0},"down":{"uv":[14,14,13,17],"texture":0}},"type":"cube","uuid":"4f9f0937-5261-a615-73c3-382dd5e6c83e"},{"name":"grip2","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[8,-1,-2],"to":[9,4,0],"autouv":0,"color":7,"rotation":[-22.5,0,0],"origin":[8,2,-1],"faces":{"north":{"uv":[13,9,14,14],"texture":0},"east":{"uv":[6,11,8,16],"texture":0},"south":{"uv":[14,9,15,14],"texture":0},"west":{"uv":[8,11,10,16],"texture":0},"up":{"uv":[13,11,12,9],"texture":0},"down":{"uv":[15,14,14,16],"texture":0}},"type":"cube","uuid":"fcf2de8a-9554-91be-bfe3-c1e17df90922"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[6.5,3,-8],"to":[7,7,-7],"autouv":0,"color":6,"origin":[5.5,4,-8],"faces":{"north":{"uv":[28,27,28.5,31],"texture":0},"east":{"uv":[7,17,8,21],"texture":0},"south":{"uv":[24,34,24.5,38],"texture":0},"west":{"uv":[11,23,12,27],"texture":0},"up":{"uv":[27,18,27.5,19],"texture":0},"down":{"uv":[22,26,22.5,27],"texture":0}},"type":"cube","uuid":"41f79c5c-7065-a978-8ecb-ea2d4bee8049"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[6.5,3,3],"to":[7,7,4],"autouv":0,"color":6,"origin":[5.5,4,3],"faces":{"north":{"uv":[16,14,16.5,18],"texture":0},"east":{"uv":[13,18,14,22],"texture":0},"south":{"uv":[15,18,15.5,22],"texture":0},"west":{"uv":[8,19,9,23],"texture":0},"up":{"uv":[14,28,14.5,29],"texture":0},"down":{"uv":[17,19,17.5,20],"texture":0}},"type":"cube","uuid":"7069999e-99c3-14b7-7bd6-3f3cd600faa3"}],"outliner":[{"name":"group","origin":[8,2,8],"color":0,"uuid":"2deeb729-5933-98ee-de04-a0f6893e0830","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"selected":false,"children":["dcc7e1f4-9a34-2e63-f76a-b6ee3228e137","fcf2de8a-9554-91be-bfe3-c1e17df90922","4f9f0937-5261-a615-73c3-382dd5e6c83e","86311147-e2b4-fbf8-bfd5-6cd90189acdc","41f79c5c-7065-a978-8ecb-ea2d4bee8049","7069999e-99c3-14b7-7bd6-3f3cd600faa3"]}],"textures":[{"path":"D:\\Projects\\Java\\giGuns\\src\\main\\resources\\TexturePack\\giGuns Pack Java\\assets\\minecraft\\textures\\item\\m1bazooka.png","name":"m1bazooka.png","folder":"item","namespace":"minecraft","id":"0","group":"","width":64,"height":64,"uv_width":64,"uv_height":64,"particle":true,"use_as_default":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","pbr_channel":"color","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"a0bf46b2-32fb-8b00-fb64-612202f16ff0","relative_path":"../assets/minecraft/textures/item/m1bazooka.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAcFJREFUeF7tmT1uwkAQRtcHyBmo0kEb5RAUkSgsIvkmKXORyBKIAinHQClBVK44Q5p0jky0zsqyYX9mvTvej8pC3vHsmzdjY7KX91UtAn0+3/ZZoEu3l80AAAagBTADQg2iqIfgw27fy+U7X7Xfnz+Ooqqq4JPcpYCDdwEAgAH9LZBvL2K3nl2tO/w8ptcCKoDmeDmfpTEDytP/qCkWf8dJGdAHoDwJ1tVviqh9F0gegGwAdQY0Bjy9PtdfmwNbE7QNSA5A9zG1WIjrbwZpgOz/yRrQAFA3JwF0B9+kAajP2CoAuWnTzZue7/KMr7t2cAbIFriVtC0I3eTGOI8EwBiJ+roGAAy9FNVpAV9VGTPuXQPUZGIcYq6wAOBeC8AAhYBJC5ic66qxy3qjFnC5kFwbGxhrALYbsV1HAb8vhjUA24QAILL3B6MbYGuOr3UAYPIc4KsKIeN6NyC2odeFDQC+WyB6A3z3X/IAfAN2jc/2Dw3Xjcv1AEBFkmscGMC1clR5wwAqklzjwACulaPKGwZQkeQaBwZwrRxV3jCAiiTXODCAa+Wo8oYBVCS5xoEBXCtHlTcMoCLJNQ4M4Fo5qrx/Ae8wSlCz0qeVAAAAAElFTkSuQmCC"}],"display":{"thirdperson_righthand":{"rotation":[0,-9.25,0],"translation":[-0.25,6.25,8.5]},"thirdperson_lefthand":{"translation":[0,5.25,10.75]},"firstperson_righthand":{"translation":[10.5,7,8]},"firstperson_lefthand":{"translation":[14.75,0,0]},"ground":{"translation":[0,6.75,0]},"gui":{"rotation":[20,128,3],"translation":[0.5,1.25,0],"scale":[0.6,0.6,0.6]},"fixed":{"rotation":[0,-90,0],"translation":[-0.25,1.75,0],"scale":[0.55,0.55,0.55]}}} \ No newline at end of file diff --git a/src/main/resources/TexturePack/giGuns.zip b/src/main/resources/TexturePack/giGuns.zip deleted file mode 100644 index b0eebec..0000000 Binary files a/src/main/resources/TexturePack/giGuns.zip and /dev/null differ diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 0db581b..a50fad5 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,5 +5,7 @@ api-version: '1.21' commands: getgun: description: gun + permission: giguns.getgun getammo: - description: ammo \ No newline at end of file + description: ammo + permission: giguns.getammo \ No newline at end of file