Topic category: Help with Minecraft modding (Java Edition)
I am trying to create a fuel for a generator that spits out porkchops every 30 seconds for 30 minutes by right-clicking the generator with an item.
This is the procedure that is supposed to activate the generation, but it says I am missing a sourceentity dependency. The dependency disappears if I call a different procedure at the end.
https://imgur.com/a/qcUiHnc
The procedure that it calls at the bottom which is "ActivatePigHighDrop" is what spams the procedure called "PigHighDrop" every 30 seconds that chooses if a porkchop is spawned. It activates 60 times.
(Top) https://imgur.com/a/kDEVkY5
(Bottom) https://imgur.com/a/YcmuDjq
This is the procedure "PigHighDrop"
https://imgur.com/a/ri9SJik
Right now what the procedure does is removes a fuel item from the player's inventory and changes the generator block into a block with the "lit" texture like it's supposed to. What it is not doing is not playing the entity.pig.hurt sound or calling the "ActivatePigHighDrop" procedure that spawns porkchops.
Can anyone help me make it work? Thanks in advance.
Anyone have any suggestions?