yaboiwk

A red and purple scythe that pulls in attacked entities

Kodari AI
KodariJul 2 at 9:18 pm 7

I’ll create a plugin that adds a custom “Reaper’s Scythe” — a red/purple themed weapon that pulls hit entities toward the wielder.

ScythePull
Adds a custom red-and-purple Reaper's Scythe weapon. When a player strikes an entity with the scythe, the target is yanked toward the wielder with a burst of particles and sound. Includes a command to obtain the scythe, persistent data tagging so only the real item triggers the effect, and configurable pull strength and cooldown via config.yml.

Created ScythePull: give the scythe with /scythe, hit an entity to yank it toward you (particles + sound), config-adjustable pull strength and cooldown via config.yml, /scythe reload to hot-reload settings.

yaboiwk

can you turn it into fabric

Kodari AI
KodariJul 2 at 9:28 pm 12

Converting the whole project from Bukkit to a Fabric mod — new build system, mod structure, and mechanics (Fabric API’s AttackEntityCallback instead of Bukkit events). Removing the old Bukkit files and replacing with a full Fabric mod.

Deleting the Bukkit-era files, then creating the Fabric mod structure.

Fabric mod is set up:

  • ReaperScytheItem — diamond-tier sword variant, dark-purple name, epic rarity.

  • ScythePullMod — registers the item into the Combat creative tab and hooks AttackEntityCallback: on hit, pulls the target toward the attacker, plays entity.evoker.cast_spell, and spawns red + purple dust particle bursts.

  • ScytheConfig — JSON config at config/scythepull.json for pullStrength and cooldownSeconds.

Note: no texture PNG was generated (binary assets can’t be authored here) — drop a reaper_scythe.png into src/main/resources/assets/scythepull/textures/item/ to give it a real icon; until then it’ll render as the missing-texture placeholder.

yaboiwk

where do i download

Kodari AI
KodariJul 2 at 9:30 pm 2

There’s no hosted download here — this environment only generates the source code, not a compiled .jar. To get a usable mod file you need to build it yourself:

  1. Get the project files onto your machine (export/download the project from wherever Kodari gives you the file list/zip option in this UI).

  2. Build with Gradle (Fabric mods use Gradle, not Maven):

    Plain Text
    ./gradlew build
    

    (Windows: gradlew.bat build)

  3. Find the jar in build/libs/scythepull-<version>.jar (name comes from gradle.properties/settings.gradle).

  4. Install it:

    • Put that jar in your Minecraft mods folder

    • Make sure Fabric Loader + Fabric API matching your Minecraft version are also in mods

    • Launch with the Fabric profile

If you don’t have Java/Gradle set up locally, you’ll need a JDK (17+ for modern Fabric versions) installed first — Gradle wrapper handles the rest automatically.

Let me know if you want me to double check the gradle.properties Minecraft/Fabric API version pins so the build actually resolves correctly.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 307
src/main/java/com/scythepull/ScythePullMod.java
package com.scythepull;

import com.scythepull.config.ScytheConfig;
import com.scythepull.item.ModItems;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.player.AttackEntityCallback;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.ItemGroups;
import net.minecraft.item.ItemStack;
import net.minecraft.particle.DustParticleEffect;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.sound.SoundCategory;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.math.Vec3d;
import org.joml.Vector3f;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class ScythePullMod implements ModInitializer {
	public static final String MOD_ID = "scythepull";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

	private static final Map<UUID, Long> LAST_USE = new HashMap<>();

	@Override
	public void onInitialize() {
		ScytheConfig.load();
		ModItems.register();

		ItemGroupEvents.modifyEntriesEvent(ItemGroups.COMBAT).register(entries ->
				entries.add(ModItems.REAPER_SCYTHE));

		AttackEntityCallback.EVENT.register((player, world, hand, entity, hitResult) -> {
			if (world.isClient) {
				return ActionResult.PASS;
			}
			if (hand != Hand.MAIN_HAND) {
				return ActionResult.PASS;
			}

			ItemStack stack = player.getMainHandStack();
			if (!stack.isOf(ModItems.REAPER_SCYTHE)) {
				return ActionResult.PASS;
			}

			long now = world.getTime();
			long cooldownTicks = (long) (ScytheConfig.COOLDOWN_SECONDS * 20L);
			Long last = LAST_USE.get(player.getUuid());
			if (last != null && now - last < cooldownTicks) {
				return ActionResult.PASS;
			}
			LAST_USE.put(player.getUuid(), now);

			Vec3d direction = player.getPos().subtract(entity.getPos()).normalize();
			double strength = ScytheConfig.PULL_STRENGTH;
			entity.setVelocity(direction.x * strength, Math.max(entity.getVelocity().y, 0.35), direction.z * strength);
			entity.velocityModified = true;
			if (entity instanceof ServerPlayerEntity targetPlayer) {
				targetPlayer.networkHandler.sendPacket(new net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket(entity));
			}

			world.playSound(null, entity.getBlockPos(), SoundEvents.ENTITY_EVOKER_CAST_SPELL, SoundCategory.PLAYERS, 0.6f, 1.4f);

			if (world instanceof net.minecraft.server.world.ServerWorld serverWorld) {
				DustParticleEffect red = new DustParticleEffect(new Vector3f(0.8f, 0.05f, 0.1f), 1.2f);
				DustParticleEffect purple = new DustParticleEffect(new Vector3f(0.55f, 0.1f, 0.8f), 1.2f);
				serverWorld.spawnParticles(red, entity.getX(), entity.getY() + entity.getHeight() / 2, entity.getZ(), 8, 0.3, 0.3, 0.3, 0.01);
				serverWorld.spawnParticles(purple, entity.getX(), entity.getY() + entity.getHeight() / 2, entity.getZ(), 8, 0.3, 0.3, 0.3, 0.01);
			}

			return ActionResult.PASS;
		});
	}
}