I want to be able to make a brewing keg that will take sweat berries and make them into wine, Cactus into Tequila and take sugar cane and make it into rum, i want to place the ingredient in the new barrel block and trigger the command with a lever, i have an example up above, i was thinking that rum could give the same effect as potion of strength but half as effective, and wine would give health, but also half the effect of the regular potion and tequila could boost speed, and like the other two, its half as effective as the normal potion, then on top of that i was hoping it'll be possible to use a leader board or something that will keep track of how much you drink in one day, and if you drink more than three a day you gain nausea effect
i imagen this will take more than one command block, but that's why i want help i don't even know where to start
I want to be able to make a brewing keg that will take sweat berries and make them into wine, Cactus into Tequila and take sugar cane and make it into rum, i want to place the ingredient in the new barrel block and trigger the command with a lever, i have an example up above, i was thinking that rum could give the same effect as potion of strength but half as effective, and wine would give health, but also half the effect of the regular potion and tequila could boost speed, and like the other two, its half as effective as the normal potion, then on top of that i was hoping it'll be possible to use a leader board or something that will keep track of how much you drink in one day, and if you drink more than three a day you gain nausea effect
i imagen this will take more than one command block, but that's why i want help i don't even know where to start
(I guess I'll just butt in...)
Before I start anything, few questions:
1. Do you know how to use a function? If you don't, try to go to Youtube and learn it, then answer this.
2. Does all wine only need 1 item to make?
3. What is "half as effective" for each type of potion? Best to specify them all.
4. How long is the nausea effect? Does it go off in like 10 minutes? Or when a new day arrives?
you can use this to place the potion in the barrel:
/execute if block <x> <y> <z> barrel{Items:[{id:"minecraft:sweet_barries,Count:1b"}]} run data merge block <x> <y> <z> {Items:[{id:"minecraft:potion",Potion:{...}}]}
for the Potion:{...} you can use an online potion generator
I think i will use functions when i have all the commands i want to be figured out, im thinking 3 of an ingredient will do for one drink, i didn't know that i couldn't use 0,5 as a value on custom potions so, im trying to figure out how not to make this equal or better than potions, so far i just got most of my alcohol with effects set to 1 for 90 sec, also i think i want hunger and Nausea when you excide 3 of any of my custom potions instead of just Nausea, im trying to look for a way for a container block to be tested for the ingredient item, then remove sed ingredient item to get specific custom potions, idk how long i was thinking Nausea and hunger to last, maby 5 min
so for i got 6 drinks, Wine, Beer,Tequila, Rum, Vodka, and Cider, i have them all with the effects name and colors i want so far
I think i will use functions when i have all the commands i want to be figured out, im thinking 3 of an ingredient will do for one drink, i didn't know that i couldn't use 0,5 as a value on custom potions so, im trying to figure out how not to make this equal or better than potions, so far i just got most of my alcohol with effects set to 1 for 90 sec, also i think i want hunger and Nausea when you excide 3 of any of my custom potions instead of just Nausea, im trying to look for a way for a container block to be tested for the ingredient item, then remove sed ingredient item to get specific custom potions, idk how long i was thinking Nausea and hunger to last, maby 5 min
so for i got 6 drinks, Wine, Beer,Tequila, Rum, Vodka, and Cider, i have them all with the effects name and colors i want so far
one issue you will encounter on the way is: if you clear the barrel inventory to put the drink in it, any item the player puts in the barrel will also get deleted. To prevent this, you will have to detect each slot of the barrel to make sure only ingredients are there and no other items. Another way is to populate the barrel inventory with some placeholder items and leave only 3 slots empty. This way, the player can only insert 3 items.
I think i will use functions when i have all the commands i want to be figured out, im thinking 3 of an ingredient will do for one drink, i didn't know that i couldn't use 0,5 as a value on custom potions so, im trying to figure out how not to make this equal or better than potions, so far i just got most of my alcohol with effects set to 1 for 90 sec, also i think i want hunger and Nausea when you excide 3 of any of my custom potions instead of just Nausea, im trying to look for a way for a container block to be tested for the ingredient item, then remove sed ingredient item to get specific custom potions, idk how long i was thinking Nausea and hunger to last, maby 5 min
so for i got 6 drinks, Wine, Beer,Tequila, Rum, Vodka, and Cider, i have them all with the effects name and colors i want so far
Ok, so here's the very rough version with inconvenient restrictions, but spares the functions:
Something is wrong for the command behind the barrel, it won't work
Do not copy the words before the command.
e.g. [Rum]:, [Vodka]:
Those are only here to tell you which command is which, they're not a part of the command.
Or if you don't get it, use these commands behind the barrel instead.
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sweet_berries",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:6,Amplifier:0,ShowParticles:false}],display:{Name:"\"Wine\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:wheat",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:8,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Beer\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:cactus",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:1,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Tequila\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sugar_cane",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:5,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Rum\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:potato",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:14,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Vodka\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:apple",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:21,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Cider\""}}}]}
Those are only here to tell you which command is which, they're not a part of the command.
Or if you don't get it, use these commands behind the barrel instead.
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sweet_berries",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:6,Amplifier:0,ShowParticles:false}],display:{Name:"\"Wine\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:wheat",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:8,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Beer\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:cactus",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:1,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Tequila\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sugar_cane",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:5,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Rum\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:potato",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:14,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Vodka\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:apple",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:21,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Cider\""}}}]}
it's not because of the words, but because of the curly brackets in the command. I tried writing it from scratch and it had no errors but I couldn't get the custom effects to work.
it's not because of the words, but because of the curly brackets in the command. I tried writing it from scratch and it had no errors but I couldn't get the custom effects to work.
Hmm...
For the custom effects, create the scoreboard you mentioned above, and set them to repeating mode.
For the curly brackets... idk. I made sure everything works before I post the solution.
was wondering if i could make it so that after you excide 3 drinks from that point on every drink makes you dunk till the next day cycle starts, maby using a daylight sensor to reset the scoreboard count, also i forgot to share the commands i already have for giving me the custom potions
I want to be able to make a brewing keg that will take sweat berries and make them into wine, Cactus into Tequila and take sugar cane and make it into rum, i want to place the ingredient in the new barrel block and trigger the command with a lever, i have an example up above, i was thinking that rum could give the same effect as potion of strength but half as effective, and wine would give health, but also half the effect of the regular potion and tequila could boost speed, and like the other two, its half as effective as the normal potion, then on top of that i was hoping it'll be possible to use a leader board or something that will keep track of how much you drink in one day, and if you drink more than three a day you gain nausea effect
i imagen this will take more than one command block, but that's why i want help i don't even know where to start
(I guess I'll just butt in...)
Before I start anything, few questions:
1. Do you know how to use a function? If you don't, try to go to Youtube and learn it, then answer this.
2. Does all wine only need 1 item to make?
3. What is "half as effective" for each type of potion? Best to specify them all.
4. How long is the nausea effect? Does it go off in like 10 minutes? Or when a new day arrives?
5. Are you prepared to not get an easy answer?
6. 1+1=?
you can use this to place the potion in the barrel:
for the Potion:{...} you can use an online potion generator
To keep track of the players drinking:
this will increment by 1 every time a player drinks a potion
you can now do:
and reset the score
Command block engineer // Developer // #TeamTrees
I think i will use functions when i have all the commands i want to be figured out, im thinking 3 of an ingredient will do for one drink, i didn't know that i couldn't use 0,5 as a value on custom potions so, im trying to figure out how not to make this equal or better than potions, so far i just got most of my alcohol with effects set to 1 for 90 sec, also i think i want hunger and Nausea when you excide 3 of any of my custom potions instead of just Nausea, im trying to look for a way for a container block to be tested for the ingredient item, then remove sed ingredient item to get specific custom potions, idk how long i was thinking Nausea and hunger to last, maby 5 min
so for i got 6 drinks, Wine, Beer,Tequila, Rum, Vodka, and Cider, i have them all with the effects name and colors i want so far
one issue you will encounter on the way is: if you clear the barrel inventory to put the drink in it, any item the player puts in the barrel will also get deleted. To prevent this, you will have to detect each slot of the barrel to make sure only ingredients are there and no other items. Another way is to populate the barrel inventory with some placeholder items and leave only 3 slots empty. This way, the player can only insert 3 items.
Command block engineer // Developer // #TeamTrees
Ok, so here's the very rough version with inconvenient restrictions, but spares the functions:
Type in chat:
/scoreboard objectives add drink minecraft.used:minecraft.potion
Command behind barrels:
[Wine]: /execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sweet_berries",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:6,Amplifier:0,ShowParticles:false}],display:{Name:"\"Wine\""}}}]}
[Beer]: /execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:wheat",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:8,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Beer\""}}}]}
[Tequila]: /execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:cactus",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:1,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Tequila\""}}}]}
[Rum]: /execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sugar_cane",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:5,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Rum\""}}}]}
[Vodka]: /execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:potato",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:14,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Vodka\""}}}]}
[Cider]: /execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:apple",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:21,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Cider\""}}}]}
Repeating Commands:
/effect give @a[scores={drink=3..}] minecraft:nausea 300
/effect give @a[scores={drink=3..}] minecraft:hunger 300
/scoreboard players set @a[scores={drink=3..}] drink 0
Now... It's time for restrictions:
1. There must be exactly 3 of the item stacked in 1 of the slot to work (i.e. You cannot stack 9 berries or split 3 berries in different slots)
2. Excess items in the barrel will be removed
3. First come first serve. Once the wine is made, everybody can steal it from you
Notes:
1. The coordinates shown above are directional. My case for ~-1 ~ ~ is when all the item frames are facing west. So you need to calibrate yourself
2. All the liquors are currently black, replace the CustomPotionColor with the number you use
3. I don't know the effect for Beer, Vodka and Cider, change it yourself
There you go. But if you can't stand having such restrictions, you can ask again.
Something is wrong for the command behind the barrel, it won't work
Do not copy the words before the command.
e.g. [Rum]:, [Vodka]:
Those are only here to tell you which command is which, they're not a part of the command.
Or if you don't get it, use these commands behind the barrel instead.
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sweet_berries",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:6,Amplifier:0,ShowParticles:false}],display:{Name:"\"Wine\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:wheat",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:8,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Beer\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:cactus",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:1,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Tequila\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:sugar_cane",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:5,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Rum\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:potato",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:14,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Vodka\""}}}]}
/execute if block ~-1 ~ ~ barrel{Items:[{id:"minecraft:apple",Count:3b}]} run data merge block ~-1 ~ ~ {Items:[{id:"minecraft:potion",Count:1,Slot:13,tag:{CustomPotionColor:0,CustomPotionEffects:[{Id:21,Amplifier:0,Duration:900,ShowParticles:false}],display:{Name:"\"Cider\""}}}]}
it's not because of the words, but because of the curly brackets in the command. I tried writing it from scratch and it had no errors but I couldn't get the custom effects to work.
Command block engineer // Developer // #TeamTrees
Hmm...
For the custom effects, create the scoreboard you mentioned above, and set them to repeating mode.
For the curly brackets... idk. I made sure everything works before I post the solution.
apparently it had the error because of a space in front, but now that i fixed that, nothing is happening
PS
was wondering if i could make it so that after you excide 3 drinks from that point on every drink makes you dunk till the next day cycle starts, maby using a daylight sensor to reset the scoreboard count, also i forgot to share the commands i already have for giving me the custom potions
Wine
/give @p minecraft:potion{CustomPotionEffects:[{Id:6,ShowParticles:0b}],CustomPotionColor:11340646,display:{Name:"\"Wine\""}}
Beer
/give @p minecraft:potion{CustomPotionEffects:[{Id:26,Duration:1800,ShowParticles:0b}],CustomPotionColor:13740314,display:{Name:"\"Beer\""}}
Tequila
/give @p minecraft:potion{CustomPotionEffects:[{Id:1,Duration:1800,ShowParticles:0b}],CustomPotionColor:16642653,display:{Name:"\"Tequila\""}}
Rum
/give @p minecraft:potion{CustomPotionEffects:[{Id:5,Duration:1800,ShowParticles:0b}],CustomPotionColor:16381317,display:{Name:"\"Rum\""}}
Vodka
/give @p minecraft:potion{CustomPotionEffects:[{Id:11,Duration:1800,ShowParticles:0b}],CustomPotionColor:16777215,display:{Name:"\"Vodka\""}}
Cider
/give @p minecraft:potion{CustomPotionEffects:[{Id:3,Duration:1800,ShowParticles:0b}],CustomPotionColor:16637539,display:{Name:"\"Cider\""}}
The counting mechanism is in my first post on this thread.
make another scoreboard objective with the potion detection criteria (you could do this with one but I want to make it easier for you)
and now to apply the effect if "drink" is 3 or more:
and then just reset the "drink_temp"
also, there is no need for a daylight detector as this can all be done with commands.
you can store the current time into a scoreboard objective like this:
<objective> will contain the current time (must run repeatedly)
The Minecraft day starts at 24000 ticks and beds can be used at 12516.6 ticks
you can find all the info about the daylight cycle here: https://minecraft.gamepedia.com/Day-night_cycle
Command block engineer // Developer // #TeamTrees