Jump to content

1.15.2 Loot Table isnt't working


TheDeadlyWaffle

Recommended Posts

Hey, so I tried to create a loot table for my custom ore block, but it doesn't seem to work, can someone help me out, please?

 

{
	"type": "minecraft:block",
	"pools": [
		{
			"rolls": 1,
			"entries": [
				{
					"type": "minecraft:alternatives",
					"children": [
						{
							"conditions": [
								{
									"condition": "match_tool",
									"predicate": {
										"enchantments": [
											{
												"enchantment": "silk_touch",
												"levels": {
													"min": 1
												}
											}
										]
									}
								}
							],
							"type": "minecraft:item",
							"name": "spiritcraft:echo_gem_ore"
						},
						{
							"conditions": [
								{
									"condition": "random_chance",
									"chance": 0.5
								}
							],
							"type": "minecraft:item",
							"name": "spiritcraft:echo_gem",
							"functions": [
								{
									"function": "minecraft:apply_bonus",
                  					"enchantment": "minecraft:fortune",
                 					"formula": "minecraft:ore_drops"
								}
							]
						},
						{
							"type": "minecraft:item",
							"name": "spiritcraft:whispering_echo_gem"
						}
					]
				}
			]
			
		}
	]
	
}

I tried to make the ore drop either an echo_gem or a whispering_echo_gem and if you mine the ore with silk_touch, you should get the ore item.

Edited by TheDeadlyWaffle
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.