This allows the user to create a tool with normal crafting, like this:
This also works with my enchanted tools:
This shows that any tool can be repaired this way. What I am trying to figure out is; how the heck do I disable this by a mod?
minetest.register_craft({
type = "toolrepair",
additional_wear = 0.8, -- for 80% additional wear
})Krock wrote:Override it.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_craft({
type = "toolrepair",
additional_wear = 0.8, -- for 80% additional wear
})
Rhys wrote:Krock wrote:Override it.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_craft({
type = "toolrepair",
additional_wear = 0.8, -- for 80% additional wear
})
Will this work within a new mod?
Krock wrote:Rhys wrote:Krock wrote:Override it.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_craft({
type = "toolrepair",
additional_wear = 0.8, -- for 80% additional wear
})
Will this work within a new mod?
moreblocks did it too, so I guess it works.
(Well, it just prevents players from repairing their tools)
Calinou wrote:More Blocks buffs the repairing from 2% bonus to 15% bonus, for that, it replaces -0.02 with -0.15. A positive value damages tools upon repairing.
Rhys wrote:Can modpacks override a mod if I have the same name for the mod as a mod which isn't in a modpack?
Krock wrote:Rhys wrote:Can modpacks override a mod if I have the same name for the mod as a mod which isn't in a modpack?
What does this have to do with repairing tools?
Well, it shoudn't be possible because "world.mt" saves every mod, also those in modpacks
Rhys wrote:I need to replace the original repairing code with this new code WITHIN default mod - doesn't seem to override within a new mod, how strange.
Users browsing this forum: No registered users and 6 guests