315: Experiments with accelerated crop growth. [Minecraft Map Making]

  Рет қаралды 270

Infernal Device

Infernal Device

17 күн бұрын

Ep315: Experiments with a way to increase the speed of crop growth.
Check out the Sprinkler for growing nearby crops faster: • 317: Grow crops faster...
Version: 1.19
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: / coppitj
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: / discord
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Since angled brackets are not allowed in KZfaq descriptions you will have to replace "greater than" with the appropriate angled bracket. Ascii code: 62
Commands used:
Setup:
IUN: scoreboard objectives add timer dummy
Give Egg:
IUN: give @p slime_spawn_egg{display:{Name:'{"text":"Marker: Carrot"}'}, EntityTag:{id:"minecraft:marker", Tags:["marker_carrot"]}}
Show Markers:
RUA: execute at @e[tag=marker_carrot] run particle dust 1 0 0 1 ~ ~ ~ 0.1 0.1 0.1 0 1
Controller:
RUA: scoreboard players add #crop timer 1
CUA: execute if score #crop timer matches 5.. run scoreboard players reset #crop timer
CCA: execute at @e[tag=marker_carrot] if block ~ ~ ~ carrots[age=7] run summon item ~ ~0.5 ~ {Motion:[0.0,0.3,0.0], Item:{id:"minecraft:carrot", Count:1b}}
CCA: execute as @e[tag=marker_carrot] at @s if block ~ ~ ~ carrots[age=7] store success score @s timer run setblock ~ ~ ~ carrots[age=0]
CUA: execute as @e[tag=marker_carrot] if block 52 56 356 chain_command_block{SuccessCount:1} at @s unless score @s timer matches 1 if block ~ ~ ~ carrots[age=0] store success score @s timer run setblock ~ ~ ~ carrots[age=2]
CUA: execute as @e[tag=marker_carrot] if block 52 56 356 chain_command_block{SuccessCount:1} at @s unless score @s timer matches 1 if block ~ ~ ~ carrots[age=2] store success score @s timer run setblock ~ ~ ~ carrots[age=4]
CUA: execute as @e[tag=marker_carrot] if block 52 56 356 chain_command_block{cuccessCount:1} at @s unless score @s timer matches 1 if block ~ ~ ~ carrots[age=4] run setblock ~ ~ ~ carrots[age=7]
CUA: scoreboard players reset @e[tag=marker_carrot] timer

Пікірлер: 17
@the_rahn
@the_rahn 16 күн бұрын
Nice! As a small optimization idea, on all of those blocks where you go "execute as @e[...] if block...", I'd put the block check before selecting the marker. You don't need marker context to check the block, and that way you'll skip @e calls every time the block check fails :)
@InfernalDevice
@InfernalDevice 16 күн бұрын
That would be a better order to do it in, thank you. :)
@chad_hillier
@chad_hillier 16 күн бұрын
I love your videos so🎉🎉
@InfernalDevice
@InfernalDevice 16 күн бұрын
Thank you very much, it's always nice to hear that people enjoy them. :)
@GalSergey
@GalSergey 16 күн бұрын
Hello. I don't quite understand why you check the success of the commands, it can be done much simpler, but in any case, I have an idea for creating a sprinkler that randomly speeds up the growth of plants around. In short it works like this: Every N ticks the sprinkler creates an area_effects_cloud and uses the scoreboard ID system to link this to the sprinkler. Next, it randomly teleports area_effects_cloud within a radius of 4 blocks and using the scoreboard ID system returns it to the same height as the sprinkler. This is necessary because the player may have a roof or any other blocks on top, which will break the entire system. And now it simply increases the growth of the plant in this block by 1 stage. Here's an example for 1.20.5, although with minor modifications it will work on 1.19: # Sprinkler give @p allay_spawn_egg[item_name='"Sprinkler"',entity_data={id:"minecraft:item_display",Tags:["sprinkler"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.25f,0f],scale:[0.5f,0.5f,0.5f]},item:{id:"minecraft:lightning_rod"}}] # In chat scoreboard objectives add sprinkler dummy scoreboard objectives add sprinkler.ID dummy # Command blocks execute as @e[type=item_display,tag=sprinkler] unless score @s sprinkler.ID = @s sprinkler.ID store result score @s sprinkler.ID run scoreboard players add #new sprinkler.ID 1 execute at @e[type=item_display,tag=sprinkler] run particle minecraft:dust_pillar{block_state:{Name:"minecraft:water"}} ~ ~0.5 ~ 0 0 0 0 3 scoreboard players add @e[type=item_display,tag=sprinkler] sprinkler 1 execute as @e[type=item_display,tag=sprinkler,scores={sprinkler=10..}] at @s store success score @s sprinkler summon area_effect_cloud store success score @s sprinkler run scoreboard players operation @s sprinkler.ID = @e[type=item_display,tag=sprinkler,distance=...1,limit=1] sprinkler.ID execute as @e[type=area_effect_cloud,scores={sprinkler=1}] at @s run spreadplayers ~ ~ 0 4 false @s execute as @e[type=area_effect_cloud,scores={sprinkler=1}] positioned as @e[type=item_display,tag=sprinkler] if score @s sprinkler.ID = @e[type=item_display,tag=sprinkler,distance=...1,limit=1] sprinkler.ID run data modify entity @s Pos[1] set from entity @e[type=item_display,tag=sprinkler,distance=...1,limit=1] Pos[1] execute at @e[type=area_effect_cloud,scores={sprinkler=1}] run particle minecraft:splash ~ ~ ~ 0.2 0.2 0.2 0 100 execute at @e[type=area_effect_cloud,scores={sprinkler=1}] run fill ~ ~ ~ ~ ~ ~ minecraft:carrots[age=7] replace minecraft:carrots[age=6] execute at @e[type=area_effect_cloud,scores={sprinkler=1}] run fill ~ ~ ~ ~ ~ ~ minecraft:carrots[age=6] replace minecraft:carrots[age=5] execute at @e[type=area_effect_cloud,scores={sprinkler=1}] run fill ~ ~ ~ ~ ~ ~ minecraft:carrots[age=5] replace minecraft:carrots[age=4] execute at @e[type=area_effect_cloud,scores={sprinkler=1}] run fill ~ ~ ~ ~ ~ ~ minecraft:carrots[age=4] replace minecraft:carrots[age=3] ... Ask questions if something is not clear in this code.
@InfernalDevice
@InfernalDevice 16 күн бұрын
Ooo, this looks interesting. I'll try and make it when I finish work, thank yo very much. :D
@the_rahn
@the_rahn 16 күн бұрын
Interesting approach! Why do you use an aec instead of a marker? Another solution that comes to mind is to give the sprinkler a random rotation and teleport the aec/marker a random distance away towards that rotation. That way the area covered is round instead of squared, and you skip the entity linking, although you'd probably need to use macros.
@InfernalDevice
@InfernalDevice 16 күн бұрын
@@the_rahn I assume the marker is just a point, but the AOC is bigger and can check anywhere inside its hitbox.
@the_rahn
@the_rahn 16 күн бұрын
@@InfernalDevice Is that so? I believe all entities have a single point of origin at the center of the bottom face of their hitbox, where their ~ ~ ~ lies. Can aec check for blocks anywhere inside their hitbox?
@InfernalDevice
@InfernalDevice 15 күн бұрын
@@the_rahn I don't know. I haven't tried it yet. It does sound a bit to useful though lol. After reading the commands above I think it's because AOC will die by itself at the end of the command chain.
@vibre8815
@vibre8815 16 күн бұрын
comment for algorithm
@InfernalDevice
@InfernalDevice 16 күн бұрын
The prince held aloft his magic sword, a blinding light shone out. "By the power of comments!" he shouted, "I have the powwweeerrrr!"
314: Floo powder from Harry Potter. [Minecraft Map Making]
45:25
Infernal Device
Рет қаралды 413
I Added A Villager City To Minecraft.... Again?
26:35
SeaWattgaming
Рет қаралды 1,6 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 703 М.
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 30 МЛН
25 Everyday Hacks That Make Minecraft Easier
10:29
Skip the Tutorial
Рет қаралды 6 МЛН
23 Minecraft Hacks That Don't Require Mods
8:44
Skip the Tutorial
Рет қаралды 8 МЛН
150 Glitches Mojang said they Won't Fix
26:47
Block Facts
Рет қаралды 114 М.
SciCraft: Getting Command Blocks In Survival
53:01
ilmango
Рет қаралды 358 М.
321: Eat any item and right-click detection. [Minecraft Map Making]
12:55
Generate ELECTRICITY with Create | Create New Age
21:22
polartt
Рет қаралды 202 М.
Bedrock's Redstone SUCKS, Here's Why.
10:38
Purplers
Рет қаралды 1,2 МЛН
Testing Viral Command Block Tricks To See If They Work
15:26
EYstreem
Рет қаралды 1,6 МЛН
MAIZEN But Everything is weird - MAIZEN Minecraft Animation #shorts
0:27
Kamui - Minecraft Animation
Рет қаралды 27 МЛН
edgar pedro#brawlstars
0:14
gold loser
Рет қаралды 10 МЛН
Maze Challenge with Sonic and Knuckles #minecraft #sonic
0:22
SonicCraft
Рет қаралды 11 МЛН
Do You Want The Baby Frog To Get The Food? #shorts
0:46
ZolphiusFun
Рет қаралды 23 МЛН
Body Symbol Game With Sonic And Shadow
0:23
Intalord
Рет қаралды 10 МЛН