Description
ToLaserBlade (Fabric)
ToLaserBlade (T. o. Laser Blade) mod adds a simple sword with a laser blade.
This mod requires Fabric Loader, Fabric API, and Cloth Config.
This mod is experimental.
In order to distribute all jar files of this mod under the MIT license, the old jar files have been archived and are no longer available.
Add-on
ToLaserBlade-ExtraModels
A ToLaserBlade add-on to add more laser blade shapes.
https://www.curseforge.com/minecraft/mc-mods/tolaserblade-extramodels
Description
Version: 4.0.0 for 1.20.6
Items
Laser Blade
Features
Upgrading Laser Blades
You can upgrade your Laser Blade by combining it with certain items on a Smithing Table.
- Attack speed (up to 4.0): Laser Blade Blueprint + Laser Blade + Gold Ingot
- Attack damage (up to 8): Laser Blade Blueprint + Laser Blade + Block of Diamond
- Light Element: Laser Blade Blueprint + Laser Blade + Glowstone
- Silk Touch: Laser Blade Blueprint + Laser Blade + Prismarine Crystals / Amethyst Shard / Echo Shard
- Looting: Laser Blade Blueprint + Laser Blade + Nautilus Shell / Block of Emerald
- Fireproof: Laser Blade Blueprint + Laser Blade + Netherite Ingot
The Light Element enchantment increases the damage of the Laser Blade and deals additional damage to undead mobs and illagers.
Changing Laser Blade colors
Smithing Table recipes:
- Outer blade: Laser Blade Blueprint + Laser Blade + Stained Glass
- Inner blade: Laser Blade Blueprint + Laser Blade + Stained Glass Pane
- Grip: Laser Blade Blueprint + Laser Blade + Carpet
- Switching blend mode of outer blade: Laser Blade Blueprint + Laser Blade + Tinted Glass
- Switching blend mode of inner blade: Laser Blade Blueprint + Laser Blade + Block of Amethyst
Changing Laser Blade Shape
Smithing Table recipes:
- Type 0 (Standard): Laser Blade Blueprint + Laser Blade + Glass
- Type 1: Laser Blade Blueprint + Laser Blade + Sand
- Type 2: Laser Blade Blueprint + Laser Blade + Sandstone
- Type 526: Laser Blade Blueprint + Laser Blade + Dirt
Laser Trap
When you put a Laser Blade in a Dispenser and activate it, you can attack the mobs (players included) in front of the Dispenser with the Laser Blade.
Laser Furnace
When a Laser Trap is fired at a Furnace, it will light the Furnace.
Configurations
(game_dir)/config/tolaserblade.toml
If you change the config, you will need to restart the game.
Common
In multiplayer mode, server-side config will be used.
- enableLaserTrap: enable laser trap (boolean, default value is true)
- canLaserTrapAttackPlayer: allow laser trap to attack player (boolean, default value is true)
- canLaserTrapHeatUpFurnace: allow laser trap to light furnace (boolean, default value is true)
Client
- laserBlades: IDs of items to which laser blade model applies (array of strings, default value is ["tolaserblade:laser_blade", "tolaserblade:laser_blade_fp"])
Data Components
Item components for laser blade items
Example: /give @p tolaserblade:laser_blade[tolaserblade:lb_atk=8.0f,tolaserblade:lb_spd=1.2f,tolaserblade:lb_mdl={type:2,parts:{grip:{color:-12103854,is_sub:false},in:{color:-1,is_sub:true},out:{color:-1,is_sub:false}}}]
- Gives a lase blade with 15 attack damage, 4 attack speed, model type 2, gray grip, and white and black blade.
Attack Damage
- Key:
tolaserblade:lb_atk
- Value: A float value between 0 and 8
Attack Speed
- Key:
tolaserblade:lb_spd
- Value: A float value between 0 and 1.2
Model and Color
- Key:
tolaserblade:lb_mdl
- Value: The following data compound
{type: integer_model_type, parts: {grip: {color: integer_argb_32_bit_color, is_sub: false}, in: {color: integer_argb_32_bit_color, is_sub: boolean_is_subtractive_color}, out: {color: integer_argb_32_bit_color, is_sub: boolean_is_subtractive_color}}}
Sound Events
The following audio file paths are those defined in the default assets/tolaserblade/sounds.json
.
Sound events fired when a laser blade is swung:
tolaserblade:item.laser_blade.swing
-assets/tolaserblade/sounds/item/laser_blade/swing.ogg
tolaserblade:item.laser_blade_fp.swing
-assets/tolaserblade/sounds/item/laser_blade_fp/swing.ogg
Sound events fired when a laser blade is hit:
tolaserblade:item.laser_blade.hit
-assets/tolaserblade/sounds/item/laser_blade/hit.ogg
tolaserblade:item.laser_blade_fp.hit
-assets/tolaserblade/sounds/item/laser_blade_fp/hit.ogg
Sound event fired when a laser trap is activated:
tolaserblade:item.laser_trap.activate
-assets/tolaserblade/sounds/item/laser_trap/activate.ogg
Resource pack
Built-in optional resource pack
TLB Sample Sound Pack (v7.2.0+)
This resource pack adds some audio files to the game for testing mod sound events.
FAQ
[Version 3 or older] When using the shader mod, the blade of the laser blade is not rendered.
Try setting useOriginalShaderProgram
in the config file to false
and restart the game.
*Note that individual support for shader packs is not provided.