Skip to content

Commit

Permalink
0.5.4
Browse files Browse the repository at this point in the history
* Changes
    * 磁铁可以吸起掉落中的铁砧了
    * 将磁铁可以吸起掉落中的铁砧设置为可配置的
        修改data/anc/functions/config.mcfunction将$ancAttractingFalling的ancConfig计分板即可开关此功能
    * 经验修补2现在支持0-64之间任意数量经验瓶
        修改data/anc/functions/config.mcfunction将$ancExperienceRepair的ancConfig计分板可以控制单个经验瓶修复的耐久值
* Additives
    * 物品(具体合成方式请查看官网)
        * 汤圆(生)
        * 汤圆
        * 海绵芽球
    * 更好的发射器可以用来挤牛奶和繁殖动物了
* Fixed Bugs
    * ANC-000048 4个海洋之果才能砸出1个海洋之核
    * ANC-000049 批量合成海洋之刃时海晶碎片优先合成海晶石
    * ANC-000050 分解与辊压配方均失效
    * ANC-000051 煎五毒散未生效
    * ANC-000052 v0.5.3 被qc激活的活塞推出的铁砧无法正常掉落
    * ANC-000053 v0.5.2 使用“方块破坏”功能时,当被破坏方块可以被粉碎时,被破坏方块会先被粉碎再被破坏
    * ANC-000054 v0.5.4-pre1 磁铁吸取的铁砧无法完成辊压和分解操作
    * ANC-000055 v0.5.4-pre2 鞘翅分解失效
    * ANC-000056 v0.5.4-pre2 五毒散只有第一次吃有效
    * ANC-000056 v0.5.4-pre3 五毒散无论如何都会有中毒效果
    * ANC-000057 v0.5.4-pre3 引雷II失效
    * ANC-000058 v0.5.4-pre4 汤圆合成数量与介绍不同
    * ANC-000059 v0.5.4-pre4 引雷Ⅱ失效
  • Loading branch information
Gu-ZT committed Feb 15, 2022
1 parent a96499d commit a20a59e
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 10 deletions.
29 changes: 27 additions & 2 deletions Tools.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
from tools import addItme, addBlock, outJson, mathParticles
import sys

from tools import addItme, addBlock, outJson, mathParticles, pack

tip = '''1.新增物品
2.新增方块
3.生成粒子特效
4.生成MCMOD可导入的JSON
5.导出数据包
0.退出\n'''
if __name__ == '__main__':

argv = sys.argv


def dowhile():
while True:
choose = input(tip)
if choose == '0':
Expand All @@ -19,7 +25,26 @@
mathParticles.mathParticles()
elif choose == '4':
outJson.outJson()
elif choose == '5':
pack.pack()
else:
pass


if __name__ == '__main__':
try:
get = argv[1]
if get == 'pack':
pack.pack()
elif get == 'additem':
addItme.addItem()
elif get == 'addblock':
addBlock.addblock()
elif get == 'outjson':
outJson.outJson()
elif get == 'mathparticles':
mathParticles.mathParticles()
else:
dowhile()
except:
dowhile()
2 changes: 1 addition & 1 deletion assets/anc/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Please install the correct resource pack": "§f§l============================§r\n§b§lWelcome to use AnvilCraft,Datapack Version:§r%s§b§l,Resourcepack Version:§6§l0.5.4-pre4§r\n§b§lDatapack author:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§lResourcepack author:§r§6§lXe_Kr§r\n§f§l============================§r",
"Please install the correct resource pack": "§f§l============================§r\n§b§lWelcome to use AnvilCraft,Datapack Version:§r%s§b§l,Resourcepack Version:§6§l0.5.4§r\n§b§lDatapack author:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§lResourcepack author:§r§6§lXe_Kr§r\n§f§l============================§r",
"anc.block.magnet_block.name": "Magnet Block",
"anc.block.magnet_block.lore": "When activated by redstone, it can suck up the anvil directly below it (within 4 blocks)",
"anc.item.empty_protocol.name": "Empty Protocol",
Expand Down
2 changes: 1 addition & 1 deletion assets/anc/lang/zh_cn.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Please install the correct resource pack": "§f§l============================§r\n§b§l欢迎使用铁砧工艺,数据包版本:§r%s§b§l,资源包版本:§6§l0.5.4-pre4§r\n§b§l数据包作者:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§l资源包作者:§r§6§lXe_Kr§r\n§f§l============================§r",
"Please install the correct resource pack": "§f§l============================§r\n§b§l欢迎使用铁砧工艺,数据包版本:§r%s§b§l,资源包版本:§6§l0.5.4§r\n§b§l数据包作者:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§l资源包作者:§r§6§lXe_Kr§r\n§f§l============================§r",
"anc.block.magnet_block.name": "磁铁",
"anc.block.magnet_block.lore": "被红石激活时可以吸起其正下方(4个方块内)的铁砧",
"anc.block.crafting_machine.name": "合成器",
Expand Down
2 changes: 1 addition & 1 deletion assets/anc/lang/zh_hk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Please install the correct resource pack": "§f§l============================§r\n§b§l歡迎使用鐵砧工藝,資料包版本:§r%s§b§l,資源包版本:§6§l0.5.4-pre4§r\n§b§l資料包作者:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§l資源包作者:§r§6§lXe_Kr§r\n§f§l============================§r",
"Please install the correct resource pack": "§f§l============================§r\n§b§l歡迎使用鐵砧工藝,資料包版本:§r%s§b§l,資源包版本:§6§l0.5.4§r\n§b§l資料包作者:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§l資源包作者:§r§6§lXe_Kr§r\n§f§l============================§r",
"anc.block.magnet_block.name": "磁鐵",
"anc.block.magnet_block.lore": "被紅石啟動時可以吸起其正下方(4個方塊內)的鐵砧",
"anc.item.empty_protocol.name": "空協定",
Expand Down
2 changes: 1 addition & 1 deletion assets/anc/lang/zh_tw.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Please install the correct resource pack": "§f§l============================§r\n§b§l歡迎使用鐵砧工藝,資料包版本:§r%s§b§l,資源包版本:§6§l0.5.4-pre4§r\n§b§l資料包作者:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§l資源包作者:§r§6§lXe_Kr§r\n§f§l============================§r",
"Please install the correct resource pack": "§f§l============================§r\n§b§l歡迎使用鐵砧工藝,資料包版本:§r%s§b§l,資源包版本:§6§l0.5.4§r\n§b§l資料包作者:§r§6§lGu_ZT§r§b§l、§r§6§lsch246§r §b§l資源包作者:§r§6§lXe_Kr§r\n§f§l============================§r",
"anc.block.magnet_block.name": "磁鐵",
"anc.block.magnet_block.lore": "被紅石啟動時可以吸起其正下方(4個方塊內)的鐵砧",
"anc.item.empty_protocol.name": "空協定",
Expand Down
2 changes: 2 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ namespace=anc
addfile=Add.xls
mpf_dir=mpf
cmd_prefix=1114
pack_name=AnvilCraft-{version}-{mcv}.zip
mcv=1.18

