(0D, 0D, 0D, 1D, 0.5D, 1D);
(D0, D0, D0, D1, D0.5, D1);
(0, 0, 0, 1, 0.5, 1);
(min0, min0, min0, max1, max0.5, max1);
(min(0), min(0), min(0), max(1), max(0.5), max(1));
(min 0, min 0, min 0, max 1, max 0.5, max 1);
(min (0), min (0), min (0), max (1), max (0.5), max (1));
(min0D, min0D, min0D, max1D, max0.5D, max1D);
(min 0D, min 0D, min 0D, max 1D, max 0.5D, max 1D);
(min D0, min D0, min D0, max D1, max D0.5, max D1);
Nothing seems to work. I cant adjust the blocks bounding box.
So far all my research has yielded this but I find no real life examples to guide me. I'm not a programmer so please dont shoot me for my efforts:import crafttweaker.events.IEventManager;import crafttweaker.block.IBlock;import crafttweaker.world.IWorld;import crafttweaker.world.IBlockPos;events.onRightClick(function(event as crafttweaker.event.PlayerInteractBlockEvent){useItem});<minecraft:TestItem>.stack.asBlock(TestBlock).worldObj.getBlock(int x, int y, int z);I have no idea how to assemble this piece of code.NOTE: It has to be item=block. I know a block can place my block, but my item is a yield from a TC casting recipe.Also this doesnt feel right. This looks a lot like I'm making a mod. Maybe I'm using code intended for devs using CT as a library?Ok forget about that. I imagine it would be too complex for most people. I realize due to the lack of youtube tutorials.
This instead is a simpler one but I can't get to change the blocks bounding box:
#loader contenttweaker
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Block;
var hotIronBlock = VanillaFactory.createBlock("hot_iron_block", <blockmaterial:iron>);
hotIronBlock.setAxisAlignedBB(0, 0, 0, 1, 0.5, 1);
hotIronBlock.register();
I'm just trying to make a darn slab for practice. The next step is making my custom block manipulating the bounding boxes.
Does anyone know how to do this?My error says the method is found but its not matching the (int, int, int, int, int, int). I dont get it
I've tried:
(0D, 0D, 0D, 1D, 0.5D, 1D);
(D0, D0, D0, D1, D0.5, D1);
(0, 0, 0, 1, 0.5, 1);
(min0, min0, min0, max1, max0.5, max1);
(min(0), min(0), min(0), max(1), max(0.5), max(1));
(min 0, min 0, min 0, max 1, max 0.5, max 1);
(min (0), min (0), min (0), max (1), max (0.5), max (1));
(min0D, min0D, min0D, max1D, max0.5D, max1D);
(min 0D, min 0D, min 0D, max 1D, max 0.5D, max 1D);
(min D0, min D0, min D0, max D1, max D0.5, max D1);
Nothing seems to work. I cant adjust the blocks bounding box.
Search it up on youtube!
Chad Maloney
Already did and that's why I'm here. No one has specific examples about this.
Either way it doesnt matter. The game works different than the version i'm used to 1.7.10. This will not work as I intended.
I finally solved it yesterday. For anyone interested:
This will pretty much create a slab since I adjusted (0.0d, 0.0d, 0.0d, 1.0d, 1.0d, 1.0d) to (0.0d, 0.0d, 0.0d, 1.0d, 0.5d, 1.0d)