Skip to content

Commit

Permalink
Add tooltip message for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GearsDatapacks committed Jan 30, 2023
1 parent 74e6d1f commit b28b1b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/bot/functions/entity/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ execute on passengers as @s[type=marker,tag=bot.golem.brain] if data entity @s d

execute on passengers as @s[type=armor_stand,tag=bot.golem.display] run data modify entity @s CustomName set value '{"text": ""}'
execute on passengers as @s[type=marker,tag=bot.golem.brain] if data entity @s data{status:"stopped"} on vehicle on passengers as @s[type=armor_stand,tag=bot.golem.display] run data modify entity @s CustomName set value '{"text": "Shift right click to run"}'
execute on passengers as @s[type=marker,tag=bot.golem.brain] unless data entity @s data.compiled on vehicle on passengers as @s[type=armor_stand,tag=bot.golem.display] run data modify entity @s CustomName set value '{"text": "Right click with a book to give it a program"}'
execute on passengers as @s[type=marker,tag=bot.golem.brain] unless data entity @s data.compiled on vehicle on passengers as @s[type=armor_stand,tag=bot.golem.display] run data modify entity @s CustomName set value '{"text": "Right click with a book to give it a program"}'
execute on passengers as @s[type=marker,tag=bot.golem.brain] if data entity @s data{status:"error"} on vehicle on passengers as @s[type=armor_stand,tag=bot.golem.display] run data modify entity @s CustomName set value '{"text": "An error occured. Right click with a book to give it a new program"}'

0 comments on commit b28b1b3

Please sign in to comment.