pWn3d1337 / Techguns

Techguns mod for minecraft
https://minecraft.curseforge.com/projects/techguns
16 stars 4 forks source link

Can`t edit the weapon stats in 1.12.2 version ? #198

Open Zack135 opened 6 years ago

Zack135 commented 6 years ago

When I downloaded the 1.12.2 version there wasn`t weapon stats editor in the config file like in 1.7.10 version. I would be happy if it was added.

pWn3d1337 commented 6 years ago

1.12.2 weapon stats can be edited with crafttweaker

https://github.com/pWn3d1337/Techguns2/blob/master/src/main/java/techguns/plugins/crafttweaker/GunStatTweaker.java

mods.techguns.GunStats.setWeaponStat(WEAPONNAME, FIELDNAME, VALUE)

All field names: https://github.com/pWn3d1337/Techguns2/blob/master/src/main/java/techguns/plugins/crafttweaker/EnumGunStat.java

Zack135 commented 6 years ago

Damn I`m not so good with scripts and stuff like that. I downloaded crafttweaker but from there I really have no idea what to do...

pWn3d1337 commented 6 years ago

You just need to put a script file in the scripts folder (ends with .zs, look at crafttweaker documentation)

I can give you some techguns examples:

import mods.techguns.GunStats;
import mods.techguns.ArmorStats;

GunStats.setWeaponStat("as50","DAMAGE",80);
GunStats.setWeaponStat("rocketlauncher","GRAVITY",-0.25);
ArmorStats.setArmorStat("t1_combat_boots","SPEED",10.0);
Zack135 commented 6 years ago

Do I need to just copy that into the zs document and save? because it`s not working.

Zack135 commented 6 years ago

Nevermind it works, thank you so much for your time and your beautiful mod :)

Justaperson12 commented 1 year ago

The spread option doesnt work when i used it on the akm. Did a new field value get used?