▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
ВСЕМ 1 000 000 ТОКЕНОВ + ГЕРЦОГ + 500 РУБЛЕЙ НА ТЕЛЕФОНCrash.FateMine.Su:25565
🔥Тренд дняCaramel Chat⚡Сейчас качаютCaramel Chat🚪Сюда заходят чаще всегоCaramel Chat🚀Взрывает трендыPvp Haimiya Anime Pack🆕Новый хитPvp Zegarn📉Люди сбегают отсюдаCaramel Chat🎮Сервер набирает популярностьHypixel🔻Теряет популярностьMetropack_ir🧲Самый липкий ресурсSky V1🔥Тренд дняCaramel Chat⚡Сейчас качаютCaramel Chat🚪Сюда заходят чаще всегоCaramel Chat🚀Взрывает трендыPvp Haimiya Anime Pack🆕Новый хитPvp Zegarn📉Люди сбегают отсюдаCaramel Chat🎮Сервер набирает популярностьHypixel🔻Теряет популярностьMetropack_ir🧲Самый липкий ресурсSky V1🔥Тренд дняCaramel Chat⚡Сейчас качаютCaramel Chat🚪Сюда заходят чаще всегоCaramel Chat🚀Взрывает трендыPvp Haimiya Anime Pack🆕Новый хитPvp Zegarn📉Люди сбегают отсюдаCaramel Chat🎮Сервер набирает популярностьHypixel🔻Теряет популярностьMetropack_ir🧲Самый липкий ресурсSky V1🔥Тренд дняCaramel Chat⚡Сейчас качаютCaramel Chat🚪Сюда заходят чаще всегоCaramel Chat🚀Взрывает трендыPvp Haimiya Anime Pack🆕Новый хитPvp Zegarn📉Люди сбегают отсюдаCaramel Chat🎮Сервер набирает популярностьHypixel🔻Теряет популярностьMetropack_ir🧲Самый липкий ресурсSky V1🔥Тренд дняCaramel Chat⚡Сейчас качаютCaramel Chat🚪Сюда заходят чаще всегоCaramel Chat🚀Взрывает трендыPvp Haimiya Anime Pack🆕Новый хитPvp Zegarn📉Люди сбегают отсюдаCaramel Chat🎮Сервер набирает популярностьHypixel🔻Теряет популярностьMetropack_ir🧲Самый липкий ресурсSky V1🔥Тренд дняCaramel Chat⚡Сейчас качаютCaramel Chat🚪Сюда заходят чаще всегоCaramel Chat🚀Взрывает трендыPvp Haimiya Anime Pack🆕Новый хитPvp Zegarn📉Люди сбегают отсюдаCaramel Chat🎮Сервер набирает популярностьHypixel🔻Теряет популярностьMetropack_ir🧲Самый липкий ресурсSky V1
Моды/VynAPI
VynAPI

VynAPI

The Vyn scripting language, embedded in Minecraft.

Оцените первым
114
1

!Description

The Vyn Scripting Language, Embedded in Minecraft!


Modrinth Downloads


Write .vyn scripts inside resource packs and have them run in-game, reacting to what happens around the player, no Java required.

✅ Minecraft 1.21.5 · 1.21.11 · 26.1 · 26.2, Fabric · NeoForge · Forge (Forge on 1.21.x only)


What is Vyn?

Statement-Driven Scripting

Vyn is built for readability, with blueprints (OOP) and concurrency as first-class features. It reads like plain English, so anyone can pick it up without a programming background.

~ variables
make name "Steve"

~ conditionals
check name == "Steve" do
    say "Hi, Steve!"
otherwise
    say "Who are you?"
end

Loops & Functions

Cycle through ranges and define reusable tasks with a clean, minimal syntax.

~ loops
cycle i from 1 to 5 do
    say "Iteration: " + i
end

~ functions
task double takes x do
    reply x * 2
end

Blueprints (OOP)

Vyn supports object-oriented design through blueprints, letting you structure scripts around reusable objects.

blueprint Pet do
    build takes name do
        make me.name name
    end
end

In-Game Integration

VynAPI embeds this language inside Minecraft and connects it to the game, so every resource pack becomes a potential script pack.

my_pack/
└── assets/
    └── example/
        └── scripts/
            └── hello.vyn     ← plain-text script, loaded by VynAPI

Core Features!

React to Events

Scripts respond to what happens around the player: every tick (onTick), arm swings (onSwingHand), and any sound that plays (onPlaySound).

Read Game State

Pull live data straight from the game: player health, hunger, position, velocity, the block you're looking at, nearby blocks, biome, time of day, colors, and more.

Do Things

Draw text on the HUD with debugText, send chat messages, or play sounds at specific positions in the world.

Delayed Logic

The non-blocking wait statement lets you schedule logic after N ticks without freezing the game.

Ship Libraries

Share code between scripts and packs using importScript / excludeScript.

Hot Reload

Press F3 + T while developing and your scripts reload instantly, no restart required.

Extensible

Mod developers can register custom events and functions into every script environment via VynAddon.

Installation!

  1. Download the jar matching your Minecraft version and loader (Fabric / Forge / NeoForge)
  2. Put it in your client's mods folder
  3. Launch the game and enable a resource pack that contains .vyn scripts

Quick Start

task onTick do
    debugText("Health: " + player.getHealth())
    debugText("Looking at: " + player.getTargetBlock().getName())
end

Load the pack, press F3 + T, and two lines appear in the top-left corner of your HUD, updating every tick.

Events!

Available Events

EventFires whenArguments
onTickEvery client tick (20×/second)none
onSwingHandThe local player swings their armnone
onPlaySoundA sound plays in the world (ambient excluded)sound
task onPlaySound takes sound do
    player.sendMessage(sound.getName() + " @ " + sound.getPosition())
end

Script API!

The Essentials

Constants: player · world · key · modLoader

Player: getName() · getHealth() · getFoodLevel() · getPosition() · getX/Y/Z()
        getVelocityX/Y/Z() · getYaw() · getPitch() · getTargetBlock()
        getSteppingBlock() · getNearbyBlocks(radius) · sendMessage(text)
        playSound(id, volume, pitch) · playSoundWorld(pos, id, volume, pitch)

World:  getBlock(x, y, z) · getDimension() · getDayTime() · getGameTime()
        getBiomeAt(pos) · getGrassColor(pos) · getFoliageColor(pos)
        getWaterColor(pos) · calculateDistanceBetweenPositions(a, b)

Block:  getName() · getPosition() · isAir() · hasBlockTag(id)
        getLightBlock() · getLightEmission() · canBeReplaced() · instrument()

Types:      new Position(x, y, z) · new Sound(id, volume, pitch, position)
Functions:  debugText(text) · importScript(packId, name) · excludeScript(packId, name)
Statement:  wait <ticks> do ... end   # runs a block once after N ticks, non-blocking

📖 Full API reference: VynAPI README

For Mod Developers!

Registering Custom Events

Subclass VynAddon to register custom events and bind native functions, types, and constants into every script environment.

public final class MyAddon extends VynAddon {

    public MyAddon() {
        super("onMyEvent"); // custom event scripts can listen to
    }

    @Override
    public Consumer<Environment> onEnable() {
        return env -> {
            NativeBinder.bind(env, MyType.class);                 // new MyType(...) in scripts
            NativeBinder.defineConstant(env, "myVersion", "1.0.0");
            env.defineFunction("myFunction", new NativeFunction((e, args) -> null));
        };
    }
}

Firing Events

Fire events from anywhere in your mod, and any loaded script defining a matching task will receive it.

ScriptHandler.fireEvent("onMyEvent", someValue);
task onMyEvent takes value do
    ~ handle the fired event
end

Building From Source!

# 1) Publish the Vyn engine to your local Maven repo
git clone https://github.com/Abdelaziz1586/Vyn.git
cd Vyn && mvn clean install

# 2) Build VynAPI for the version you want
git clone https://github.com/omardotcontent/VynAPI.git
cd VynAPI && git checkout 1.21.11      # or: 1.21.5, 26.1, 26.2
./gradlew :fabric:build                # or :neoforge:build / :forge:build (1.21.x only)

!Important

Important!

  • Client-side only: install it in your client's mods folder; scripts never run on the server. Works in singleplayer and multiplayer.
  • Pick the right build: each Minecraft version has its own jar.
  • Never block the client thread: use wait instead of hold for delays, and keep onTick work light (it runs 20×/second).
  • Scripts run on the client only: everything they do is local to the player. That's by design, resource packs are client-side.

Version Support

MinecraftJavaFabricForgeNeoForge
1.21.521✅ + Fabric API✅✅
1.21.1121✅ + Fabric API✅✅
26.125✅ + Fabric API❌✅
26.225✅ + Fabric API❌✅

Support & Links!

  • GitHub: omardotcontent/VynAPI
  • Issues & suggestions: GitHub Issues
  • The language itself: Abdelaziz1586/Vyn

Credits: OmarDotContent & Abdelaziz_Mohamed. Vyn port by Abdelaziz_Mohamed, mod port by OmarDotContent.

Партнёрский материал

Как поиграть с друзьями с модом VynAPI?

Мод VynAPI куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода VynAPI будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Клиент

Зависимости

Ссылки


Детали

Лицензия:
Опубликован:3 месяца назад
Обновлён:3 месяца назад
Главная