作者:rebot | 分类:模组
Minecraft 版本: 1.21.9 1.21.10 1.21.11
平台: minecraft
标签: entities modded tweaks

.gif)

I’ve made it so other packs can detect and disable my pack’s features for compatibility. Here’s an example of how to disable features in my pack - you can put it in either item_addon or hand_addon
global.GHP_disablePlanting = 0.0;
global.GHP_disableThrowing = 0.0;
global.GHP_disableShearing = 0.0;
global.GHP_disableShearingMPA = 0.0;
global.GHP_customShearsMPA = 0;
global.GHP_leftShearsStart = 0;
global.GHP_leftShearsEnd = 29;
global.GHP_rightShearsStart = 30;
global.GHP_rightShearsEnd = 59;
global.GHP_leftShearsRot = 7.5;
global.GHP_rightShearsRot = -7.5;
global.GHP_isActive = 0.0;
global.GHP_prevIsActive = 0.0;
local isHandPosesActive = (GHP_prevIsActive ~= GHP_isActive) -- check if hand poses pack is active
GHP_disablePlanting = GHP_disablePlanting + 1 -- disable planting
GHP_disableThrowing = GHP_disableThrowing + 1 -- disable throwing
GHP_disableShearing = GHP_disableShearing + 1 -- disable shearing
GHP_disableShearingMPA = GHP_disableShearingMPA + 1 -- disable shears modelpart animation
--------------------------------------------- PUT YOUR SCRIPT UNDER HERE v
-- EXAMPLE
-- do things if hand poses pack is on
if isHandPosesActive then
-- example: move item up by 1 unit
M:moveY(context.matrices, 1)
end
GHP_customShearsMPA = GHP_customShearsMPA + 1 -- enable custom shears modelpart
-- pretty much self explain
GHP_leftShearsStart = 0
GHP_leftShearsEnd = 29
GHP_rightShearsStart = 30
GHP_rightShearsEnd = 59
GHP_leftShearsRot = 7.5;
GHP_rightShearsRot = -7.5;
--------------------------------------------- END OF YOUR SCRIPT ^
-- leave this at the bottom of your script
GHP_prevIsActive = GHP_isActive请登录后举报
暂无评论,抢个沙发吧~