Влад Ткачук

Primitive Minecraft survival rock item, heavy rough gray stone, starter gathering tool and melee weapon inspired by survival games, used to hit trees and rocks, irregular chunky silhouette, vanilla-compatible pixel art, transparent background, 32x32 item texture

[Viewing 1 image]

1 image attached
Kodari AI
KodariAug 30 at 2:52 pm 1
StoneStarterTool
Adds a primitive stone rock item to Minecraft as a starter gathering tool and melee weapon. The plugin registers a custom item with vanilla-compatible 32x32 pixel art, enabling players to hit trees and rocks for early-game resource collection. Includes crafting recipes, durability mechanics, and configurable damage values for survival gameplay integration.

I’ll create a self-contained Paper plugin that adds the primitive rock item, a /rock command, a survival crafting recipe, configurable display text, and a small melee damage bonus.

Created the new PrimitiveRock Paper plugin with:

  • Primitive rock item using configurable material, name, lore, and custom model data

  • /rock [player] command with permission support

  • Survival crafting recipe using flint and sticks

  • Persistent item identification

  • Configurable melee damage bonus

  • Automatic dropping of items when inventory is full

  • Paper 1.21.4 Gradle setup with XSeries compatibility

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 278
src/main/java/com/kodari/primitiverock/PrimitiveRockPlugin.java
package com.kodari.primitiverock;

import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.RecipeChoice;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;

import com.cryptomorin.xseries.XMaterial;

public final class PrimitiveRockPlugin extends JavaPlugin {

    private RockItem rockItem;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        rockItem = new RockItem(this);
        getServer().getPluginManager().registerEvents(new RockListener(this), this);

        RockCommand rockCommand = new RockCommand(this);
        if (getCommand("rock") != null) {
            getCommand("rock").setExecutor(rockCommand);
            getCommand("rock").setTabCompleter(rockCommand);
        }

        registerRecipe();
    }

    public RockItem getRockItem() {
        return rockItem;
    }

    private void registerRecipe() {
        Material flint = XMaterial.matchXMaterial("FLINT")
                .map(XMaterial::parseMaterial)
                .orElse(null);
        Material stick = XMaterial.matchXMaterial("STICK")
                .map(XMaterial::parseMaterial)
                .orElse(null);

        if (flint == null || stick == null) {
            getLogger().warning("Primitive rock recipe could not be registered on this server version.");
            return;
        }

        ShapedRecipe recipe = new ShapedRecipe(new NamespacedKey(this, "primitive_rock"), rockItem.create());
        recipe.shape(" F", "S ");
        recipe.setIngredient('F', new RecipeChoice.MaterialChoice(flint));
        recipe.setIngredient('S', new RecipeChoice.MaterialChoice(stick));
        Bukkit.addRecipe(recipe);
    }
}