Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
add banner control.
Browse files Browse the repository at this point in the history
  • Loading branch information
Redbeanw44602 committed May 2, 2022
1 parent 4efedfe commit 3d26e0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iland-core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Map = {
'minecraft:salmon_bucket','minecraft:cod_bucket','minecraft:water_bucket','minecraft:cod_bucket',
'minecraft:lava_bucket','minecraft:bucket','minecraft:flint_and_steel','minecraft:skull',
'minecraft:wooden_axe','minecraft:stone_axe','minecraft:iron_axe','minecraft:golden_axe',
'minecraft:diamond_axe','minecraft:netherite_axe'
'minecraft:diamond_axe','minecraft:netherite_axe','minecraft:banner'
}),
-- # Special attack.
[3] = Array.ToKeyMap({
Expand Down Expand Up @@ -4631,6 +4631,7 @@ mc.listen('onUseItemOn',function(player,item,block)
if string.sub(it,-6,-1) == 'bucket' and perm.use_bucket then return end -- 各种桶
if string.sub(it,-3,-1) == 'axe' and perm.allow_place then return end -- 斧头给木头去皮(拓充)
if it == 'minecraft:skull' and perm.allow_place then return end -- 放置头颅(拓充)
if it == 'minecraft:banner' and perm.allow_place then return end -- 放置旗帜(拓充)
if it == 'minecraft:glow_ink_sac' and perm.allow_place then return end -- 发光墨囊给木牌上色(拓充)
if it == 'minecraft:end_crystal' and perm.allow_place then return end -- 末地水晶(拓充)
if it == 'minecraft:ender_eye' and perm.allow_place then return end -- 放置末影之眼(拓充)
Expand Down

0 comments on commit 3d26e0a

Please sign in to comment.