I'm playing on a private server with some friends following some custom rpg rules: on order to harvest corns and make bread, we need to build a mill. To be able to make complex wood items, we need to build a sawmill. Same for amors with a forge, public decision with city hall....
I'm in charge with the church and I would like to introduce a sacrifice rewards system with commznd block.
The main idea will be:
Each time a sheep is killed by a player inside the church, this player and all the players inside the church receive xp or xp levels.
On the attached picture, you can see a golden platform, an emerald square (wich it at Y=10) and 3 command blocks. That's all! (It's an 1.12.2 creation, you haven't precised your version). You can replace the gold block by any other block, at any height, this doenst matter at all.
How it works :
-There's a score that counts the sheep kills for players
-The system detects if there's an emerald block at X=[Player's pos] Y=10 Z=[Player's pos] from each player who have a sheep kill (as you see on the screenshot, this means that the system tests for any player who kills a ship while on the gold blocks, wich can be placed at any height).
Standing on the obsidian wont trigger the system as there's no emerald blocks under it.
-There's also a clock that keep resetting the sheep kills for preventing cheats
The command blocks :
Here's the descriptions of the 3 command blocks on the screenshot, from right to left. Of course, in order to make the system work, you have to type these 2 commands :