your current location:首页 > news>Ku be js iRons Spects Minecraft

Ku be js iRons Spects Minecraft

2024-12-15 01:21:11|Myriagame |source:minecraft skins

Overview

This module adds Iron's Spells 'N Spellbooks' spell books and spells to add a custom added to Kubejs.

Planning function

You can access events in Iron's Spells' N Spellbooks, such as ChangedManaevent and SpellCastevent;

You can get the magic value of the player in other events;

You can add more spells.

Example

 StartuPEVENTS.Registry ('IRONS_SPELLBOOKS: SPELLS', Event => {Event.create ('BloodFed'). SetCastTime (60) // Sets The Cast Time.setcoolDOWNSECONDS (10)//Sets The Cooldown in Seconds.setManacostPerLevel (20) // Sets The Mana Cost Per Level.SetCasttype ('Continuous') // Sets The Cast Ty pe.setschool ('IRons_spellbooks: Blood') // Sets The School.Setminrarity (''ePIC ') // sets the minimal rarity.setMaxLevel (2) // sets the maximum level.setstartsound (' item.honey_bottle.drink ') // sets the start sound.s ETFINISHSOUND ('item.honey_bottle.drink') //Sets The Finish Sound.oncast (CTX => Global.BloodFed (CTX))

// Calls Global.BloodFed WHEN The Spell is Casted}) Global.BloodFed = (/** @Type {InternetMespell $ CASTCONTEXT}*/ctx) => {Let/Let/Let/ ** @type {internal.serverplayer}*/Player = ctx.entityif (Player.getFooddata (). GetFoodLevel ()*(ctx.getSpelllevel ()/2)) <2 ||! ctx.entity.isplayer ()) Returnplayer.heal (c tx.getspelllevel ()/2) Player.getFoodData (). SetfoodLevel (player.getfooddata (). GetFoodLevel ()-2*(ctx.GetSpellLevel ()/2)}

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.