MC Dungeons Weapons

MC Dungeons Weapons

8M Downloads

[Feature Request] Config option to disable crafting

Chronolegionnaire opened this issue ยท 1 comments

commented

Is your feature request related to a problem? Please describe.
It would be great to be able to only obtain these weapons (and armors from your other mods) through exploring and looting rather than crafting for an rpg server.

Describe the solution you'd like
A config option to disable crafting,

Describe alternatives you've considered
Can be achieved with kubejs but would be a lot of script

Additional context
If there already is a way to do this, please disregard!

commented

@Chronolegionnaire As you mentioned in your post, this is able to be handled via KubeJS. As such, we are not inclined to add this as a feature, especially since Modpack makers tend to lean towards KubeJS and it would require us to completely rewrite how our recipes are handled.

That being said, here is the script to remove all of the recipes. This will work with the 5.0.0 release that is coming out in the next couple of days:

const mcdwWeapons = [
  "axe_axe",
  "axe_cursed",
  "axe_double",
  "axe_highland",
  "axe_whirlwind",
  "axe_firebrand",
  "axe_anchor",
  "axe_encrusted_anchor",
  "bow_bonebow",
  "bow_twin_bow",
  "bow_longbow",
  "bow_red_snake",
  "bow_guardian_bow",
  "bow_shortbow",
  "bow_mechanical_shortbow",
  "bow_purple_storm",
  "bow_trickbow",
  "bow_green_menace",
  "bow_pink_scoundrel",
  "bow_power_bow",
  "bow_elite_power_bow",
  "bow_hunting_bow",
  "bow_sabrewing",
  "bow_masters_bow",
  "bow_hunters_promise",
  "bow_soul_bow",
  "bow_nocturnal_bow",
  "bow_lost_souls",
  "bow_haunted_bow",
  "bow_love_spell_bow",
  "bow_ancient_bow",
  "bow_snow_bow",
  "bow_winters_touch",
  "bow_shivering_bow",
  "bow_wind_bow",
  "bow_echo_of_the_valley",
  "bow_burst_gale_bow",
  "bow_weeping_vine_bow",
  "bow_twisting_vine_bow",
  "bow_bubble_bow",
  "bow_bubble_burster",
  "bow_void_bow",
  "bow_call_of_the_void",
  "bow_phantom_bow",
  "bow_web_bow",
  "crossbow_the_slicer",
  "crossbow_azure_seeker",
  "crossbow_exploding_crossbow",
  "crossbow_imploding_crossbow",
  "crossbow_firebolt_thrower",
  "crossbow_heavy_crossbow",
  "crossbow_doom_crossbow",
  "crossbow_slayer_crossbow",
  "crossbow_rapid_crossbow",
  "crossbow_butterfly_crossbow",
  "crossbow_auto_crossbow",
  "crossbow_scatter_crossbow",
  "crossbow_harp_crossbow",
  "crossbow_lightning_harp_crossbow",
  "crossbow_soul_crossbow",
  "crossbow_feral_soul_crossbow",
  "crossbow_voidcaller_crossbow",
  "crossbow_dual_crossbow",
  "crossbow_spellbound_crossbow",
  "crossbow_baby_crossbow",
  "crossbow_burst_crossbow",
  "crossbow_soul_hunter_crossbow",
  "crossbow_corrupted_crossbow",
  "crossbow_cog_crossbow",
  "crossbow_pride_of_the_piglins",
  "crossbow_harpoon_crossbow",
  "crossbow_nautical_crossbow",
  "crossbow_shadow_crossbow",
  "crossbow_veiled_crossbow",
  "dagger_dagger",
  "dagger_fangs_of_frost",
  "dagger_moon",
  "dagger_soul_knife",
  "dagger_eternal_knife",
  "dagger_tempest_knife",
  "dagger_chill_gale_knife",
  "dagger_resolute_tempest_knife",
  "dagger_shear_dagger",
  "dagger_backstabber",
  "dagger_swift_striker",
  "dagger_void_touched_blade",
  "dagger_the_beginning",
  "dagger_the_end",
  "hammer_mace",
  "hammer_flail",
  "hammer_gravity",
  "hammer_great_hammer",
  "hammer_stormlander",
  "hammer_suns_grace",
  "hammer_boneclub",
  "hammer_bone_cudgel",
  "pick_diamond_pickaxe_var",
  "pick_mountaineer_pick",
  "pick_howling_pick",
  "pick_hailing_pinnacle",
  "sickle_sickle",
  "sickle_nightmares_bite",
  "sickle_last_laugh_gold",
  "sickle_last_laugh_silver",
  "sickle_frost_scythe",
  "sickle_jailors_scythe",
  "sickle_soul_scythe",
  "sickle_skull_scythe",
  "spear_spear",
  "spear_fortune",
  "spear_whispering_spear",
  "spear_glaive",
  "spear_grave_bane",
  "spear_venom_glaive",
  "spear_cackling_broom",
  "staff_battlestaff",
  "staff_battlestaff_of_terror",
  "staff_growing_staff",
  "sword_iron_sword_var",
  "sword_diamond_sword_var",
  "sword_hawkbrand",
  "sword_sinister",
  "sword_rapier",
  "sword_beestinger",
  "sword_freezing_foil",
  "sword_broadsword",
  "sword_claymore",
  "sword_heartstealer",
  "sword_great_axeblade",
  "sword_frost_slayer",
  "sword_obsidian_claymore",
  "sword_the_starless_night",
  "sword_cutlass",
  "sword_dancers_sword",
  "sword_nameless_blade",
  "sword_katana",
  "sword_masters_katana",
  "sword_dark_katana",
  "sword_broken_sawblade",
  "sword_mechanized_sawblade",
  "sword_truthseeker",
  "sword_coral_blade",
  "sword_sponge_striker",
  "whip_whip",
  "whip_vine_whip",
  "gauntlet_gauntlet",
  "gauntlet_maulers",
  "gauntlet_soul_fists",
  "shield_royal_guard",
  "shield_tower_guard",
  "shield_vanguard"
];

onEvent('recipes', event => {
  mcdwWeapons.forEach(function(item) {
    event.remove({output: "mcdw:" + item})
  });
});