Started by
HarshMyMello
on
Topic category: Help with MCreator software
I'm working on a pvp-based mod that revolves around on creating structures with items. I thought my best bet was to use schematics, but I can't figure out how to rotate them based on direction you're facing. I haven't found any options related to it, so I'm wondering if it's even in mcreator at all. Is it?
I wouldn't use schematics. They're old and deprecated. For most uses, Structure Blocks are the way to go. There're tons of videos on how to use structure blocks in Minecraft; like this one I used.
So when you save a structure in Minecraft, it automatically generates a .NBT file with the entire structure in it. I suggest making the structures in the test environment because there's a feature in MCreator to import .NBT files straight from Minecraft but only if you use the test environment.
Anyways, at 4:45 he mentions the ability to rotate the structures using the LOAD structure block. Unfortunately, you can't rotate them in MCreator, so you have to make your structure, then copy-paste it 3 more times in all different directions (north south east west) and save them all as separate structures.
After that, it's as simple as making a procedure that detects which way the player is facing and placing the structure accordingly. Use the "Entity direction in deg. relative to S" block to test direction and "place at x y z schematic" block to place your structure.