[Enchants]附魔相关函数实例
blocklauncher插件吧
全部回复
仅看楼主
level 12
mcpe_addons 楼主
[滑稽]首先感谢@_静_雨_
其次2楼开始
2016年03月26日 11点03分 1
level 11
[滑稽]来了
2016年03月26日 11点03分 3
[滑稽]神速
2016年03月26日 11点03分
level 12
mcpe_addons 楼主
另外有两个new貌似忘记了delete[滑稽]如果看着不爽请自行加上delete
2016年03月26日 11点03分 5
level 12
mcpe_addons 楼主
另外代码很乱[滑稽]
如果看着不爽请自行改造
2016年03月26日 11点03分 7
level 12
mcpe_addons 楼主
另外测试时的部分图片
2016年03月26日 11点03分 8
level 12
围观
2016年03月26日 14点03分 9
level 11

2016年03月26日 14点03分 10
level 13
帮顶
2016年03月26日 16点03分 11
level 12
mcpe_addons 楼主
设置盔甲和附魔
2016年03月27日 00点03分 13
level 12
mcpe_addons 楼主
ItemInstance*iis1=new ItemInstance(310,1,0);
ItemInstance*iis2=new ItemInstance(311,1,0);
ItemInstance*iis3=new ItemInstance(312,1,0);
ItemInstance*iis4=new ItemInstance(313,1,0);
EnchantUtils::randomlyEnchant(*iis1,9,2);
EnchantUtils::randomlyEnchant(*iis2,9,2);
EnchantUtils::randomlyEnchant(*iis3,9,2);
EnchantUtils::randomlyEnchant(*iis4,9,2);
mob.setArmor(firstslot,iis1 );
mob.setArmor(secondslot,iis2);
mob.setArmor(thirdslot,iis3);
mob.setArmor(forthslot,iis4);
上图的实现代码。
使用前请确定setArmor为非virtual。
2016年03月27日 00点03分 14
level 10
老司机
2016年03月31日 04点03分 16
level 1
厉害
2016年04月15日 13点04分 18
1