代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。

原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html



一五五.全人物可制造伍迪的斧子(8下砍倒1棵树,普通斧子15下)

	1.用MT管理器打开游戏目录/assets/DLC0002/scripts/recipes.lua文件,在Recipe("razor", {Ingredient("twigs", 2), Ingredient("flint", 2)}, RECIPETABS.TOOLS,  TECH.SCIENCE_ONE)的下一行插入Recipe("Lucy", {Ingredient("twigs", 4), Ingredient("goldnugget", 4)}, RECIPETABS.TOOLS,  TECH.SCIENCE_ONE)


	2.用MT管理器打开游戏目录/assets/scripts/prefabs/lucy.lua文件,将下列内容:

	inst:AddComponent("sentientaxe")
	
	inst:AddComponent("characterspecific")
	inst.components.characterspecific:SetOwner("woodie")

	替换为:

	--inst:AddComponent("sentientaxe")
	
	--inst:AddComponent("characterspecific")
	--inst.components.characterspecific:SetOwner("woodie")

	即可在工具选项(画着斧子和镐)下,用4个树杈、4个黄金制造伍迪的斧子