Any ideas what i search for ?

Hello guys,
So i want to reprogram Minecraft (with some changes)
I watched a lot of tutorials and read much about it but nothing was really telling me how i create a block that can do something… like burn fuel to cook something…
So i tested a lot and i don’t know really how to do it or with what…
I need something that has:

  1. can execute functions (like burn fuel, teleport the player or spawn a particle system)
  2. Variables should be replicateable (like the inventory or how many energy is stored)
  3. i need many of them (over 3000)
  4. it has to be saveable(like that i create a function “SaveMe” and it saves all variables i need (in childs too))

It may not be visual(no object in the world)

Any ideas or hints for me?
(Point 4 isn’t really important but i would be nice to have)