[addfile]
item=Item
Expand Down
2 changes: 1 addition & 1 deletion data/anc/functions/handle/join.mcfunction
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tellraw @s {"translate": "Please install the correct resource pack","with":[{"text": "0.5.4-pre4","color": "gold","bold": true}]}
tellraw @s {"translate": "Please install the correct resource pack","with":[{"text": "0.5.4","color": "gold","bold": true}]}
2 changes: 1 addition & 1 deletion data/anc_me/functions/tick.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 玩家tick
execute as @a at @s run function anc_me:tick/player
# 引雷2
execute as @e[type=trident] at @s if data entity @s Trident.tag.Enchantments.[{id:"minecraft:channeling",lvl:2}] run function anc_me:channeling_2
execute as @e[type=trident] at @s if data entity @s Trident.tag.Enchantments.[{id:"minecraft:channeling",lvl:2s}] run function anc_me:channeling_2
# 以箭为执行者
function anc_me:arrow/type
# execute as @e[type=!#anc:not_kill] run function anc_me:tick/mob
Expand Down
2 changes: 1 addition & 1 deletion pack.mcmeta
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"color": "gold"
},
{
"text": " v0.5.4-pre4",
"text": " v0.5.4",
"color": "gold"
},
{
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xlrd~=2.0.1
opencv-python~=4.5.4.60
numpy~=1.21.4
imageio~=2.13.3
matplotlib~=3.5.0
zipfile39~=0.0.4.2
36 changes: 36 additions & 0 deletions tools/pack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import json
import os.path
from . import pro_dir
from .lib import readConfig
import zipfile


def pack():
pack_mcmeta = os.path.join(pro_dir, 'pack.mcmeta')
pmm = json.loads(open(pack_mcmeta, 'r+', encoding='utf-8').read())
version = pmm['pack']['description'][1]['text']
version = version[2:]
name = readConfig.getConfig('settings', 'pack_name').format(version=version, mcv=readConfig.getConfig('settings', 'mcv'))

data = os.path.join(pro_dir, 'data')
assets = os.path.join(pro_dir, 'assets')
pack_png = os.path.join(pro_dir, 'pack.png')
license_f = os.path.join(pro_dir, 'LICENSE')

z = zipfile.ZipFile(name, 'w')
z.write(pack_png, "pack.png")
z.write(pack_mcmeta, 'pack.mcmeta')
z.write(license_f, 'LICENSE')
pre_len = len(os.path.dirname(data))
for parent, dirnames, filenames in os.walk(data):
for filename in filenames:
pathfile = os.path.join(parent, filename)
arcname = pathfile[pre_len:].strip(os.path.sep) # 相对路径
z.write(pathfile, arcname)
pre_len = len(os.path.dirname(assets))
for parent, dirnames, filenames in os.walk(assets):
for filename in filenames:
pathfile = os.path.join(parent, filename)
arcname = pathfile[pre_len:].strip(os.path.sep) # 相对路径
z.write(pathfile, arcname)
z.close()
4 changes: 3 additions & 1 deletion 版本记录.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
* ANC-000056 v0.5.4-pre3 五毒散无论如何都会有中毒效果
* ANC-000057 v0.5.4-pre3 引雷II失效

## 2022/02/xx 0.5.4
## 2022/02/15 0.5.4
* Changes
* 磁铁可以吸起掉落中的铁砧了
* 将磁铁可以吸起掉落中的铁砧设置为可配置的
Expand All @@ -263,6 +263,7 @@
* 更好的发射器可以用来挤牛奶和繁殖动物了
* Fixed Bugs
* ANC-000048 4个海洋之果才能砸出1个海洋之核
* ANC-000049 批量合成海洋之刃时海晶碎片优先合成海晶石
* ANC-000050 分解与辊压配方均失效
* ANC-000051 煎五毒散未生效
* ANC-000052 v0.5.3 被qc激活的活塞推出的铁砧无法正常掉落
Expand All @@ -273,3 +274,4 @@
* ANC-000056 v0.5.4-pre3 五毒散无论如何都会有中毒效果
* ANC-000057 v0.5.4-pre3 引雷II失效
* ANC-000058 v0.5.4-pre4 汤圆合成数量与介绍不同
* ANC-000059 v0.5.4-pre4 引雷Ⅱ失效

0 comments on commit a20a59e

Please sign in to comment.