diff --git a/README.md b/README.md index 73a3bbe..e621175 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,22 @@ Adds in Scythes, a new weapon that increases attack reach by 2.6m instead of att **Also adds in the Cloud Scythe made of calcite**, a new type of scythe that gives the player holding it a Double Jump until they touch the ground. # Resource Pack -- Install [Polymer](https://modrinth.com/mod/polymer) - - Follow [this guide](https://polymer.pb4.eu/latest/user/resource-pack-hosting/) for up-to-date details on how to host your pack for your specific scenario. +- Install [Polymer](https://modrinth.com/mod/polymer) (you may already have it installed as a dependency) +- Follow [this guide](https://polymer.pb4.eu/latest/user/resource-pack-hosting/) for up-to-date details on how to host your pack for your specific scenario. + +- **Make sure to run** `/polymer generate-pack` and rejoin your server to see the textures properly. + +# Balancing + +Scythes are balanced to have less attack speed and damage than an axe, but having slightly more damage than a sword; and having higher reach for both + +Scythes lose durability the same as swords, and the Cloud Scythe uses a bit of durability on double jump + +## Bedrock / Geyser + +Bedrock players playing through geyser will not be able to see the custom textures. + +Bedrock players get 4 extra damage points due to the fact they do not have access to the extra reach attribute java has # Recipes ![Crafting Recipe](https://cdn.modrinth.com/data/cached_images/82291a48888473be6a6e7a6282180b81a73ff226.png) diff --git a/gradle.properties b/gradle.properties index 449ec1a..90d1a02 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.21.1 yarn_mappings=1.21.1+build.3 loader_version=0.16.5 # Mod Properties -mod_version=1.0.1 +mod_version=1.0.2 maven_group=org.agmas archives_base_name=Scythes # Dependencies diff --git a/src/main/java/org/agmas/scythes/items/Scythe.java b/src/main/java/org/agmas/scythes/items/Scythe.java index b9e3bf3..8bf5b6a 100644 --- a/src/main/java/org/agmas/scythes/items/Scythe.java +++ b/src/main/java/org/agmas/scythes/items/Scythe.java @@ -10,6 +10,8 @@ import net.minecraft.component.type.AttributeModifierSlot; import net.minecraft.component.type.AttributeModifiersComponent; import net.minecraft.entity.Entity; +import net.minecraft.entity.EquipmentSlot; +import net.minecraft.entity.LivingEntity; import net.minecraft.entity.attribute.EntityAttributeModifier; import net.minecraft.entity.attribute.EntityAttributes; import net.minecraft.entity.damage.DamageSource; @@ -64,6 +66,7 @@ public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, spe.setVelocity(spe.getRotationVector().multiply(1.3).x,spe.getRotationVector().multiply(0.9).y,spe.getRotationVector().multiply(1.3).z); spe.velocityDirty = true; spe.velocityModified = true; + stack.damage(1, spe, EquipmentSlot.MAINHAND); spe.setFrozenTicks(10); abilities.flying = false; spe.networkHandler.sendPacket(new PlayerAbilitiesS2CPacket(abilities)); @@ -124,6 +127,9 @@ public ItemStack getPolymerItemStack(ItemStack itemStack, TooltipType tooltipTyp return itemStack1; } + public void postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) { + stack.damage(1, attacker, EquipmentSlot.MAINHAND); + } @Override public Item getPolymerItem(ItemStack itemStack, @Nullable ServerPlayerEntity player) { try {