|
|
PickMoreBlocks (拾取更多方块)Github |相关wiki |源站链接支持: fabric拓展中键点击功能,修复一些原版中让人不满的问题!
简介
*PickMoreBlocks* 是一个客户端 [Fabric](链接) 模组,旨在修复我认为原版中存在的小问题,让创造模式和生存模式体验变得更加顺畅!目前,它影响了下落方块、TNT、火、地狱传送门和液体的行为,未来还会有更多功能添加进来!
入门指南
由于使用了`BlockPickInteractionAware`和`EntityPickInteractionAware`接口来使得这个模组更加简洁,您需要下载[Fabric API](链接) 来使用它。下载完毕后,只需将 Fabric API 和 *PickMoreBlocks* 拖放到您的mods文件夹中。
目前尚无配置菜单,因为我认为这个模组的功能并不明显,也不够丰富,让您想要禁用它。但是,如果您在服务器上玩耍,请考虑联系服务器管理员,确保他们不会认为这个模组是作弊行为。
功能列表
#### TNT 和受重力影响的方块
在原版中,像沙子这样受重力影响的方块只能在静止时、呈方块形态时才能通过中键点击获取。*PickMoreBlocks* 修复了这一点,使得它也能在下落时被拾取!
出于包容性考虑,TNT也以同样的方式修复了。我想这只对那些善于使用TNT的技术玩家有用,这个群体如今应该不少!
#### 水和岩浆
自从这个模组发布以来,我就一直想加入这个功能!如果你将准星对准液体但没有选中背后的方块,你将获得对应液体的桶——水液体将会给你水桶,岩浆将会给你岩浆桶。
#### 火和传送门
在 *PickMoreBlocks* 中,点击火和传送门时可以获得打火石。之所以这么复杂是因为在 Minecraft 中点火的方式不仅仅是使用打火石,所以如果游戏在你的库存中找不到打火石但找得到一颗火焰弹,它将会给你火焰弹!
如果你的创造模式库存中既没有打火石也没有火焰弹,你将得到一把完全修复的打火石。
想要了解背后的代码实现吗?点击这里!
public class CustomPickLogic {public static ItemStack onPickFire(PlayerEntity player) {for (int i = 0; i < player.getInventory().size(); i++) {
ItemStack getStackAtSlot = player.getInventory().getStack(i);
逐个检查玩家库存中的槽位。
return getStackAtSlot;
如果槽位中包含打火石或(优先级较低)火焰弹,将其与主手槽交换...
}
return new ItemStack(Items.FLINT_AND_STEEL);
...或者如果两者都找不到,尝试给玩家一把新的打火石(在创造模式以外无效)!
}
}
来自Modrinth所有游戏版本1.20.31.20.41.20.11.20.2所有类型fabricPickMoreBlocks 1.0.2 (1.20.3-4)pickmoreblocks-1.0.2+1.20.3.jar下载1.0.2#Releasepickmoreblocks-1.0.2+1.20.3-sources.jar下载1.0.2#ReleaseUpdated to 1.20.3:- TNT picking now supports modified BlockState NBT values.Added liquid picking! If you\'re looking at a liquid without aiming at a block behind it, you will be given the bucket that corresponds to this liquid--a water bucket for water and a lava bucket for lava.Changed the mod icon to bring it more in-line with my general vision for these mods. It\'s also smaller in resolution, measuring 256x256 pixels instead of the 1024x of before.Reduced the number of mixins, shuffled some things around, added javadocs, made the code better :)展开版本: 1.0.2支持游戏: 1.20.3, 1.20.4类型:FabricRelease下载次数: 4,324PickMoreBlocks 1.0.1 (1.20.1)pickmoreblocks-1.0.1+1.20.1.jar下载1.0.1#Releasepickmoreblocks-1.0.1+1.20.1-sources.jar下载1.0.1#ReleaseThis release doesn\'t contain anything that changes the behaviour of the mod in any significant way, so you can skip this if you want to.* Updated the mod icon* Moved pick fire logic into a new class and removed clunky instanceof checks for fire and nether portals展开版本: 1.0.1支持游戏: 1.20.1, 1.20.2类型:FabricRelease下载次数: 1,156PickMoreBlocks 1.0.0 (1.20.1)pickmoreblocks-1.0.0+1.20.1.jar下载1.0.0#ReleaseInitial release. Supports 1.20.1 and 1.20.2.展开版本: 1.0.0支持游戏: 1.20.1, 1.20.2类型:FabricRelease下载次数: 583全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
PickMoreBlocks |
|