Skip to content

Get Score Operation

Converts minecraft:living_entity prototype into puffish_skills:number prototype such that it represents the score of the living entity in the given objective scoreboard.

Examples

The operation is used to get score of the player from the example objective scoreboard, such that the experience source gives more experience depending on the score.

Click to view
json
{
	"type": "puffish_skills:kill_entity",
	"data": {
		"variables": {
			"score": {
				"operations": [
					{
						"type": "get_player"
					},
					{
						"type": "as_entity"
					},
					{ 
						"type": "puffish_skills:get_score",
						"data": {
							"objective": "example"
						}
					}
				],
				"fallback": 0
			},
			"dropped_experience": {
				"operations": [
					{
						"type": "get_dropped_experience"
					}
				]
			},
		},
		"experience": "dropped_experience * score*"
	}
}

JSON structure

PropertyTypeRequired
effecteffect identifieryes