Block Morphing is a lot more fun, you can morph into any block, Mob Morphing is fun, but Block Morphing is more fun! Hide into places, hide in your friend's base, you can go anywhere! Plus no Resourcepacks/Texturepacks included! Type /function bmorph: and then type the Minecraft block you want to morph into, like '/function bmorph:oak_planks' for example. Or you can hold TAB or use the Up and Down arrows to scroll and find the block you want. It will automatically morph yourself into the block you entered. To Unmorph type '/function bmorph:stop' Here's the techy stuff below!
I didn't make all the functions myself, that'd take too long. Instead, I made a batch script that automatically generates all of the functions itself. Here's the code:
@echo off
for /f "tokens=*" %%s in (blocks.txt) do (
echo execute positioned as @p run summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:%%s"}} >> %%s.mcfunction
echo effect give @p invisibility 1 1 true >> %%s.mcfunction
echo schedule function bmorph:%%s 1t >> %%s.mcfunction
)
What it's doing is for every line in block.txt (I'll get to that in a moment) it will get every line in block.txt and it will for each line it will save some Minecraft code into a new file called the line that it's currently reading for e.g "oak_planks.mcfunction". I've got another file that generates the stop file to stop morphing the blocks:
@echo off
for /f "tokens=*" %%s in (blocks.txt) do (
echo schedule clear bmorph:%%s >> stop.mcfunction
)
Finally, the blocks.txt for the batch file to read the Minecraft blocks from:
andesite
bedrock
birch_wood_slab
black_wool
block_of_coal
block_of_diamond
block_of_emerald
block_of_gold
block_of_iron
blue_wool
bone_block
bookshelf
brick
brick_slab
brick_stairs
brown_mushroom_block
brown_wool
white_carpet
chorus_flower
chorus_plant
clay_block
coal_ore
cobblestone
cobblestone_slab
cobblestone_stairs
cobblestone_wall
cobweb
cyan_wool
dark_prismarine
diamond_ore
diorite
dirt
emerald_ore
end_portal
end_portal_frame
end_stone
end_stone_bricks
end_rod
farmland
oak_fence
fire
glass
glass_pane
glowstone
gold_ore
granite
grass
grass_path
gravel
gray_wool
green_wool
hardened_clay
hay_bale
creeper_head
skeleton_head
player_head
zombie_head
ice
iron_bars
iron_ore
jack_o_lantern
jungle_wood_slab
lapis_lazuli_block
lapis_lazuli_ore
oak_leaves
light_blue_wool
light_gray_wool
lily_pad
lime_wool
magenta_wool
melon
melon_vine
mob_spawner
moss_stone
mossy_cobblestone_wall
mycelium
nether_brick
nether_brick_fence
nether_brick_slab
nether_brick_stairs
nether_quartz_ore
netherrack
oak_wood_slab
obsidian
orange_wool
packed_ice
pink_wool
podzol
polished_andesite
polished_diorite
polished_granite
portal
prismarine
prismarine_bricks
pumpkin
pumpkin_vine
purple_wool
purpur_block
purpur_pillar
purpur_slab
quartz_block
quartz_slab
red_mushroom_block
red_sandstone
chiseled_red_sandstone
smooth_red_sandstone
red_sandstone_slab
red_sandstone_stairs
red_wool
redstone_ore
sand
sandstone
chiseled_sandstone
smooth_sandstone
sandstone_slab
sandstone_stairs
slime_block
snow
snow_block
soul_sand
sponge
spruce_wood_slab
white_stained_glass
white_stained_glass_pane
stone
stone_brick_slab
stone_brick_stairs
stone_bricks
stone_slab
structure_block
vine
oak_wood
oak_planks
oak_slab
oak_stairs
white_wool
yellow_wool