shovel.yml

Sample Iron Shovel: Here's an example of how you might define an iron shovel item in a YAML file for CoreExtensions:

# shovel.yml
shovels:
  shovel_example_1:
    name: "Test Iron Shovel" # Item name (not included in lang file)
    namespace: coreextensions # Namespace
    id: iron_shovel # Item ID
    attackDamage: 1.5 # Attack damage (double/float type)
    attackSpeed: -3.0 # Attack speed (double/float type)
    durability: 250 # Durability (integer, int type)
    repairMaterial: minecraft:iron_ingot # Repair material (required item for anvil repair)

In this example, the iron shovel item named "shovel_example_1" is defined with properties including its name, namespace, ID, attack damage, attack speed, durability, and repair material. The attackDamage property determines the amount of damage the shovel deals (which may not be relevant for a shovel), and the attackSpeed property affects the tool's attack speed. The durability property sets the maximum durability of the shovel, and the repairMaterial property specifies the required item for repairing the shovel in an anvil.

Keep in mind that shovels are primarily used for digging blocks rather than dealing damage. You can adjust the values based on your desired gameplay mechanics. This example demonstrates how you can define various properties for a custom iron shovel using YAML in a CoreExtensions data pack.

Last updated