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.
I know this isn't EXACTLY what you asked for, but an alternative could be this:
Since sheep drop raw mutton when killed, why not use a command to check if you're holding mutton and use THAT as an offering to give everyone experience?
/execute if entity @s[nbt={SelectedItem:{id:"minecraft:mutton",Count:1b}}]
You can change the number in count to the amount you want.
P.S: It is important when using that command to have the EXACT amount in-hand!
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 :
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Hey everyone, hope you're doing doing.
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.
Problem is I don't know what commands use...
Could you help me?
Thank you very much and have a good day !
I know this isn't EXACTLY what you asked for, but an alternative could be this:
Since sheep drop raw mutton when killed, why not use a command to check if you're holding mutton and use THAT as an offering to give everyone experience?
You can change the number in count to the amount you want.
P.S: It is important when using that command to have the EXACT amount in-hand!
There's a way to do exactly what you want!
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 :
Then the command blocks contents (Place them at the same direction as on the screenshot) :
-Right one ;
Settings : Repeat - Unconditionnal - Always active
Command :
-Middle one :
Settings : Repeat - Uncontitionnal - Always active
Command :
-Left one :
Settings : Chain - Conditionnal - Always active
Command :
Now you can build any patern with the emerald blocks in order to create a zone matching your church's floor.
Pleased to help you!
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Just a clarification, in 1.13, stat.killEntity.Sheep is minecraft.killed:minecraft.sheep
hope this method works!