saultapia0512-netizen

. Magical Book

Add a magical book inspired by the monster-catching book from the movie.

The player can hold the book in their hand.

The book should have a detailed 3D model.

The book should be animated when opening, closing, and activating its magic.

Use GeckoLib for the book's animations if necessary.

The book should be able to interact with nearby mobs.

The book should have a magical monster-catching mechanic.

  1. Typewriter

Add a functional typewriter block.

When the player interacts with the typewriter, open a custom GUI.

The GUI should allow the player to:

Select which mobs/creatures they want the magical book to capture.

Choose how many mobs will be captured.

Show a counter such as 4/19, 6/19, 10/19, etc.

Allow the player to increase or decrease the number.

Allow the player to select mobs to capture or release.

Save the player's selections.

The maximum should be 19 mobs.

  1. Book Activation

When the player has selected the desired mobs and the counter reaches 19/19, the magical book becomes ready.

When the player activates/opens the book:

The book should fall or appear on the ground.

It should open automatically.

Create a powerful magical vortex above/around the book.

The vortex should visually look like a real spiral.

Add particles, magical effects, light effects and movement.

Nearby selected mobs should be pulled toward the vortex.

The mobs should move in a spiraling/circular motion toward the book rather than simply moving in a straight line.

When a mob reaches the book, it should be captured and disappear from the world.

Play appropriate magical sounds.

Show visual effects while each mob is being captured.

When all selected mobs have been captured, stop the vortex and close the book.

  1. Visual Quality

Make the mod as polished and detailed as possible.

Include:

High-quality 3D models.

Animated book.

Animated typewriter if possible.

Custom GUI.

Particles.

Magical vortex effects.

Sounds.

Smooth animations.

Proper item and block textures.

Proper Forge registration and resource files.

  1. Technical Requirements

Target:

Minecraft Java Edition 1.20.1 Forge 47.x

The mod may require GeckoLib as a dependency for animations. Configure the project correctly so Minecraft knows that GeckoLib is required.

If GeckoLib is required, use the correct GeckoLib version compatible with Minecraft 1.20.1 Forge.

Generate the complete working mod project, including:

Java source code build.gradle gradle.properties settings.gradle mods.toml Resources Models Textures Animations GUI Particles Sounds GeckoLib integration All required registration classes

The final result should compile into a .jar mod for Minecraft Java 1.20.1 Forge.

Do not make it just a simple example or prototype. Build the complete functional mod and make the mechanics described above actually work in-game.

Kodari AI
KodariAug 26 at 8:37 pm 5
ArcaneCodex
A Forge 1.20.1 mod adding an animated magical monster-catching book with GeckoLib 3D models. Players configure capture targets via a typewriter block GUI, selecting up to 19 mobs. When fully configured, activating the book spawns a ground vortex with spiral particle effects that pulls and captures nearby selected mobs. Features custom GUI, animated book/typewriter models, magical particles, sounds, and complete Forge registration.
  1. Create the Forge 1.20.1 project and registry/build metadata.

  2. Implement the magical book, persistent 19-mob selection data, typewriter block/menu/screen, and GeckoLib item model animation.

  3. Implement the server-side vortex capture sequence with spiral movement, particles, sounds, and cleanup.

  4. Add block/item models, GUI resources, language data, and mod metadata.

Created the complete Forge 1.20.1 project for Magical Book, including:

  • Forge 47.2.0 Gradle setup with Java 17.

  • GeckoLib 4.4.9 dependency and GeckoLib book model resources.

  • Magical Book item with 3D geometry, custom renderer, use animation, tooltips, and activation logic.

  • Enchanted Typewriter block with block entity and custom GUI.

  • Persistent creature selections with a maximum capacity of 19.

  • Creature selection GUI supporting:

    • Cow, pig, chicken, wolf, skeleton, and zombie.

    • Increasing and decreasing quantities.

    • Live x/19 counter.

    • Automatic persistence and save button.

  • Server-side magical capture system:

    • Nearby creature detection.

    • Ground-spawned magical book.

    • Spiral vortex particles and sounds.

    • Circular/spiraling creature movement.

    • Creature capture and removal effects.

    • Vortex cleanup and completion messaging.

  • Custom block/item models, GeckoLib geometry and animation files.

  • Mod metadata, language files, recipes, blockstates, and resource pack metadata.

The project is ready to be built with Gradle into a Forge 1.20.1 mod JAR.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
28 1,055
src/main/java/com/kodari/magicalbook/MagicalBookMod.java
package com.kodari.magicalbook;

import com.kodari.magicalbook.registry.ModBlockEntities;
import com.kodari.magicalbook.registry.ModBlocks;
import com.kodari.magicalbook.registry.ModItems;
import com.kodari.magicalbook.registry.ModMenus;
import com.kodari.magicalbook.mechanics.CaptureManager;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod(MagicalBookMod.MOD_ID)
public class MagicalBookMod {
    public static final String MOD_ID = "magicalbook";
    public static final CaptureManager CAPTURE_MANAGER = new CaptureManager();

    public MagicalBookMod() {
        IEventBus modBus = FMLJavaModLoadingContext.get().getModEventBus();
        ModBlocks.register(modBus);
        ModItems.register(modBus);
        ModMenus.register(modBus);
        ModBlockEntities.register(modBus);
        MinecraftForge.EVENT_BUS.register(CAPTURE_MANAGER);
    }
}