Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
#by tengoku (2021)
on block break:
if event-block is cake:0:
drop 1 cake named "&fCake" with lore " " at location of event-block
add "cake:0" to cake named "&fCake"
if event-block is cake:1:
drop 1 cake named "&fCake" with lore " " at location of event-block
if event-block is cake:2:
drop 1 cake named "&fCake" with lore " " at location of event-block
if event-block is cake:3:
drop 1 cake named "&fCake" with lore " " at location of event-block
if event-block is cake:4:
drop 1 cake named "&fCake" with lore " " at location of event-block
if event-block is cake:5:
drop 1 cake named "&fCake" with lore " " at location of event-block
if event-block is cake:6:
drop 1 cake named "&fCake" with lore " " at location of event-block
if event-block is cake:7:
drop 1 cake named "&fCake" with lore " " at location of event-block
on block place:
if name of player's held item is "&fCake":
if lore of player's held item is " ":
set event-block to cake:0
if lore of player's held item is " ":
set event-block to cake:1
if lore of player's held item is " ":
set event-block to cake:2
if lore of player's held item is " ":
set event-block to cake:3
if lore of player's held item is " ":
set event-block to cake:4
if lore of player's held item is " ":
set event-block to cake:5
if lore of player's held item is " ":
set event-block to cake:6
if lore of player's held item is " ":
set event-block to cake:7