Skip to content

Commit

Permalink
readme upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
agmass committed Sep 15, 2024
1 parent 47bd906 commit 80d5035
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/agmas/scythes/items/Scythe.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 80d5035

Please sign in to comment.