上一次,我进行了缩小器第一代研究,然而体积过大:

我新研究了一款,丝滑顺畅,没有任何卡顿。
代码如下,十分简单:
import os
b ,e ,f = int(input("初始数值")) ,1 ,2
d ,a = int(input("键入【2】清空文件,键入【1】进行生成")) ,int(input("键入任意数字生成或清除任意数量文件"))
if d == 2:
for i in range(int(f'{a}')):
os.remove(f'./{e}.mcfunction')
e += 1
if e >= int(f'{a}') + 1:
print("Over!")
break
if d == 1:
for i in range(int(f'{a}')):
b = round(b, 3)
c = f'''attribute @a[limit=1] minecraft:generic.scale base set {b}
schedule function furniture:{f} 1t'''
print(c)
test = open(f'./{e}.mcfunction', mode='w').write(c)
b ,e ,f= b - 0.001 ,e + 1, f + 1
if b
break
g = f'''attribute @a[limit=1] minecraft:generic.scale base set 1
schedule function furniture:2 1t
attribute @a[limit=1] minecraft:generic.movement_speed base set 0.1'''
print(g)
test = open(f'./1.mcfunction', mode='w').write(g)
复制代码——————————————直接就可以自定义任何时间快慢的缩小,最小是两格像素


@MoonCakeMC @FlowerOcean @屑灬月 @Cast1e @幽月琉璃 @专刀你 @美味的曲奇 @骰出的名字 @北极仙光 @Pink_Dove @west.myth @尸先peng @Lynx_yz @STGHT:D @Doomsday_Envoy @Stone_ingot
来自群组: 黄金之匣美术社团

我新研究了一款,丝滑顺畅,没有任何卡顿。
代码如下,十分简单:
import os
b ,e ,f = int(input("初始数值")) ,1 ,2
d ,a = int(input("键入【2】清空文件,键入【1】进行生成")) ,int(input("键入任意数字生成或清除任意数量文件"))
if d == 2:
for i in range(int(f'{a}')):
os.remove(f'./{e}.mcfunction')
e += 1
if e >= int(f'{a}') + 1:
print("Over!")
break
if d == 1:
for i in range(int(f'{a}')):
b = round(b, 3)
c = f'''attribute @a[limit=1] minecraft:generic.scale base set {b}
schedule function furniture:{f} 1t'''
print(c)
test = open(f'./{e}.mcfunction', mode='w').write(c)
b ,e ,f= b - 0.001 ,e + 1, f + 1
if b
break
g = f'''attribute @a[limit=1] minecraft:generic.scale base set 1
schedule function furniture:2 1t
attribute @a[limit=1] minecraft:generic.movement_speed base set 0.1'''
print(g)
test = open(f'./1.mcfunction', mode='w').write(g)
复制代码——————————————直接就可以自定义任何时间快慢的缩小,最小是两格像素


@MoonCakeMC @FlowerOcean @屑灬月 @Cast1e @幽月琉璃 @专刀你 @美味的曲奇 @骰出的名字 @北极仙光 @Pink_Dove @west.myth @尸先peng @Lynx_yz @STGHT:D @Doomsday_Envoy @Stone_ingot
来自群组: 黄金之匣美术社团