Spigot Plugin

DigitalCircusQuest

Hello, i want a mod to have the amazing digital circus and i want all members, they are asking u for help. To get in circus u need 3 string, 1 in middle top, 1 middle left and one middle bottom and 3 iron blocks on right side top, bottom and middle. Gangle is asking u to ask caine to fix her mask, Zooble is asking u to get his body part box from his room, Jax is asking u to bring him to Pomni and Pomni asking u to bring Jax to her, Kinger is asking u to b bring a bucket to him that is hidding in cafe and Ragatha needs . When u do they will reward u with each one giving u 1 iron ingot for

Read the full description

later. Caine will then come up to u and ask u , to find Bubble. Bubble will be hindding in Kingers pillow fotress. When u bring Bubble to Caine, Caine will reward u with a adventure that sends u back to ur world, but the 6 circus members needs stuff. For Zooble, u have to get gold ingot to him, for Gangle, u have to bring her a golden nugget, Kinger needs copper ingot, Jax and Pomni needs 3 diamonds, when u give to Jax and Pomni the diamonds, they will start to fight who will have one of the diamond because u gave them 3 and when Jax gets the last diamond Pomni jumps on him and kisses him, so Jax hesitates and gives her the last diamond and for Ragatha, u give to her a netherite ingot.when u do u get Zoobles arm so u can reach from far and attack from far, Gangels mask scares adult hostile mobs, Ragathas button eye scares baby hostile mobs, Jaxs tail gives u 25% speed, Pomnis hat gives u haste to mine faster and Kingers cloth gives u 50% protection. But dont forget to build digitl circus.

src/main/java/eu/codexe/digitalcircus/world/CircusWorldEvents.java
package eu.codexe.digitalcircus.world;

import eu.codexe.digitalcircus.config.ModConfig;
import eu.codexe.digitalcircus.item.ModItems;
import net.fabricmc.fabric.api.event.player.UseItemCallback;
import net.fabricmc.fabric.api.event.player.AttackEntityCallback;
import net.fabricmc.fabric.api.entity.event.v1.ShieldBlockCallback;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.entity.mob.Monster;
import net.minecraft.item.ItemStack;
import net.minecraft.text.Text;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.world.World;

public final class CircusWorldEvents {
    private CircusWorldEvents() {
    }

    public static void register(ModConfig config) {
        UseItemCallback.EVENT.register((player, world, hand) -> {
            ItemStack stack = player.getStackInHand(hand);
            if (stack.isOf(ModItems.ZOOBLE_ARM) || stack.isOf(ModItems.JAX_TAIL) || stack.isOf(ModItems.POMNI_HAT)) {
                player.sendMessage(Text.literal("The circus power reacts to your hand."), true);
                return ActionResult.SUCCESS;
            }
            return ActionResult.PASS;
        });

        AttackEntityCallback.EVENT.register((player, world, hand, entity, hitResult) -> {
            if (player.getMainHandStack().isOf(ModItems.ZOOBLE_ARM) && entity instanceof LivingEntity living) {
                if (living.distanceTo(player) <= 8.0F) {
                    living.setOnFireFor(2);
                }
                return ActionResult.SUCCESS;
            }
            return ActionResult.PASS;
        });

        ShieldBlockCallback.EVENT.register((player, world, hand, source, blockedDamage) -> {
            if (player.getInventory().armor.get(1).isOf(ModItems.KINGER_CLOTH)) {
                return true;
            }
            return false;
        });
    }
}