2024-12-10 17:51:41|Myriagame |source:minecraft skins
Type of knife
Among the swords, most knives are the same items but have different NBTs.
There is a registry that stores different types of knives inside the sword. It may be called the storage knife as "knife original".
The knives obtained by the players are the replica of the "Blade".
Register a type of knife, you only need to add a "knife original device" to the registry.
Slashbladetweaker now provides more than one way of registration, but the most recommended, the method used in the example is to use the BladeRegistry chain.
First call the named start to create a knife
Used method adjustment parameters
Call register to complete the registration
You can follow the registration of the next knife
The whole process can be like this:
Bladeregistry.named ("example: test_one"). Killcount (10000). REFINE (1000) .Proudsoul (2600000)
.texture ("named/sange/white"). Model ("named/sange/sange"). SpeciaLattack (20) .wrap (BladeRegistry.finditem ("MineCraft: Wooden_sword")
.process (Function (s as Crafttweaker.Item.iiteMStack) {servergistry.addSetoitem (s, "test_se"); Return s;}). register ()
.named ("example: test_two"). Register ();
This chain can be infinitely long.
SA
SA, the full name of SpeciaLattack, is a player's unique attack method to use swords.In the sword, SA has a set of registry using numbers and uses numbers in NBT to distinguish SA.
There is only one registration method provided by Slashbladetweaker.
Saregistry.registerSaregistersa (int, String, IspeciaLattackfunction)
The translation button of the name is "Flammpfeil.slashblade.SpeciaLattack.%Name%" "
ISPECILATTACKFUNCTION will be called once each after the player uses SA.
SE
SE is expressed in NBT in the sword that SE itself has no effect, and there is no interface. It is realized in other places like information as information.SE uses a string as the registration name.
Slashbladetweaker now provides more than one way of registration, but only one is introduced here: here:
Setype.create (10, "exmple_se"). Register (); the first parameter is the default SE level, and the second parameter is the name.
The translation key of the name is "Slashblade.Seffect.name.%Name%".
Add SE to operate the NBT directly, or you can use the seregistry#addsetoitem.
Miscellaneous item
wrap
Black and white fox inside wooden swords, you can modify wrap (BladEypebuilder#Wrap (IItemstack)) when creating Bladetype
Use a sword to attack the equivalent of built -in items, this is also
Create a line of words under the blade panel in the backpack:is demo item. Is wooden sword trition performance: please crafting
(The idea is: This is the knife displayed by the creative mode. Only the power of a wooden knife. Its true power requires you to synthesize.)
If the "unknown" red jade synthesized by the samurai knife comes from, it will inherit the ability of the samurai knife, durability, harm.
SA is the damage of each stage of the phantom blade (Phantom Blade, extremely chop, wave sword dragon gangs, etc.). Compared with other swords, it will add an additional "+4 attack damage"
The reason.
Register
Using Bladeregistry#REREGISTER (String, IiteMStack) can forcibly register an itemstack to the knife name, thereby realizing the coverage or modification of the knife to modify it as an example:
Val Blade as IItemstack = Bladeregistry.getBladeItemstack ("Flammpeil.slashblade.named.white")Bladeutills.setkillcount (Blade, 114514);
Bladeregistry.Reregister ("Flammpfeil.slashblade.named.fox.White", Blade);
In this way, the default number of enemies of the Fox Yuedao "White Fox" becomes 114514, and you can directly take out 114514 white fox from the creative mode item bar.
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22