// Define the properties for the falling clay block
event.create('ulszsurvival:falling_dirt',"falling")
.material('dirt')
.soundType(SoundType.ROOTED_DIRT)
.hardness(0.7)
.resistance(0.6)
.textureAll('minecraft:block/coarse_dirt')
.tagBoth("minecraft:mineable/shovel")
.tagBoth("artifacts:mineable/digging_claws")
.tagBoth("minecraft:sculk_replaceable_world_gen")
.tagBoth("minecraft:sculk_replaceable")
.tagBoth("minecraft:axolotls_spawnable_on")
.tagBoth("alexsmobs:seal_digables")
.tagBoth("alexsmobs:crocodile_spawns")
.tagBoth("minecraft:lush_ground_replaceable")
.tagBoth("alexsmobs:platypus_spawns")
.tagBoth("alexsmobs:fly_spawns")
.tagBoth("alexsmobs:roadrunner_spawns")
.tagBoth("alexsmobs:komodo_dragon_spawns")
.tagBoth("alexsmobs:lobster_spawns")
.tagBoth("alexsmobs:emu_spawns")
.tagBoth("alexsmobs:mimic_octopus_spawns")
.tagBoth("alexsmobs:alligator_snapping_turtle_spawns")
.tagBoth("alexsmobs:mungus_replace_mushroom")
.tagBoth("alexsmobs:leafcutter_pupa_usable_on")
.tagBoth("forge:dirt")
.tagBoth("alexsmobs:am_spawns")
.tagBoth("artifacts:mineable/digging_claws")
.tagBoth("minecraft:azalea_grows_on")
.tagBoth("alexsmobs:kangaroo_spawns")
.tagBoth("minecraft:dead_bush_may_place_on")
.tagBoth("minecraft:convertable_to_mud")
.tagBoth("minecraft:moss_replaceable")
.tagBoth("minecraft:nether_carver_replaceables")
.tagBoth("minecraft:enderman_holdable")
.tagBoth("minecraft:bamboo_plantable_on")
.tagBoth("immersive_weathering:sand_cave_floor")
.tagBoth("minecraft:overworld_carver_replaceables")
.tagBoth("minecraft:azalea_root_replaceable")
.tagBoth("alexsmobs:seal_spawns")
.tagBoth("minecraft:sculk_replaceable")
.tagBoth("minecraft:dirt")
.tagBoth("alexsmobs:anaconda_spawns")
.tagBoth("minecraft:sculk_replaceable_world_gen")
.tagBoth("alexsmobs:rattlesnake_spawns")
.tagBoth("minecraft:mineable/shovel")
.tagBoth("minecraft:big_dripleaf_placeable")
.randomTick(tick =>{
if (tick.block.down.id == "minecraft:air" || tick.block.down.id == "minecraft:cave_air"){
//this is kinda a dumb way to do it :P
}
else {
tick.block.set("minecraft:dirt")
console.info("Running random tick on dirt, its dirt now")
}
})
I want my falling dirt to become normal dirt when its on the ground.
Anyway to accomplish what i want without using random ticks since random ticks don't seem to run on falling blocks.