mirror of
https://github.com/TeamMidnightDust/VisualOverhaul.git
synced 2025-12-16 14:05:08 +01:00
feat: get colored water buckets working again
This commit is contained in:
@@ -10,6 +10,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
import net.minecraft.potion.Potions;
|
import net.minecraft.potion.Potions;
|
||||||
import net.minecraft.registry.entry.RegistryEntry;
|
import net.minecraft.registry.entry.RegistryEntry;
|
||||||
|
import net.minecraft.util.math.ColorHelper;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Unique;
|
import org.spongepowered.asm.mixin.Unique;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@@ -31,7 +32,8 @@ public class MixinPotionTintSource {
|
|||||||
if (!WATER_POTIONS.contains(contents.potion().get()))
|
if (!WATER_POTIONS.contains(contents.potion().get()))
|
||||||
return; // Skip all potions with effects
|
return; // Skip all potions with effects
|
||||||
}
|
}
|
||||||
cir.setReturnValue(VisualOverhaulClient.potionColor);
|
if (cir.getReturnValue() == -1) cir.setReturnValue(ColorHelper.fullAlpha(VisualOverhaulClient.potionColor));
|
||||||
|
else cir.setReturnValue(VisualOverhaulClient.potionColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "minecraft:item/axolotl_bucket",
|
||||||
|
"tints": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:constant",
|
||||||
|
"value": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:potion",
|
||||||
|
"default": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "minecraft:item/cod_bucket",
|
||||||
|
"tints": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:constant",
|
||||||
|
"value": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:potion",
|
||||||
|
"default": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "minecraft:item/pufferfish_bucket",
|
||||||
|
"tints": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:constant",
|
||||||
|
"value": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:potion",
|
||||||
|
"default": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "minecraft:item/salmon_bucket",
|
||||||
|
"tints": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:constant",
|
||||||
|
"value": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:potion",
|
||||||
|
"default": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "minecraft:item/tropical_fish_bucket",
|
||||||
|
"tints": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:constant",
|
||||||
|
"value": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:potion",
|
||||||
|
"default": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "minecraft:item/water_bucket",
|
||||||
|
"tints": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:constant",
|
||||||
|
"value": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:potion",
|
||||||
|
"default": -1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user