your current location:首页 > news>Skill slots (Skill Slots) Minecraft

Skill slots (Skill Slots) Minecraft

2024-12-15 01:58:07|Myriagame |source:minecraft skins

Overview

This is a LIB MOD, adding item -based skill grooves to players;

You can use Kubejs or Java code to create your own skill slot. You can also simply put the existing items into the slot, bind the relevant key position and use this skill (right -mouse button).

Code example

The following is an example code created through Kubejs:

 // Priority: 0 // server script // make your item can be put in skill slots // if the item alream has a right-click f Unction, the sky alream works nowreveryEvents.tags ('item', event => {event.add ('skillslots: skill', 'minecraft: diamond')}) // of count, you can use kubejs to create an item , And Some Fancy Right-CLICK FUNCTIONTo itITEMEVENTS.RighTClicked ('Minecraft: Diamond', Event => {Event.player.tell ('You Right Clicked A Diamond!') // Cooldown, Works E venT.Player.addItemcooldown (event.item, 60)})//This event will also be Called when used the skillBlocks.richtclicked (event => {// check the ites cooldower.player.t.t Ell ('You Right Clicked a Block!')}) // Here You Will Know HowTo get access to the skill slots from a playeritemevents.ridClicked ('Minecraft: Emerald', Event => {Let Handler = Java.loadClass ('Snowneeeee .skillslotslots.skillslotshandler '). of (event.player) Let diamond = item.of ('MINECRAFT: Diamond') // Here are some nbt options to

Customize the Skill Diamond.nbt = {} Diamond.nbt.skillslots = {UseDuration: 20, iconscale: 1.5, // Canbetoggled: true, // Make your skill work As a passive skill. The player can toggle it on/off ChargCompletesound: 'MINECRAFT: Entity.player.Levelup', // Leave it empty to mute} // in config, you can disable the player about skills // here is an. Example to Change the Skill Through Kubejs Handler.Setitem (0, Diamond) // EXAMPLE of Checking If the Player has a Skill that can be toggled andurrently activated let index = handler.findActivatedPassVEILL l => skill.item.id === 'Minecraft: Diamond') if (index! == -1) {let skill = handler.skills.get (index) event.player.tell (skill.item.id)}})

Gallery

Use KJS to add skills to the Skill Slot module

Minecraft images

Minecraft images

The goal of MC Encyclopedia (MCMOD.CN) is to provide players with a better environment for MOD learning and research, and accept and cultivate more hardcore players.Provide Minecraft (Minecraft) MOD (module) item data introduction, tutorial strategy and MOD download, and is committed to improving the player's game experience.About the encyclopedia Encyclopedia help development log Donate Encyclopedia to follow the encyclopedia B station = "Fa Fa-Anagle-Right"> Opinions feedback Email © CopyRight Mc Encyclopedia 2013-2024 mcmod.cn |

Minecraft images

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

Minecraft images