Loot beams

Loot beams

Mod

Loot beams for items

Client AdventureGame MechanicsUtility

7,924 downloads
74 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

An Updated Fabric fork version of Loot Beams(for Forge)

Default rarities

A 1.21 Fabric client-side Minecraft mod that adds colorful and customizable loot beams to dropped items!

Loot Beams are added to all items by default and they change colors depending on the items name. You can, however, specify a whitelist/blacklist for Beams, color overrides, and even NBT tags to change their color! (like "lootbeams.color:"0xFFFFFF").

Beams also have nametags that show up when looking at an item or crouching so you can see what an item is without even picking it up. This mod is client-side, meaning it will run on vanilla servers and forge servers that do not have this mod installed!

Also this version fixes many bugs of original version:

  1. Rendering dark beam colors Before-After
  2. Multiplied item glow Before-After
  3. Particle spawn rate on FPS
  4. More...

And implement new features:

  1. Beam fade/bright on approaching
  2. Preset manager screen (You can configure mod with Cloth config, and on this screen save your preset with name, or try default presets) (Numpad 5 key by default (can be changed in settings))
  3. Compatibility with Legendary Tooltips (thats so cool!)
  4. Custom rarities support (with minecraft:custom_data)
    • Example: {custom_rarity:{name:"Legendary",color:"#FF9900"}}
    • Also this supports translatable strings (with resource/data packs) Example: {custom_rarity:{name:"my.custom.rarity.legendary",color:"#FF9900"}}
    • For beam color same as rarity, need to set item custom name with same color.
  5. Custom particle textures
  6. Custom beam config with NBT and custom rarities

Update:

Added a resource pack example.

  • Added ability to apply custom rarities to items by selectors
  • Added ground glow effect texture feature
  • Added gradient colors support when using with Prism
  • Custom effects for ground glowing can be added with resource pack assets/lootbeams/textures/ground_glow_effects/
  • Ground effects supports animated sprites (.mcmeta)

Custom ground glow effect Custom ground glow effect #2


Huge update

  • Completely revamped settings
  • Added the ability to set custom particle textures. Custom textures can be added with resource pack, assets/lootbeams/textures/particle/. Particles can be animated with .mcmeta file. Particle texture setup
  • Added the ability to set custom beam/particle display settings for each item via NBT
  • Expanded support for custom item rarities. Now rarities can be defined through a resource pack in the file assets/lootbeams/custom_rarities.json
  • For custom rarities through JSON, beam/particle display settings can be specified
  • These rarities can be applied to an item by assigning it the NBT custom_rarity_id (String)
  • If both custom_rarity_id and custom_rarity are set, custom_rarity will take priority
  • You can get available config options with command: /lootbeams item-custom-config available Available config options

Below are some examples of beam configuration with the new features.

custom_rarities.json example:

{
    "custom_rarities": [
        {
            "id": "snowy",
            "name": "Snowy", // also may be a translation string
            "color": "#ddeeff",
            "config": {
                "trails": false,
                "particle_use_constant_vertical_speed": true,
                "render_name_color": false,
                "render_rarity_color": true,
                "particle_random_y": false,
                "particle_y_offset": 2,
                "particle_lifetime": 40,
                "particle_size": 0.5,
                "particle_speed": 0.00001,
                "particle_speed_x": 0.1,
                "particle_speed_y": -0.004,
                "particle_speed_z": 0.1,
                "particle_count": 10
            },
            "selectors": [ // Applies this rarity to all items cantains "snow" in name
                "%Snow", "%snow"
            ]
        },
        {
            "id": "fire_infused",
            "name": "Fire infused", // also may be a translation string
            "color": "#ff4400",
            "animated_color": "2_#ff4400_#ff0000_#ffff00", // Can be used if Prism installed
            "config": {
                "glow_effect_radius": 1,
                "trails": false,
                "render_name_color": false,
                "render_rarity_color": true,
                "particle_random_y": false,
                "spin_around_beam": false,
                "particle_texture": "lootbeams:animated_fire",
                "particle_size": 2,
                "particle_radius": 0.4,
                "particle_speed": 0.00001,
                "particle_speed_y": 0,
                "particle_count": 20
            },
            "selectors": [ // Applies this rarity to all items cantains "Nether" in name, and excludes "erite" (netherite), "Wart", "Sprouts", "Star" and "Quartz"
                "%ether+~%erite+~%Wart+~%Sprouts+~%Star+~%Quartz"
            ]
        },
        {
            "id": "love",
            "name": "Love", // also may be a translation string
            "color": "#ff6666",
            "config": {
                "beam_height": 3,
                "beam_alpha": 0.6,
                "trails": false,
                "render_name_color": false,
                "render_rarity_color": true,
                "particle_texture": "lootbeams:heart",
                "particle_size": 1,
                "particle_speed_y": 0.0003,
                "particle_count": 20
            },
            "selectors": [ // Applies this rarity to pink bed
                "minecraft:pink_bed"
            ]
        },
        {
            "id": "---emerald---",
            "name": "---emerald---",
            "color": "#40ff80",
            "config": {
                "render_item_rarity": false,
                "glow_effect_texture": "lootbeams:tech_1",
                "glow_effect_radius": 1,
                "glow_effect_alpha": 1,
                "animate_glow": false
            },
            "selectors": [ // Applies this rarity to emerald
                "minecraft:emerald"
            ]
        }
    ]
}

Snowy rarity effect:

minecraft:custom_data { // If version < 1.20.5 then "tag:"
  custom_rarity_id: "snowy"
}

Snowy effect

Fire infused rarity effect:

minecraft:custom_data { // If version < 1.20.5 then "tag:"
  custom_rarity_id: "fire_infused"
}

Fire infused effect

Love rarity effect:

minecraft:custom_data { // If version < 1.20.5 then "tag:"
  custom_rarity_id: "love"
}

Love effect

Smoke rarity effect:

minecraft:custom_data { // If version < 1.20.5 then "tag:"
  custom_rarity_id: "smoke"
}

Smoke effect

Multiple configs at the same time:

Multiple configs

Links


Project members

EnsoX

Member

Details

Licensed MIT
Published 2 months ago
Updated 12 days ago