Hello I am coming from cucumberjs but I couldn't post it there so here it is also I can't have toolsjs in my modpack because its not yet on 1.20.1 forge
Why do my paxels (all of them exept netherite, diamond, gold, stone, wood) have attackdamage 7 in game
code:
constPAXEL_MATERIALS=[{name: 'wooden',tier: 'wood',mod: 'minecraft:',durability: 400,speed: 2,attackDamage: 8,},{name: 'stone',tier: 'stone',mod: 'minecraft:',durability: 800,speed: 4,attackDamage: 10,},{name: 'copper',tier: 'copper',mod: 'leafscopperbackport:',durability: 338,speed: 5,attackDamage: 9,},{name: 'nether_quartz',tier: 'nether_quartz',mod: 'ae2:',durability: 400,speed: 12,attackDamage: 8,},{name: 'fluix',tier: 'fluix',mod: 'ae2',durability: 750,speed: 7.2,attackDamage: 9.4,},{name: 'certus_quartz',tier: 'certus_quartz',mod: 'ae2',durability: 250,speed: 6,attackDamage: 9,},{name: 'infinity',tier: 'infinity',mod: 'avaritia:',durability: 9999999,speed: 9999,attackDamage: 9999999,},{name: 'crystal',tier: 'crystal',mod: 'avaritia:',durability: 8888,speed: 100,attackDamage: 51,},{name: 'blaze',tier: 'blaze',mod: 'avaritia:',durability: 7777,speed: 25,attackDamage: 26,},{name: 'skyroot',tier: 'skyroot',mod: 'aether:',durability: 59,speed: 2,attackDamage: 7,},{name: 'holystone',tier: 'holystone',mod: 'aether:',durability: 131,speed: 4,attackDamage: 9,},{name: 'zanite',tier: 'zanite',mod: 'aether:',durability: 250,speed: 6,attackDamage: 9,},{name: 'gravitite',tier: 'gravitite',mod: 'aether:',durability: 1561,speed: 8,attackDamage: 9,},{name: 'valkyrie',tier: 'valkyrie',mod: 'aether:',durability: 1561,speed: 8,attackDamage: 9,},{name: 'silver',tier: 'silver',mod: 'iceandfire:',durability: 460,speed: 11,attackDamage: 7,},{name: 'steeleaf',tier: 'steeleaf',mod: 'twilightforest:',durability: 131,speed: 8,attackDamage: 10,},{name: 'ironwood',tier: 'ironwood',mod: 'twilightforest:',durability: 512,speed: 6.5,attackDamage: 9,},{name: 'dragonsteel_lightning',tier: 'dragonsteel_lightning',mod: 'iceandfire:',durability: 8000,speed: 10,attackDamage: 30,},{name: 'dragonsteel_fire',tier: 'dragonsteel_fire',mod: 'iceandfire:',durability: 8000,speed: 10,attackDamage: 30,},{name: 'dragonsteel_ice',tier: 'dragonsteel_ice',mod: 'iceandfire:',durability: 8000,speed: 10,attackDamage: 30,},{name: 'dragonbone',tier: 'dragonbone',mod: 'iceandfire:',durability: 1660,speed: 10,attackDamage: 10,},{name: 'iron',tier: 'iron',mod: 'minecraft:',durability: 3600,speed: 8,attackDamage: 10,},{name: 'golden',tier: 'gold',mod: 'minecraft:',durability: 128,speed: 12,attackDamage: 8,},{name: 'diamond',tier: 'diamond',mod: 'minecraft:',durability: 3122,speed: 9,attackDamage: 10,},{name: 'netherite',tier: 'netherite',mod: 'minecraft:',durability: 6800,speed: 9,attackDamage: 11,},{name: 'osmium',tier: 'mekanism:osmium',mod: 'mekanismtools:',durability: 2048,speed: 4,attackDamage: 14,},{name: 'steel',tier: 'steel',mod: 'mekanismtools:',durability: 1000,speed: 8,attackDamage: 12,},{name: 'bronze',tier: 'bronze',mod: 'mekanismtools:',durability: 750,speed: 7,attackDamage: 11,},{name: 'lapis_lazuli',tier: 'lapis_lazuli',mod: 'mekanismtools:',durability: 256,speed: 9,attackDamage: 7,},{name: 'refined_obsidian',tier: 'refined_obsidian',mod: 'mekanismtools:',durability: 8192,speed: 12,attackDamage: 17,},{name: 'refined_glowstone',tier: 'refined_glowstone',mod: 'mekanismtools:',durability: 768,speed: 15,attackDamage: 10,}]console.info('KubeJS: items.js loaded');StartupEvents.registry('item',event=>{PAXEL_MATERIALS.forEach(mat=>{event.create(`${mat.name}_paxel`,'paxel').tier(mat.tier).maxDamage(mat.durability).speed(mat.speed).attackDamageBaseline(mat.attackDamage).tag('forge:tools').tag('forge:tools/paxels').tag('minecraft:tools').tag('minecraft:breaks_decorated_pots').tag('create:upright_on_deployer').tag('minecraft:cluster_max_harvestables')})})
Hello I am coming from cucumberjs but I couldn't post it there so here it is also I can't have toolsjs in my modpack because its not yet on 1.20.1 forge
Why do my paxels (all of them exept netherite, diamond, gold, stone, wood) have attackdamage 7 in game
code:
modlist: