Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Activate once:
- /scoreboard objectives add sleep stat.sleepInBed
- /scoreboard objectives add breakLog stat.mineBlock.minecraft.log
- All in repeat command blocks:
- /scoreboard players tag @a[score_sleep_min=1] add sleep
- /scoreboard players set @a[score_breakLog_min=2] breakLog 1
- /scoreboard players tag @a[score_breakLog_min=1] add breakLog
- Connected to the daylight sensor:
- /execute @a[tag=breakLog,tag=sleep] ~ ~ ~ /summon armor_stand ~ ~ ~ {Invisible:1b,Invulnerable:1b,Small:1b,CustomName:"tree",DisabledSlots:2039583}
- /execute @e[type=armor_stand,name=tree] ~ ~ ~ /clone 598 59 220 594 56 216 ~-2 ~ ~-2 masked
- /execute @e[type=armor_stand,name=tree] ~ ~ ~ /kill @p[tag=sleep]
- /scoreboard players reset @a[tag=breakLog] breakLog
- /scoreboard players tag @a[tag=breakLog] remove breakLog
- /scoreboard players reset @a[tag=sleep] sleep
- /scoreboard players tag @a[tag=sleep] remove sleep
- /kill @e[type=armor_stand,name=tree]
- Don't forget to subscribe! https://www.youtube.com/channel/UCjSv83xJ_CdG3LEVBlfpzeQ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement