mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Allow modded tools to work on glow lichen (#8371)
This commit is contained in:
1 parent
62b99be117
commit
551296813e
18 files changed
+138
-40
No files matched your search
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
@@ -175,8 +174,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
-2
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:glow_lichen",
|
||||
"properties": {
|
||||
"east": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"count": 1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:glow_lichen",
|
||||
"properties": {
|
||||
"west": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"count": 1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:glow_lichen",
|
||||
"properties": {
|
||||
"north": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"count": 1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:glow_lichen",
|
||||
"properties": {
|
||||
"south": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"count": 1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:glow_lichen",
|
||||
"properties": {
|
||||
"up": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"count": 1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:glow_lichen",
|
||||
"properties": {
|
||||
"down": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"count": 1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": -1.0,
|
||||
"add": true
|
||||
},
|
||||
{
|
||||
"function": "minecraft:explosion_decay"
|
||||
}
|
||||
],
|
||||
"name": "minecraft:glow_lichen"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,8 +15,7 @@
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -122,8 +122,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -63,8 +63,7 @@
|
||||
},
|
||||
"offsetY": 1
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
@@ -128,8 +127,7 @@
|
||||
},
|
||||
"offsetY": -1
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,8 +15,7 @@
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
@@ -175,8 +174,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,8 +15,7 @@
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,8 +15,7 @@
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -121,8 +121,7 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -63,8 +63,7 @@
|
||||
},
|
||||
"offsetY": 1
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
@@ -128,8 +127,7 @@
|
||||
},
|
||||
"offsetY": -1
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -22,8 +22,7 @@
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,8 +15,7 @@
|
||||
"condition": "forge:can_tool_perform_action",
|
||||
"action": "shears_dig"
|
||||
}
|
||||
],
|
||||
"functions": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -107,6 +107,9 @@ public final class ForgeLootTableProvider extends LootTableProvider {
|
||||
}
|
||||
|
||||
for (LootPoolEntryContainer lootEntry : lootEntries) {
|
||||
if (findAndReplaceInLootEntry(lootEntry, from, toolAction)) {
|
||||
found = true;
|
||||
}
|
||||
if (lootEntry instanceof CompositeEntryBase) {
|
||||
if (findAndReplaceInParentedLootEntry((CompositeEntryBase) lootEntry, from, toolAction)) {
|
||||
found = true;
|
||||
|
||||
Reference in new issue
Block a user