4813198

Branches > main > 4813198 > files

Remove some repitition in the registry

Grahp, 2026-08-31

Commit: 4813198ae9ef704356661df8e87cce4ea8939ccb
Parent: fbfac16

1 changed file:

src/net/bowmap/protocol/registry.clj modified (view file)

@@ -9,7 +9,10 @@       damage-types ["cactus" "campfire" "cramming" "dragon_breath" "drown" "dry_out" "ender_pearl" "fall" "out_of_world"                     "fly_into_wall" "freeze" "generic" "generic_kill" "hot_floor" "in_fire" "in_wall" "lava"                     "lightning_bolt" "magic" "on_fire" "outside_border" "stalagmite" "starve" "sweet_berry_bush" "wither"-                    "spear"]]+                    "spear"]+      trim-materials ["amethyst" "copper" "diamond" "emerald" "gold" "iron" "lapis" "netherite" "quartz" "redstone" "resin"]+      jukebox-sounds ["chirp" "creator_music_box" "mellohi" "otherside" "far" "lava_chicken" "blocks" "creator" "stal" "5"+                      "pigstep" "wait" "13" "tears" "bounce" "precipice" "strad" "relic" "11" "ward" "mall" "cat"]]    (def registries {"worldgen/biome" {"plains" {:has_precipitation false                                                :temperature 1.0@@ -24,28 +27,9 @@                                                                :message_id "onFire"                                                                :scaling "never"})) -                   "trim_material" {"amethyst" {:asset_name "null"-                                                :description {:color "#000000" :translate "bowmap.null"}}-                                    "copper" {:asset_name "null"-                                              :description {:color "#000000" :translate "bowmap.null"}}-                                    "diamond" {:asset_name "null"-                                               :description {:color "#000000" :translate "bowmap.null"}}-                                    "emerald" {:asset_name "null"-                                               :description {:color "#000000" :translate "bowmap.null"}}-                                    "gold" {:asset_name "null"-                                            :description {:color "#000000" :translate "bowmap.null"}}-                                    "iron" {:asset_name "null"-                                            :description {:color "#000000" :translate "bowmap.null"}}-                                    "lapis" {:asset_name "null"-                                             :description {:color "#000000" :translate "bowmap.null"}}-                                    "netherite" {:asset_name "null"-                                                 :description {:color "#000000" :translate "bowmap.null"}}-                                    "quartz" {:asset_name "null"-                                              :description {:color "#000000" :translate "bowmap.null"}}-                                    "redstone" {:asset_name "null"-                                                :description {:color "#000000" :translate "bowmap.null"}}-                                    "resin" {:asset_name "null"-                                             :description {:color "#000000" :translate "bowmap.null"}}}+                   "trim_material" (zipmap trim-materials+                                           (repeat {:asset_name "null"+                                                    :description {:color "#000000" :translate "bowmap.null"}}))                     "dimension_type" {world-dimension {:ambient_light 1.0                                                       :attributes {}@@ -150,28 +134,11 @@                    "zombie_nautilus_variant" {"warm" {:asset_id "null"                                                       :spawn_conditions []}} -                   "jukebox_song" {"5" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "creator_music_box" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "11" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "13" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "blocks" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "bounce" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "cat" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "chirp" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "creator" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "far" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "lava_chicken" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "mall" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "mellohi" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "otherside" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "pigstep" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "precipice" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "relic" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "stal" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "strad" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "tears" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "wait" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}-                                   "ward" {:comparator_output 1 :description {:translate "bowmap.null"} :length_in_seconds 1.0 :sound_event null-sound}}+                   "jukebox_song" (zipmap jukebox-sounds+                                          (repeat {:comparator_output 1+                                                   :description {:translate "bowmap.null"}+                                                   :length_in_seconds 1.0+                                                   :sound_event null-sound}))                     "instrument" {"ponder_goat_horn" {:description {:translate "bowmap.null"}                                                      :range 1.0,