p1ut0nium-git / Rough-Mobs-Revamped

Rough Mobs Revamped for Minecraft
https://www.curseforge.com/minecraft/mc-mods/rough-mobs-revamped
4 stars 8 forks source link

roughmobsrevamped.cfg script asks #71

Open Xiantrius opened 2 years ago

Xiantrius commented 2 years ago

hi can someone help? Who knows the mod rough mobs revamped in Minecraft v1.12.2? in the roughmobsrevamped.cfg are mobs like... zombie;generic.maxHealth;1;2.0;/;1 Is it possible to calculate life points differently? how can i do that implement with a baby zombie? The life points are just 20 while normal zombies have 60. I would like the baby zombie's HP to be 60, how would I have to enter the name so that the mod recognizes it and can pass it on to my server? would be really very friendly if someone could help and would help me there.

p1ut0nium-git commented 2 years ago

It is clearly explained in the config file:

attributes
#--------------------------------------------------------------------------------------------------------#
# Add attribute modifiers to entities to change their stats. Takes 4-6 values seperated by a semicolon:
# Format: entity;attribute;operator;value;dimension;child
# entity:       entity name
# attribute:    attribute name (Possible attributes: generic.maxHealth, generic.followRange, generic.knockbackResistance, generic.movementSpeed, generic.flyingSpeed, generic.attackDamage, generic.attackSpeed, generic.armor, generic.armorToughness, generic.luck)
# operator:     operator type (0 = add, 1 = multiply and add)
# value:        value which will be used for the calculation
# dimension:    dimension (ID) in which the entity should get the boost (optional! Leave this blank or use a "/" for any dimension)
# child:    0 = the modifier doesn't care if the entity is a child or not, 1 = adults only, 2 = childs only (optional! Leave this blank for 0)
##########################################################################################################

