#███████╗██╗░░██╗███████╗███╗░░░███╗███████╗░░░░░██╗██╗███╗░░██╗ #══██╔══╝██║░░██║██╔════╝████╗░████║██╔════╝░░░░░██║██║████╗░██║ #░░██║░░░███████║█████╗░░██╔████╔██║█████╗░░░░░░░██║██║██╔██╗██║ #░░██║░░░██╔══██║██╔══╝░░██║╚██╔╝██║██╔══╝░░██╗░░██║██║██║╚████║ #░░██║░░░██║░░██║███████╗██║░╚═╝░██║███████╗╚█████╔╝██║██║░╚███║ #░░╚═╝░░░╚═╝░░╚═╝╚══════╝╚═╝░░░░░╚═╝╚══════╝░╚════╝░╚═╝╚═╝░░╚══╝ present_item: type: item material: player_head display name: <&f>Подарок recipes: 1: type: shaped input: - air|string|air - air|barrel|air - air|leather|air mechanisms: skull_skin: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzZlNjliMWM3ZTY5YmNkNDllZDk3NGY1YWMzNmVhMjc1ZWZhYmI4YzY0OWNiMmIxZmU5ZDZlYTYxNjZlYzMifX19 ob_car: type: item material: howl_pottery_sherd display name: <&f>Обертка «Машинка» flags: ob: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTMxODI4OWM1Yjc1MTFmNzc5YzdiMzQ0ZTRjZTc2NjFiNGU0ODgxMWE5YzI0YmZkOTBlZjdkY2I3NjIwODI4NCJ9fX0= ob_grinch: type: item material: danger_pottery_sherd display name: <&f>Обертка «Гринч» flags: ob: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDUzNjhmNTYzNWZmNmMzNDA3ZjBmMzU2YzViNmUwOTQ3YmNkNWUzODQ5MGM5YWE4YjhiNTgyYTRmMjFhZTNjYiJ9fX0= ob_heart: type: item material: heart_pottery_sherd display name: <&f>Обертка «Любовь» flags: ob: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDdmNDgxYTBiMDg3NmQxNDJjMDNiOGE1NTEwZjVmMDE0NTRkMjhkY2ZlYzlmNTFiM2E0YTFlMmY5NzU5YTIyOSJ9fX0= ob_diamond: type: item material: prize_pottery_sherd display name: <&f>Обертка «Алмаз» flags: ob: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWRkODY3M2Y4NDJlNTBmMTMxYjM3N2M4NGI2ZmU1MWMyMTkxMDZkZjNmYmMwOTFhN2JjOTI2OWI5MWM2NjA1MiJ9fX0= ob_happynew: type: item material: friend_pottery_sherd display name: <&f>Обертка «Новогоднее настроение» flags: ob: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmYzMGI3ZTIwNmNlYjQxYWQzNDg2Yzc5NmZmYjI2MzVkZTQwM2E1YmMwOGZkM2M4NjE0MWI2ZGM0YjEzY2I1In19fQ== present_ent: type: entity entity_type: item_display[item=player_head[skull_skin=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzZlNjliMWM3ZTY5YmNkNDllZDk3NGY1YWMzNmVhMjc1ZWZhYmI4YzY0OWNiMmIxZmU5ZDZlYTYxNjZlYzMifX19]] giftskin_cmd: type: command name: giftskin description: Does something usage: /giftskin permission: plus tab completions: 1: ! Код головы script: - if : - narrate '<&c>Возьмите в руку подарок!' - stop - if == null: - narrate '<&c>Укажите код головы!' - stop - inventory adjust slot:hand skull_skin: - narrate '<&a>Код головы был изменен!' presents_handler: type: world events: on player right clicks block: - define ent - if <[ent]> != null: - stop if: - stop if:<[ent].has_flag[anim]> - if : - if <[ent].has_flag[items]>: - give ].with[skull_skin=<[ent].flag[ob]||eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzZlNjliMWM3ZTY5YmNkNDllZDk3NGY1YWMzNmVhMjc1ZWZhYmI4YzY0OWNiMmIxZmU5ZDZlYTYxNjZlYzMifX19>]> - else: - give ]> - playeffect effect:poof <[ent].location.sub[0,0.8,0]> quantity:4 offset:0.1 - playsound sound:ITEM_ARMOR_EQUIP_GENERIC - animate animation:ARM_SWING - remove <[ent]> - stop - if : - flag <[ent]> ob: - adjust <[ent]> item:]> - playeffect effect:poof <[ent].location.sub[0,0.8,0]> quantity:4 offset:0.1 - playsound sound:item_armor_equip_leather - take iteminhand - stop - determine passively cancelled - if <[ent].flag[items_count]> >= 15: - actionbar '<&c>Лимит предметов в подарке 15!' - stop - define item - adjust item_in_hand:air - animate animation:ARM_SWING - flag <[ent]> items:->:<[item]> - flag <[ent]> items_count:++ - playsound sound:item_armor_equip_leather - adjust <[ent]> interpolation_duration:5t - adjust <[ent]> interpolation_start:0t - adjust <[ent]> left_rotation:]> - wait 5t - adjust <[ent]> interpolation_duration:5t - adjust <[ent]> interpolation_start:0t - adjust <[ent]> left_rotation:]> on player right clicks block with:present_item: - determine passively cancelled - if ].y> == 1 && : - define true - define item - playsound sound:ITEM_ARMOR_EQUIP_GENERIC - spawn present_ent[item=] save:beb - look yaw: - define ent - flag <[ent]> ob: - take iteminhand quantity:1 - flag <[ent]> anim expire:17t - playeffect effect:poof <[ent].location.sub[0,0.8,0]> quantity:4 offset:0.1 - adjust <[ent]> interpolation_duration:5t - adjust <[ent]> interpolation_start:0t - adjust <[ent]> left_rotation:]> - repeat 2: - playsound sound:entity_cow_step <[ent].location> - wait 2.5t - adjust <[ent]> interpolation_duration:5t - adjust <[ent]> interpolation_start:0t - adjust <[ent]> left_rotation:]> - repeat 2: - playsound sound:entity_cow_step <[ent].location> - wait 2.5t - adjust <[ent]> interpolation_duration:5t - adjust <[ent]> interpolation_start:0t - adjust <[ent]> left_rotation:]> - repeat 2: - playsound sound:entity_cow_step <[ent].location> - wait 2.5t - if <[true]>: - define location <[ent].location.sub[0,0.3,0]> - playsound sound:entity_firework_rocket_blast_far <[location]> volume:8 pitch:1.5 - playsound sound:entity_firework_rocket_large_blast <[location]> volume:8 pitch:1.5 - playsound sound:entity_firework_rocket_twinkle <[location]> volume:8 pitch:1.5 - playsound sound:entity_firework_rocket_blast <[location]> volume:8 pitch:1.5 - playeffect effect:explosion at:<[location]> visibility:100 offset:0 - repeat 100: - playeffect effect:firework at:<[location]> visibility:100 offset:0 velocity: - playeffect effect:poof at:<[location]> visibility:100 offset:0 velocity: - foreach <[item]>: - drop <[value]> quantity:1 <[ent].location> - remove <[ent]>