• check_circle Functions
  • 8,627 views, 18 today
  • 1,699 downloads, 5 today
  • 32
  • 22
  • 23
GoldenD60 avatar GoldenD60
Level 30 : Artisan Pixel Puncher
13
Block Morphing is a lot more fun when you play games, you can morph into any block! Hide into places, hide in your friend's base, you can go anywhere! Plus no Resourcepacks/Texturepacks included! Type /trigger [​name of block], like '/trigger oak_planks' for example. Or you can use the Up and Down arrows to scroll and find the block you want. It will automatically morph yourself into the block you entered using TAB. To Unmorph type '/trigger unmorph' Here's the techy stuff below!

Techy Stuff

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 themselves. Here's the code:

@echo off
for /f "tokens=*" %%s in (blocks.txt) do (
echo %%s
echo execute at @a[scores={%%s=1}] run summon falling_block ~ ~ ~ {BlockState:{Name:"minecraft:%%s"}} >> %%s.mcfunction
echo effect give @a[scores={%%s=1}] invisibility 1 1 true >> %%s.mcfunction
echo execute as @a[scores={%%s=1}] run scoreboard players set @s %%s 1 >> %%s.mcfunction
echo scoreboard players enable @a %%s >> %%s.mcfunction
echo schedule function %%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 must also have a generate scoreboard file that generates the Minecraft Scoreboards:

@echo off
for /f "tokens=*" %%s in (blocks.txt) do (
echo %%s
echo scoreboard objectives remove %%s >> load.mcfunction
echo scoreboard objectives add %%s trigger >> load.mcfunction
echo scoreboard players enable @a %%s >> load.mcfunction

echo function %%s >> tick.mcfunction
)

echo scoreboard objectives remove unmorph >> load.mcfunction
echo scoreboard objectives add unmorph trigger >> load.mcfunction
echo scoreboard players enable @a unmorph >> load.mcfunction

echo function unmorph >> tick.mcfunction
echo scoreboard players enable @a unmorph >> tick.mcfunction


I've got another file that generates the stop file to unmorph:

@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:

Show Massive array of blocks (Do not expand if you have a slow internet connection)
acacia_button
acacia_door
acacia_fence
acacia_fence_gate
acacia_leaves
acacia_log
acacia_planks
acacia_pressure_plate
acacia_sapling
acacia_sign
acacia_slab
acacia_stairs
acacia_trapdoor
acacia_wood
activator_rail
allium
ancient_debris
andesite
andesite_slab
andesite_stairs
andesite_wall
anvil
apple
armor_stand
arrow
azure_bluet
baked_potato
bamboo
barrel
barrier
basalt
bat_spawn_egg
beacon
bedrock
bee_nest
bee_spawn_egg
beef
beehive
beetroot
beetroot_seeds
beetroot_soup
bell
birch_boat
birch_button
birch_door
birch_fence
birch_fence_gate
birch_leaves
birch_log
birch_planks
birch_pressure_plate
birch_sapling
birch_sign
birch_slab
birch_stairs
birch_trapdoor
birch_wood
black_banner
black_bed
black_carpet
black_concrete
black_concrete_powder
black_dye
black_glazed_terracotta
black_shulker_box
black_stained_glass
black_stained_glass_pane
black_terracotta
black_wool
blackstone
blackstone_slab
blackstone_stairs
blackstone_wall
blast_furnace
blaze_powder
blaze_rod
blaze_spawn_egg
blue_banner
blue_bed
blue_carpet
blue_concrete
blue_concrete_powder
blue_dye
blue_glazed_terracotta
blue_ice
blue_orchid
blue_shulker_box
blue_stained_glass
blue_stained_glass_pane
blue_terracotta
blue_wool
bone
bone_block
bone_meal
book
bookshelf
bow
bowl
brain_coral
brain_coral_block
brain_coral_fan
bread
brewing_stand
brick
brick_slab
brick_stairs
brick_wall
bricks
brown_banner
brown_bed
brown_carpet
brown_concrete
brown_concrete_powder
brown_dye
brown_glazed_terracotta
brown_mushroom
brown_mushroom_block
brown_shulker_box
brown_stained_glass
brown_stained_glass_pane
brown_terracotta
brown_wool
bubble_coral
bubble_coral_block
bubble_coral_fan
bucket
cactus
cake
campfire
carrot
carrot_on_a_stick
cartography_table
carved_pumpkin
cat_spawn_egg
cauldron
cave_spider_spawn_egg
chain
chain_command_block
chainmail_boots
chainmail_chestplate
chainmail_helmet
chainmail_leggings
charcoal
chest
chest_minecart
chicken
chicken_spawn_egg
chipped_anvil
chiseled_nether_bricks
chiseled_polished_blackstone
chiseled_quartz_block
chiseled_red_sandstone
chiseled_sandstone
chiseled_stone_bricks
chorus_flower
chorus_fruit
chorus_plant
clay
clay_ball
clock
coal
coal_block
coal_ore
coarse_dirt
cobblestone
cobblestone_slab
cobblestone_stairs
cobblestone_wall
cobweb
cocoa_beans
cod
cod_bucket
cod_spawn_egg
command_block
command_block_minecart
comparator
compass
composter
conduit
cooked_beef
cooked_chicken
cooked_cod
cooked_mutton
cooked_porkchop
cooked_rabbit
cooked_salmon
cookie
cornflower
cow_spawn_egg
cracked_nether_bricks
cracked_polished_blackstone_bricks
cracked_stone_bricks
crafting_table
creeper_banner_pattern
creeper_head
creeper_spawn_egg
crimson_button
crimson_door
crimson_fence
crimson_fence_gate
crimson_fungus
crimson_hyphae
crimson_nylium
crimson_planks
crimson_pressure_plate
crimson_roots
crimson_sign
crimson_slab
crimson_stairs
crimson_stem
crimson_trapdoor
crossbow
crying_obsidian
cut_red_sandstone
cut_red_sandstone_slab
cut_sandstone
cut_sandstone_slab
cyan_banner
cyan_bed
cyan_carpet
cyan_concrete
cyan_concrete_powder
cyan_dye
cyan_glazed_terracotta
cyan_shulker_box
cyan_stained_glass
cyan_stained_glass_pane
cyan_terracotta
cyan_wool
damaged_anvil
dandelion
dark_oak_boat
dark_oak_button
dark_oak_door
dark_oak_fence
dark_oak_fence_gate
dark_oak_leaves
dark_oak_log
dark_oak_planks
dark_oak_pressure_plate
dark_oak_sapling
dark_oak_sign
dark_oak_slab
dark_oak_stairs
dark_oak_trapdoor
dark_oak_wood
dark_prismarine
dark_prismarine_slab
dark_prismarine_stairs
daylight_detector
dead_brain_coral
dead_brain_coral_block
dead_brain_coral_fan
dead_bubble_coral
dead_bubble_coral_block
dead_bubble_coral_fan
dead_bush
dead_fire_coral
dead_fire_coral_block
dead_fire_coral_fan
dead_horn_coral
dead_horn_coral_block
dead_horn_coral_fan
dead_tube_coral
dead_tube_coral_block
dead_tube_coral_fan
detector_rail
diamond
diamond_axe
diamond_block
diamond_boots
diamond_chestplate
diamond_helmet
diamond_hoe
diamond_horse_armor
diamond_leggings
diamond_ore
diamond_pickaxe
diamond_shovel
diamond_sword
diorite
diorite_slab
diorite_stairs
diorite_wall
dirt
dispenser
dolphin_spawn_egg
donkey_spawn_egg
dragon_breath
dragon_egg
dragon_head
dried_kelp
dried_kelp_block
dropper
drowned_spawn_egg
egg
elder_guardian_spawn_egg
elytra
emerald
emerald_block
emerald_ore
enchanted_book
enchanted_golden_apple
enchanting_table
end_crystal
end_portal_frame
end_rod
end_stone
end_stone_brick_slab
end_stone_brick_stairs
end_stone_brick_wall
end_stone_bricks
ender_chest
ender_eye
ender_pearl
enderman_spawn_egg
endermite_spawn_egg
evoker_spawn_egg
experience_bottle
farmland
feather
fermented_spider_eye
fern
filled_map
fire_charge
fire_coral
fire_coral_block
fire_coral_fan
firework_rocket
firework_star
fishing_rod
fletching_table
flint
flint_and_steel
flower_banner_pattern
flower_pot
fox_spawn_egg
furnace
furnace_minecart
ghast_spawn_egg
ghast_tear
gilded_blackstone
glass
glass_bottle
glass_pane
glistering_melon_slice
globe_banner_pattern
glowstone
glowstone_dust
gold_block
gold_ingot
gold_nugget
gold_ore
golden_apple
golden_axe
golden_boots
golden_carrot
golden_chestplate
golden_helmet
golden_hoe
golden_horse_armor
golden_leggings
golden_pickaxe
golden_shovel
golden_sword
granite
granite_slab
granite_stairs
granite_wall
grass
grass_block
grass_path
gravel
gray_banner
gray_bed
gray_carpet
gray_concrete
gray_concrete_powder
gray_dye
gray_glazed_terracotta
gray_shulker_box
gray_stained_glass
gray_stained_glass_pane
gray_terracotta
gray_wool
green_banner
green_bed
green_carpet
green_concrete
green_concrete_powder
green_dye
green_glazed_terracotta
green_shulker_box
green_stained_glass
green_stained_glass_pane
green_terracotta
green_wool
grindstone
guardian_spawn_egg
gunpowder
hay_block
heart_of_the_sea
heavy_weighted_pressure_plate
hoglin_spawn_egg
honey_block
honey_bottle
honeycomb
honeycomb_block
hopper
hopper_minecart
horn_coral
horn_coral_block
horn_coral_fan
horse_spawn_egg
husk_spawn_egg
ice
infested_chiseled_stone_bricks
infested_cobblestone
infested_cracked_stone_bricks
infested_mossy_stone_bricks
infested_stone
infested_stone_bricks
ink_sac
iron_axe
iron_bars
iron_block
iron_boots
iron_chestplate
iron_door
iron_helmet
iron_hoe
iron_horse_armor
iron_ingot
iron_leggings
iron_nugget
iron_ore
iron_pickaxe
iron_shovel
iron_sword
iron_trapdoor
item_frame
jack_o_lantern
jukebox
jungle_boat
jungle_button
jungle_door
jungle_fence
jungle_fence_gate
jungle_leaves
jungle_log
jungle_planks
jungle_pressure_plate
jungle_sapling
jungle_sign
jungle_slab
jungle_stairs
jungle_trapdoor
jungle_wood
kelp
ladder
lantern
lapis_block
lapis_lazuli
lapis_ore
large_fern
lava
lava_bucket
lead
leather
leather_boots
leather_chestplate
leather_helmet
leather_horse_armor
leather_leggings
lectern
lever
light_blue_banner
light_blue_bed
light_blue_carpet
light_blue_concrete
light_blue_concrete_powder
light_blue_dye
light_blue_glazed_terracotta
light_blue_shulker_box
light_blue_stained_glass
light_blue_stained_glass_pane
light_blue_terracotta
light_blue_wool
light_gray_banner
light_gray_bed
light_gray_carpet
light_gray_concrete
light_gray_concrete_powder
light_gray_dye
light_gray_glazed_terracotta
light_gray_shulker_box
light_gray_stained_glass
light_gray_stained_glass_pane
light_gray_terracotta
light_gray_wool
light_weighted_pressure_plate
lilac
lily_of_the_valley
lily_pad
lime_banner
lime_bed
lime_carpet
lime_concrete
lime_concrete_powder
lime_dye
lime_glazed_terracotta
lime_shulker_box
lime_stained_glass
lime_stained_glass_pane
lime_terracotta
lime_wool
llama_spawn_egg
lodestone
loom
magenta_banner
magenta_bed
magenta_carpet
magenta_concrete
magenta_concrete_powder
magenta_dye
magenta_glazed_terracotta
magenta_shulker_box
magenta_stained_glass
magenta_stained_glass_pane
magenta_terracotta
magenta_wool
magma_block
magma_cream
magma_cube_spawn_egg
map
melon
melon_seeds
melon_slice
milk_bucket
minecart
mojang_banner_pattern
mooshroom_spawn_egg
mossy_cobblestone
mossy_cobblestone_slab
mossy_cobblestone_stairs
mossy_cobblestone_wall
mossy_stone_brick_slab
mossy_stone_brick_stairs
mossy_stone_brick_wall
mossy_stone_bricks
mule_spawn_egg
mushroom_stem
mushroom_stew
music_disc_blocks
music_disc_cat
music_disc_chirp
music_disc_far
music_disc_mall
music_disc_mellohi
music_disc_pigstep
music_disc_stal
music_disc_strad
music_disc_wait
music_disc_ward
mutton
mycelium
name_tag
nautilus_shell
nether_brick
nether_brick_fence
nether_brick_slab
nether_brick_stairs
nether_brick_wall
nether_bricks
nether_gold_ore
nether_quartz_ore
nether_sprouts
nether_star
nether_wart
nether_wart_block
netherite_axe
netherite_block
netherite_boots
netherite_chestplate
netherite_helmet
netherite_hoe
netherite_ingot
netherite_leggings
netherite_pickaxe
netherite_scrap
netherite_shovel
netherite_sword
netherrack
note_block
oak_boat
oak_button
oak_door
oak_fence
oak_fence_gate
oak_leaves
oak_log
oak_planks
oak_pressure_plate
oak_sapling
oak_sign
oak_slab
oak_stairs
oak_trapdoor
oak_wood
observer
obsidian
ocelot_spawn_egg
orange_banner
orange_bed
orange_carpet
orange_concrete
orange_concrete_powder
orange_dye
orange_glazed_terracotta
orange_shulker_box
orange_stained_glass
orange_stained_glass_pane
orange_terracotta
orange_tulip
orange_wool
oxeye_daisy
packed_ice
painting
panda_spawn_egg
paper
parrot_spawn_egg
peony
petrified_oak_slab
phantom_membrane
phantom_spawn_egg
pig_spawn_egg
piglin_banner_pattern
piglin_brute_spawn_egg
piglin_spawn_egg
pillager_spawn_egg
pink_banner
pink_bed
pink_carpet
pink_concrete
pink_concrete_powder
pink_dye
pink_glazed_terracotta
pink_shulker_box
pink_stained_glass
pink_stained_glass_pane
pink_terracotta
pink_tulip
pink_wool
piston
player_head
podzol
poisonous_potato
polar_bear_spawn_egg
polished_andesite
polished_andesite_slab
polished_andesite_stairs
polished_basalt
polished_blackstone
polished_blackstone_brick_slab
polished_blackstone_brick_stairs
polished_blackstone_brick_wall
polished_blackstone_bricks
polished_blackstone_button
polished_blackstone_pressure_plate
polished_blackstone_slab
polished_blackstone_stairs
polished_blackstone_wall
polished_diorite
polished_diorite_slab
polished_diorite_stairs
polished_granite
polished_granite_slab
polished_granite_stairs
popped_chorus_fruit
poppy
porkchop
potato
powered_rail
prismarine
prismarine_brick_slab
prismarine_brick_stairs
prismarine_bricks
prismarine_crystals
prismarine_shard
prismarine_slab
prismarine_stairs
prismarine_wall
pufferfish
pufferfish_bucket
pufferfish_spawn_egg
pumpkin
pumpkin_pie
pumpkin_seeds
purple_banner
purple_bed
purple_carpet
purple_concrete
purple_concrete_powder
purple_dye
purple_glazed_terracotta
purple_shulker_box
purple_stained_glass
purple_stained_glass_pane
purple_terracotta
purple_wool
purpur_block
purpur_pillar
purpur_slab
purpur_stairs
quartz
quartz_block
quartz_bricks
quartz_pillar
quartz_slab
quartz_stairs
rabbit
rabbit_foot
rabbit_hide
rabbit_spawn_egg
rabbit_stew
rail
ravager_spawn_egg
red_banner
red_bed
red_carpet
red_concrete
red_concrete_powder
red_dye
red_glazed_terracotta
red_mushroom
red_mushroom_block
red_nether_brick_slab
red_nether_brick_stairs
red_nether_brick_wall
red_nether_bricks
red_sand
red_sandstone
red_sandstone_slab
red_sandstone_stairs
red_sandstone_wall
red_shulker_box
red_stained_glass
red_stained_glass_pane
red_terracotta
red_tulip
red_wool
redstone
redstone_block
redstone_lamp
redstone_ore
redstone_torch
repeater
repeating_command_block
respawn_anchor
rose_bush
rotten_flesh
saddle
salmon
salmon_bucket
salmon_spawn_egg
sand
sandstone
sandstone_slab
sandstone_stairs
sandstone_wall
scaffolding
scute
sea_lantern
sea_pickle
seagrass
shears
sheep_spawn_egg
shield
shroomlight
shulker_box
shulker_shell
shulker_spawn_egg
silverfish_spawn_egg
skeleton_horse_spawn_egg
skeleton_skull
skeleton_spawn_egg
skull_banner_pattern
slime_ball
slime_block
slime_spawn_egg
smithing_table
smoker
smooth_quartz
smooth_quartz_slab
smooth_quartz_stairs
smooth_red_sandstone
smooth_red_sandstone_slab
smooth_red_sandstone_stairs
smooth_sandstone
smooth_sandstone_slab
smooth_sandstone_stairs
smooth_stone
smooth_stone_slab
snow
snow_block
snowball
soul_campfire
soul_lantern
soul_sand
soul_soil
soul_torch
spawner
spectral_arrow
spider_eye
spider_spawn_egg
sponge
spruce_boat
spruce_button
spruce_door
spruce_fence
spruce_fence_gate
spruce_leaves
spruce_log
spruce_planks
spruce_pressure_plate
spruce_sapling
spruce_sign
spruce_slab
spruce_stairs
spruce_trapdoor
spruce_wood
squid_spawn_egg
stick
sticky_piston
stone
stone_axe
stone_brick_slab
stone_brick_stairs
stone_brick_wall
stone_bricks
stone_button
stone_hoe
stone_pickaxe
stone_pressure_plate
stone_shovel
stone_slab
stone_stairs
stone_sword
stonecutter
stray_spawn_egg
strider_spawn_egg
string
stripped_acacia_log
stripped_acacia_wood
stripped_birch_log
stripped_birch_wood
stripped_crimson_hyphae
stripped_crimson_stem
stripped_dark_oak_log
stripped_dark_oak_wood
stripped_jungle_log
stripped_jungle_wood
stripped_oak_log
stripped_oak_wood
stripped_spruce_log
stripped_spruce_wood
stripped_warped_hyphae
stripped_warped_stem
structure_block
structure_void
sugar
sugar_cane
sunflower
suspicious_stew
sweet_berries
tall_grass
target
terracotta
tnt
tnt_minecart
torch
totem_of_undying
trader_llama_spawn_egg
trapped_chest
trident
tripwire_hook
tropical_fish
tropical_fish_bucket
tropical_fish_spawn_egg
tube_coral
tube_coral_block
tube_coral_fan
turtle_egg
turtle_helmet
turtle_spawn_egg
twisting_vines
vex_spawn_egg
villager_spawn_egg
vindicator_spawn_egg
vine
wandering_trader_spawn_egg
warped_button
warped_door
warped_fence
warped_fence_gate
warped_fungus
warped_fungus_on_a_stick
warped_hyphae
warped_nylium
warped_planks
warped_pressure_plate
warped_roots
warped_sign
warped_slab
warped_stairs
warped_stem
warped_trapdoor
warped_wart_block
water
water_bucket
weeping_vines
wet_sponge
wheat
wheat_seeds
white_banner
white_bed
white_carpet
white_concrete
white_concrete_powder
white_dye
white_glazed_terracotta
white_shulker_box
white_stained_glass
white_stained_glass_pane
white_terracotta
white_tulip
white_wool
witch_spawn_egg
wither_rose
wither_skeleton_skull
wither_skeleton_spawn_egg
wolf_spawn_egg
wooden_axe
wooden_hoe
wooden_pickaxe
wooden_shovel
wooden_sword
writable_book
written_book
yellow_banner
yellow_bed
yellow_carpet
yellow_concrete
yellow_concrete_powder
yellow_dye
yellow_glazed_terracotta
yellow_shulker_box
yellow_stained_glass
yellow_stained_glass_pane
yellow_terracotta
yellow_wool
zoglin_spawn_egg
zombie_head
zombie_horse_spawn_egg
zombie_spawn_egg
zombie_villager_spawn_egg
zombified_piglin_spawn_egg



CompatibilityMinecraft 1.16
toMinecraft 1.18
Tags

1 Update Logs

Major Bugfixes in Multiplayer and switching of blocks. : by GoldenD60 12/29/2021 7:12:31 amDec 29th, 2021

Bugfixes:
  • Cannot be implemented in multiplayer worlds, changed '@p' to '@a[scores={[block name]=1}]'
  • Cannot morph without command privileges, fixed with changing '/function' to '/trigger'
  • Some blocks will be displayed as a sand block as a mistake has been made in blocks.txt, some blocks have '_of_' in the which is incorrect and has been dealt with.

Create an account or sign in to comment.

2
02/10/2022 9:40 am
Level 1 : New Miner
Davitotty1
Davitotty1 avatar
do minecraft but has custom morphs and you craft them like craftee videos
2
01/30/2022 2:01 pm
Level 1 : New Miner
econever
econever avatar
hwo can i desactivate it plz
1
02/01/2022 11:34 am
Level 30 : Artisan Pixel Puncher
GoldenD60
GoldenD60 avatar
/trigger unmorph
2
01/25/2022 9:45 pm
Level 1 : New Miner
KaapaxGames
KaapaxGames avatar
I try to use datapack but I can't give any commands. It keeps appearing in the chat "Unkdown scoreboad objective 'oak_planks' " Both in singleplayer and multiplayer. HELP!
1
01/27/2022 3:50 amhistory
Level 30 : Artisan Pixel Puncher
GoldenD60
GoldenD60 avatar
Did you install it in the data packs folder on the world folder? Make sure that you are using Minecraft 1.18 and typed in the block id correctly.
2
05/14/2021 12:04 pm
Level 9 : Apprentice Miner
Nuggetboi2119
Nuggetboi2119 avatar
Its great BUT on multiplayer worlds it doesn't work, every so often it will morph another player in the world randomly and it just makes the thing useless
1
12/29/2021 6:49 amhistory
Level 30 : Artisan Pixel Puncher
GoldenD60
GoldenD60 avatar
Hey Nuggetboi2119! I know it has been a long time, but I have now updated the datapack so that you can play with multiple people. I have also made it so you don't need command permissions you can just type '/trigger [​name of block]'. Hopefully, this helped!
2
05/05/2021 9:07 pm
Level 1 : New Miner
SCCP_Assasin
SCCP_Assasin avatar
Hello GoldenD60 Can you pls make make the mobs morhphing datapack because if you could make the block morphing you can also do the mobs morphing right
1
12/29/2021 6:50 am
Level 30 : Artisan Pixel Puncher
GoldenD60
GoldenD60 avatar
Ok... Thanks for the request.
2
04/15/2021 10:52 pm
Level 40 : Master Mage
Lightwave_Official
Lightwave_Official avatar
Can this work in 1.16.5 OptiFine Java Edition?
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome