[1.12.2] Snow is generating on non-full blocks
juraj-hrivnak opened this issue ยท 0 comments
This is for ContentTweaker-1.12.2-4.9.1
The issue
- These little stones are made with ContentTweaker.
- The problem is that the snow shouldn't generate on them. But I don't know how to achieve that.
Thanks.
This is my script:
#priority 13
#loader contenttweaker
import crafttweaker.item.IItemStack as IItemStack;
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Block;
import mods.contenttweaker.SoundType;
import mods.contenttweaker.AxisAlignedBB;
import mods.contenttweaker.DropHandler;
import mods.contenttweaker.ItemList;
// Stone
// Note that block material must be <barrier> to reach renedering without visibility in JourneyMap
var rock = VanillaFactory.createBlock("rock", <blockmaterial:barrier>);
rock.setAxisAlignedBB(AxisAlignedBB.create(0.2d, 0.0d, 0.2d, 0.8d, 0.06d, 0.8d));
rock.setDropHandler(function(drops, world, position, state, fortune) {
drops.clear();
drops.add(<item:divergentunderground:rock_stone>);
return;
});
rock.fullBlock = false;
rock.lightOpacity = 0;
rock.enumBlockRenderType = "MODEL";
rock.gravity = true;
rock.passable = true;
rock.blockLayer = "CUTOUT_MIPPED";
rock.replaceable = true;
rock.blockHardness = 0.01;
rock.blockResistance = 0.5;
rock.blockSoundType = <soundtype:stone>;
rock.register();