Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重写材料需求代码 #2

Open
ProjectSky opened this issue Feb 15, 2022 · 0 comments
Open

重写材料需求代码 #2

ProjectSky opened this issue Feb 15, 2022 · 0 comments
Labels
增强 添加新的,改进旧的

Comments

@ProjectSky
Copy link
Owner

目前解析材料需求的代码过于繁琐,材料添加/修改需要同时编辑neededMaterials和modData表,重写后仅需修改/添加neededMaterials表

新的neededMaterials表结构如下

MoreBuild.neededMaterials = {
	Material = {
		'need:Base.Nails=10',
		'need:Base.Rope=5',
		'need:Base.Plank=5',
		'need:Base.Gravelbag=2',
		'need:Base.BucketEmpty=1',
		'xp:Woodwork=50'
	}
}
@ProjectSky ProjectSky added the 增强 添加新的,改进旧的 label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
增强 添加新的,改进旧的
Projects
None yet
Development

No branches or pull requests

1 participant