Divyan Arron

Im making a naruto addon witch fitures minato its a starting project a kunai that can telelport you damge 25 with a hokage cloack

๐Ÿ“Ž 1 file 3,489 chars
๐Ÿ“„
minato_kunai.json
json 137 lines
โ–ถ
MinatoAddon/
โ”œโ”€โ”€ behavior_packs/
โ”‚   โ””โ”€โ”€ Minato_BP/
โ”‚       โ”œโ”€โ”€ manifest.json
โ”‚       โ”œโ”€โ”€ items/
โ”‚       โ”‚   โ””โ”€โ”€ minato_kunai.json
โ”‚       โ””โ”€โ”€ scripts/
โ”‚           โ””โ”€โ”€ main.js
โ””โ”€โ”€ resource_packs/
    โ””โ”€โ”€ Minato_RP/
        โ”œโ”€โ”€ manifest.json
        โ”œโ”€โ”€ attachables/
        โ”‚   โ””โ”€โ”€ minato_kunai.json
        โ”œโ”€โ”€ models/
        โ”‚   โ””โ”€โ”€ entity/
        โ”‚       โ”œโ”€โ”€ minato_kunai.geo.json
        โ”‚       โ””โ”€โ”€ hokage_cloak.geo.json
        โ””โ”€โ”€ textures/
            โ”œโ”€โ”€ items/
            โ”‚   โ””โ”€โ”€ minato_kunai.png
            โ””โ”€โ”€ models/
                โ””โ”€โ”€ armor/
                    โ””โ”€โ”€ hokage_cloak.png
{
  "format_version": 2,
  "header": {
    "name": "Minato Addon BP",
    "description": "Behavior pack for Minato Kunai and Hokage Cloak",
    "uuid": "a123b456-c789-1011-1213-141516171819",
    "version": [1, 0, 0],
    "min_engine_version": [1, 20, 80]
  },
  "modules": [
    {
      "type": "data",
      "uuid": "b234c567-d890-1112-1314-151617181920",
      "version": [1, 0, 0]
    },
    {
      "type": "script",
      "language": "javascript",
      "uuid": "c345d678-e901-1213-1415-161718192021",
      "version": [1, 0, 0],
      "entry": "scripts/main.js"
    }
  ],
  "dependencies": [
    {
      "module_name": "@minecraft/server",
      "version": "1.10.0"
    }
  ]
}
{
  "format_version": "1.20.80",
  "minecraft:item": {
    "description": {
      "identifier": "naruto:minato_kunai",
      "menu_category": {
        "category": "equipment"
      }
    },
    "components": {
      "minecraft:icon": {
        "texture": "minato_kunai"
      },
      "minecraft:geometry": {
        "identifier": "geometry.minato_kunai"
      },
      "minecraft:hand_equipped": true,
      "minecraft:max_stack_size": 1,
      "minecraft:damage": 8,
      "minecraft:use_modifiers": {
        "use_duration": 0.2,
        "movement_modifier": 0.8
      },
      "minecraft:weapon": {}
    }
  }
}
import { world, system } from "@minecraft/server";

world.afterEvents.itemUse.subscribe((event) => {
  const player = event.source;
  const item = event.itemStack;

  // Check if player is holding Minato's Kunai
  if (item.typeId === "naruto:minato_kunai") {
    // Play Teleport Sound
    player.runCommandAsync("playsound mob.endermen.portal @s ~~~ 1 1.5");
    
    // Calculate 8 blocks forward in the direction the player is looking
    const viewVector = player.getViewDirection();
    const loc = player.location;
    
    const targetX = loc.x + viewVector.x * 8;
    const targetY = loc.y + viewVector.y * 8 + 0.5;
    const targetZ = loc.z + viewVector.z * 8;

    // Teleport player and spawn particle effect
    player.teleport({ x: targetX, y: targetY, z: targetZ });
    player.runCommandAsync("particle minecraft:end_chest_particle ~~~");
  }
});
{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "naruto:minato_kunai",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/items/minato_kunai"
      },
      "geometry": {
        "default": "geometry.minato_kunai"
      },
      "scripts": {
        "animate": [
          "hold_first_person",
          "hold_third_person"
        ]
      },
      "animations": {
        "hold_first_person": "animation.humanoid.holding.first_person",
        "hold_third_person": "animation.humanoid.holding.third_person"
      },
      "render_controllers": [
        "controller.render.default"
      ]
    }
 
}


Kodari AI
KodariOct 10 at 2:15 am 1
MinatoKunaiTeleport
Adds a Naruto-themed Minato Kunai item that deals 25 damage and teleports the player 8 blocks forward when used. Includes a Hokage Cloak armor piece with custom geometry and textures. The kunai features hand-equipping, custom use modifiers, teleport sound effects, and particle effects. The addon includes both behavior and resource packs with script-based teleportation logic, custom item models, attachable configurations, and armor textures for a complete Minato experience in Minecraft.
  • Create behavior/resource pack manifests for Minecraft Bedrock 1.20.80.

  • Add a Minato kunai that teleports its user and deals 25 damage, plus an equipable chest-slot Hokage cloak.

  • Use vanilla texture placeholders; custom cloak/kunai art and models need assets.

Created the starter addon under MinatoAddon/:

  • The kunai deals 25 damage and teleports its user 8 blocks forward when used.

  • The Hokage Cloak is a chest-slot wearable with 3 protection.

  • Activate both packs on your world. The kunai and cloak currently use vanilla trident and leather chestplate visuals as placeholders.

Custom textures can be enabled in project settings โ†’ Generation, or at https://kodari.ai/settings?tab=features. For custom 3D models, create them in Kodari Studio and bring them into this project through a workspace.

Kodari can make mistakes. Review important code before using.
Files
MinatoAddon
Code
6 135
MinatoAddon/behavior_packs/Minato_BP/scripts/main.js
import { world } from "@minecraft/server";

world.afterEvents.itemUse.subscribe((event) => {
  const player = event.source;

  if (player.typeId !== "minecraft:player" || event.itemStack.typeId !== "naruto:minato_kunai") {
    return;
  }

  const direction = player.getViewDirection();
  const location = player.location;

  player.teleport({
    x: location.x + direction.x * 8,
    y: location.y + direction.y * 8 + 0.5,
    z: location.z + direction.z * 8
  });
});