attributes {
    # Example:
    S:attributesModifier <
        zombie;generic.maxHealth;1;0.5;/;1

entity: zombie Attribute: max health operation: add and multiply (1) amount to use: 0.5 (multiplies all previous health attributes then adds 0.5) dimension to modify attribute in: All (/) Babies, adults, or all? Adults only (1)

Attributes Explanation from MC Fandom

Operations

A modifier's operation dictates how it modifies an attribute's base value. Three operations exist:

add (amount +/-): Saved as operation 0. Adds all of the modifiers' amounts to the current value of the attribute. For example, modifying an attribute with {Amount:2,Operation:0} and {Amount:4,Operation:0} with a Base of 3 results in 9 (3 + 2 + 4 = 9).

multiply_base (amount % +/-, additive): Saved as operation 1. Multiplies the current value of the attribute by (1 + x), where x is the sum of the modifiers' amounts. For example, modifying an attribute with {Amount:2,Operation:1} and {Amount:4,Operation:1} with a Base of 3 results in 21 (3 * (1 + 2 + 4) = 21).

The mathematical behavior is as follows:

add: Increment X by Amount multiply_base: Increment Y by X Amount multiply: Y = Y (1 + Amount) (equivalent to Increment Y by Y * Amount).

Xiantrius commented 2 years ago

Zombie Pigman Baby Zombie Baby VillagerZombie Baby in config how i write this in config For example i try script variant's: Zombie: zombie;isbaby.1;generic.maxHealth;1;2.5;/;1 zombie;IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie;IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie;IsBaby=1;generic.maxHealth;1;2.5;/;1 zombie:IsBaby:1;generic.maxHealth;1;2.0;/;1 zombie:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie.isbaby.1;generic.maxHealth;1;2.5;/;1 zombie.isbaby.1;generic.maxHealth;1;2.5;/;1 zombie.IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie.IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie.IsBaby=1;generic.maxHealth;1;2.5;/;1 zombie,isbaby.1;generic.maxHealth;1;2.5;/;1 zombie,IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie,IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie,IsBaby=1;generic.maxHealth;1;2.5;/;1

Zombie_pigman: zombie_pigman;isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_pigman;IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie_pigman;IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie_pigman;IsBaby=1;generic.maxHealth;1;2.5;/;1 zombie_pigman:IsBaby:1;generic.maxHealth;1;2.0;/;1 zombie_pigman:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_pigman:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_pigman:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_pigman:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_pigman.isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_pigman.isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_pigman.IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie_pigman.IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie_pigman.IsBaby=1;generic.maxHealth;1;2.5;/;1 zombie_pigman,isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_pigman,IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie_pigman,IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie_pigman,IsBaby=1;generic.maxHealth;1;2.5;/;1

Zombie_Villager: zombie_villager;isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_villager;IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie_villager;IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie_villager;IsBaby=1;generic.maxHealth;1;2.5;/;1 zombie_villager:IsBaby:1;generic.maxHealth;1;2.0;/;1 zombie_villager:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_villager:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_villager:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_villager:isbaby=1;generic.maxHealth;1;2.5;/;1 zombie_villager.isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_villager.isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_villager.IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie_villager.IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie_villager.IsBaby=1;generic.maxHealth;1;2.5;/;1 zombie_villager,isbaby.1;generic.maxHealth;1;2.5;/;1 zombie_villager,IsBaby:1;generic.maxHealth;1;2.5;/;1 zombie_villager,IsBaby;1;generic.maxHealth;1;2.5;/;1 zombie_villager,IsBaby=1;generic.maxHealth;1;2.5;/;1

Desert Zombie : husk;isbaby.1;generic.maxHealth;1;2.5;/;1 husk;IsBaby:1;generic.maxHealth;1;2.5;/;1 husk;IsBaby;1;generic.maxHealth;1;2.5;/;1 husk;IsBaby=1;generic.maxHealth;1;2.5;/;1 husk:IsBaby:1;generic.maxHealth;1;2.0;/;1 husk:isbaby=1;generic.maxHealth;1;2.5;/;1 husk:isbaby=1;generic.maxHealth;1;2.5;/;1 husk:isbaby=1;generic.maxHealth;1;2.5;/;1 husk:isbaby=1;generic.maxHealth;1;2.5;/;1 husk.isbaby.1;generic.maxHealth;1;2.5;/;1 husk.isbaby.1;generic.maxHealth;1;2.5;/;1 husk.IsBaby:1;generic.maxHealth;1;2.5;/;1 husk.IsBaby;1;generic.maxHealth;1;2.5;/;1 husk.IsBaby=1;generic.maxHealth;1;2.5;/;1 husk,isbaby.1;generic.maxHealth;1;2.5;/;1 husk,IsBaby:1;generic.maxHealth;1;2.5;/;1 husk,IsBaby;1;generic.maxHealth;1;2.5;/;1 husk,IsBaby=1;generic.maxHealth;1;2.5;/;1

is all not work

in command is work: For example: /summon Zombie ~ ~1 ~ {id:zombie,IsBaby:1} /summon Zombie_pigman ~ ~1 ~ {id:zombie_pigman,IsBaby:1} /summon Zombie_Villager ~ ~1 ~ {id:zombie_villager,IsBaby:1} /summon Husk ~ ~1 ~ {id:husk,IsBaby:1}

why i can not use that in config? zombie_villager,IsBaby:1;blablub zombie_pigman,IsBaby:1;blablub zombie,IsBaby:1;blablub husk,IsBaby:1;blablub

Xiantrius commented 2 years ago

pls say me how i must for Babyzombie write this script?

p1ut0nium-git commented 2 years ago

I will explain one last time:

entityname;attribute;X;Y;Z;A

X - operation Y - amount Z - dimension (/ = all) A - both/adult only/baby only (0/1/2)

zombie;generic.maxHealth;1;0.5;/;2 zombie_pigman;generic.maxHealth;1;0.5;/;2 zombie_villager;generic.maxHealth;1;0.5;/;2

Xiantrius commented 2 years ago

All right, I think we're talking past each other. I already know the orders. The problem is that all Baby's formats only have 20 HP, but all the others then have 60 HP. Could it be that it doesn't work for babies yet?

zombie;generic.maxHealth;1;2.5;/;2 = for Zombie 60HP, dont work by BabyZombie standard 20 HP zombie_pigman;generic.maxHealth;1;2.5;/;2 = for Zombie_Pigman 60HP, dont work by Baby Zombie_Pigman standard 20 HP zombie_villager;generic.maxHealth;1;2.5;/;2 = for Zombie_Villager 60HP, dont work by Baby Zombie_Villager standard 20 HP husk;generic.maxHealth;1;2.5;/;1 = for Desert Zombie 60HP, dont work by Baby Desert Zombie standard 20 HP

Only the adult zombies have the LP I choose. So if your mod has it, I need the info on how to implement it for the baby formats.

It has to go somewhere, for example: zombie,IsBaby:1;generic.maxHealth;1;2.5;/;2 or zombie,IsBaby=1;generic.maxHealth;1;2.5;/;2

The stupid thing is that it doesn't work that way for me. Although the baby zombie should have 40 HP more, it still has 20 even though I specifically summon it from /summon command. Oddly enough, that's how it works /summon Zombie ~ ~1 ~ {id:zombie,IsBaby:1} as soon as I enter the ID in the config like this zombie,IsBaby:1;generic.maxHealth;1;2.5;/;2 Start the server, it only has 20 HP. Hope you understand what I'm getting at. It doesn't work and if it does work. Please show me how to do it right.

p1ut0nium-git commented 2 years ago

Ok. I will look into it.