Перейти к содержанию

GhostoFBU

Пользователи
  • Постов

    555
  • Зарегистрирован

  • Посещение

  • Победитель дней

    25

Весь контент GhostoFBU

  1. Можно сделать проверку на открытую последнюю страницу: /execute if data block 13 -60 16 {Page:6} run say открыта последняя страница {Page:6} - тут отсчёт идёт с нуля, т.е.: {Page:0} - открыта первая страница; {Page:1} - открыта вторая страница; ... {Page:6} - открыта седьмая страница
  2. # Призови сущность и активируй цикл. кб summon pillager ~ ~ ~ {Tags:["custom_tag"]} # Цикл. кб execute unless entity @e[type=pillager,tag=custom_tag] run setblock ~ ~ ~ redstone_block
  3. На новейшей версии можно в одну команду: execute as @a if predicate {"condition":"minecraft:time_check","value":{"min":13000,"max":23000},"period":24000} run effect give @s minecraft:night_vision 11 0 true
  4. execute as @e[type=minecraft:tnt,tag=stnt] if score @s Timer matches 190 run say Timer
  5. Сайт по созданию рецептов: https://misode.github.io/recipe/ Кастомные теги (компоненты) в результате крафта добавили с 1.20.5+ версии
  6. summon minecraft:interaction <x> <y> <z> {width:1.01f,height:1.01f,Tags:["explosion"]}
  7. Никак, используй таблицу добычи через дата пак
  8. Создай задачу по счётчику мобов: scoreboard objectives add entities_count dummy Счётчик мобов в сферическом радиусе: execute positioned 8 -61 8 store result score .pillagers entities_count if entity @e[type=minecraft:pillager,distance=..16] 8 -61 8 - центр ..16 - радиус (от 0 до 16 (включительно)) Через прямоугольный объёмный радиус (гайд: https://minecraft.wiki/w/Target_selectors#Selecting_targets_by_volume): execute store result score .pillagers entities_count if entity @e[type=minecraft:pillager,x=7,dx=2,y=-60,dy=2,z=7,dz=7] 7 -60 7 - первая точка 2 2 2 - вторая точка (относительно первой точки) Получиться такой прямоугольный объёмный радиус: X: [7; 7 + 2); Y: [-60; -60 + 2); Z: [7; 7 + 2) Спавн мобов до заданного лимита: execute if score .pillagers entities_count matches ..10 run summon minecraft:pillager 8 -60 8
  9. Нельзя использовать в крафте кастомные ингридиенты, только в результате крафта можно добавить кастомные теги
  10. <predicate>: { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "stepping_on": { "block": { "blocks": "minecraft:bedrock" } }, "equipment": { "offhand": { "items": "minecraft:music_disc_stal" } } } } execute as @a[predicate=<predicate>] at @s run function <name>
  11. Создай задачу: scoreboard objectives add game dummy Во время игры активируй цикл: execute store result score .civilians_alive game if entity @a[team=mirni,gamemode=!spectator] execute if score .civilians_alive game matches 0 run setblock x y z minecraft:redstone_block (конец игры и деактивация цикла)
  12. Для работы с дата паками, лучше используй этот сайт: https://misode.github.io/
  13. execute as @a[nbt={HurtTime:10s}] on attacker run effect give @s minecraft:blindness 5
  14. Один раз введи команды: forceload add 0 0 scoreboard objectives add timer.close_door dummy На месте дверей вводи эту команду (устанавливаем метки): execute align xyz run summon minecraft:marker ~.5 ~.5 ~.5 {Tags:["close_door"]} Удалить ближайшую метку: kill @e[type=minecraft:marker,tag=close_door,sort=nearest,limit=1] В цикл: 1. execute as @e[type=minecraft:marker,tag=close_door] at @s if block ~ ~ ~ #minecraft:doors[open=true] run scoreboard players add @s timer.close_door 1 2. execute at @e[type=minecraft:marker,tag=close_door,scores={timer.close_door=100}] run clone ~ ~-1 ~ ~ ~-1 ~ 0 -64 0 3. execute at @e[type=minecraft:marker,tag=close_door,scores={timer.close_door=100}] run setblock ~ ~-1 ~ minecraft:redstone_block 4. execute at @e[type=minecraft:marker,tag=close_door,scores={timer.close_door=100}] run clone 0 -64 0 0 -64 0 ~ ~-1 ~ 5. execute if entity @e[type=minecraft:marker,tag=close_door,scores={timer.close_door=100},limit=1] run setblock 0 -64 0 minecraft:air 6. scoreboard players reset @e[type=minecraft:marker,tag=close_door,scores={timer.close_door=100..}] timer.close_door
  15. execute at @a as @e[type=!minecraft:player,distance=..5] run damage @s 1.5 minecraft:player_attack
  16. 1.20.5+: /give @p minecraft:flint_and_steel[minecraft:can_place_on={predicates:[{}],show_in_tooltip:false}] 1.20.4-: Создать тег всех блоков, через датапак, и вставить в эту команду: /give @p minecraft:flint_and_steel{CanPlaceOn:["<#all_blocks>"],HideFlags:16}
  17. Можно без предиката: #minecraft:tick: execute as @e[type=minecraft:item] if items entity @s contents minecraft:music_disc_otherside at @s if block ~ ~-0.35 ~ minecraft:diamond_block run function <name> Функция <name>: data modify entity @s Item.components."minecraft:custom_data".custom_tag set value 1b setblock ~ ~-1 ~ minecraft:dirt replace
  18. Используй макросы в датапаках. Вот пример: Функция "m:modify_obj": # Инициализация статистики execute store result storage stats: death_count int 1 run scoreboard players get @a[limit=1] stats.death_count execute store result storage stats: player_kill_count int 1 run scoreboard players get @a[limit=1] stats.player_kill_count # Макрос function m:modify_obj/macro with storage stats: Функция "m:modify_obj/macro": scoreboard players display name .line_4 stats "" $scoreboard players display name .line_3 stats ["Убийств: ",{"text":"$(player_kill_count)","color":"yellow"}] $scoreboard players display name .line_2 stats ["Смертей: ",{"text":"$(death_count)","color":"gold"}] scoreboard players display name .line_1 stats ""
×
×
  • Создать...