Skip to content

Instantly share code, notes, and snippets.

@minecraftmuse3
Last active April 23, 2016 20:44
Show Gist options
  • Save minecraftmuse3/eac96f872ce8ee6e5d2680283eb631da to your computer and use it in GitHub Desktop.
Save minecraftmuse3/eac96f872ce8ee6e5d2680283eb631da to your computer and use it in GitHub Desktop.
Base structure file
#include "SAOPEHouse.h"
SAOPEHouse::SAOPEHouse() {
//Construcor
}
void SAOPEHouse::postProcess(BlockSource* region, Random& random, BoundingBox const& bounds) {
generateBox(region, bounds, 0, 0, 0, 10, 10, 10, {Block::mCobblestone->blockId, 0}, {Block::mCobblestone->blockId, 0}, false);
}
void SAOPEHouse::postProcessMobsAt(BlockSource* region, Random& random, BoundingBox const& bounds) {
//Spawn the structures mobs here
}
//Add any additional stuff here
void addAdditionalSaveData(CompoundTag&) {
}
void readAdditionalSaveData(CompoundTag&) {
}
#pragma once
#include "mcpe/level/when/structure/StrucurePiece.h"
class SAOPEHouse : public StructurePiece {
public:
SAOPEHouse();
void postProcess(BlockSource*, Random&, BoundingBox const&);
void postProcessMobsAt(BlockSource*, Random&, BoundingBox const&);
void addAdditionalSaveData(CompundTag&);
void readAdditionalSaveData(CompoundTag&);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment