Get number of slices on a cake

Started by FerretWithACatHat on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Aug 2019
Points:
796

User statistics:

  • Modifications: 0
  • Forum topics: 27
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
Get number of slices on a cake

How do i get the number of slices / bites off of a cake? Im making a cake slice mod and would like this info

Active 5 months ago
Joined Jun 2020
Points:
693

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 135
Cakes have a block nbt tag…
Fri, 05/21/2021 - 00:04

Cakes have a block nbt tag named "bites" ranging from values 0 - 6 (inclusive), which calculates the number of bits that have been taken from the cake. Use the procedure block "Get nbt number tag from block" with the input of "bites" to get this value.