[resolved]Some problems with my mod

hmsintrepide
Member
 
Posts: 104
Joined: Sun Jun 26, 2011 12:16
Location: ~Paris

[resolved]Some problems with my mod

by hmsintrepide » Tue Jul 03, 2012 14:30

Hi guys, I got some problems with my mod.

Is the number of blocks breakable with a tool divided by 3 (from real number)) ?

And how the lastest breaking option work ? (times = {[2] = 1.10, [3] = 0.60})

And a last question, what's the maxLevel ? (maxLevel = 1)

Thank you for your answer.
Last edited by hmsintrepide on Wed Jul 04, 2012 09:25, edited 1 time in total.
Retour du site minetest.fr avec un nouveau nom et design : http://minetest-fr.tk . Un wiki en cours de rédaction avec un forum !
 

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17
Location: NaN

by SegFault22 » Wed Jul 04, 2012 07:27

the lines saying ''times = {[2] = 1.10, [3] = 0.60})'' are the lengths of time it takes to break a node of the group defined for that like (ex. ''cracky'' times = {[2] = 1.10, [3] = 0.60}) would mean it takes 1.10 seconds to break a node with the group ''cracky=2'' and 0.60 seconds to break a node with the group ''cracky=3'')
the part of the script saying ''uses = #'' defines EXACTLY how many times that tool can be used to break that type of node defined like the line saying ''cracky'' times = {[2] = 1.10, [3] = 0.60})
The MaxLevel has to do with damage, more of a level hurts more and less hurts less.
Example of a steel pickaxe:
Code: Select all
groupcaps={
            cracky={times={[1]=4.00, [2]=1.60, [3]=1.00}, uses=30, maxlevel=2}

This means it takes 4 seconds to break a node with a group as ''cracky=1'', 1.60 seconds for a node in the group ''cracky=2'', and 1.0 seconds for a node with the group ''cracky=3'', the tool can be used 30 times, and deals 2 damage per hit to an entity.
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 

hmsintrepide
Member
 
Posts: 104
Joined: Sun Jun 26, 2011 12:16
Location: ~Paris

by hmsintrepide » Wed Jul 04, 2012 09:25

Ok thanks, your explanation is very instructive.
Retour du site minetest.fr avec un nouveau nom et design : http://minetest-fr.tk . Un wiki en cours de rédaction avec un forum !
 


Return to WIP Mods



Who is online

Users browsing this forum: Google [Bot], Skamiz Kazzarch and 1 guest