Jump to content

CommandRunnermod [1.8] [1.9.4]


Recommended Posts

Posted

This is my first mod for minecraft. It's written for 1.8 and 1.9.4 and called Caleb's CommandRunnermod. It uses the new APIs. It runs files with a set of minecraft or mod commands for simple world generation support as a command "ExecuteFile. Any command that can be put in a server or command and run with execute. In the files the command ExecuteFile can call ExecuteFile files. With new 1.8 commands that allow placement of items in chests, and blockdata, etc, the commands become useful. I am new to forge. Lots of source experiment code. The source jar is there. A complete hack. www.commandrunnermod.com

 

The mod is here. http://www.commandrunnermod.com/CommandRunnermod-1.0.jar  http://www.commandrunnermod.com/CommandRunnermod-1.0.jar

 

(Hint use 1.8 command blocks for looping, or repeat sections, testfor, etc. )

 

A forge config file allows you to set the files directory (it's in .minecraft/config/CommandRunnermod.config).

 

 

 

Syntax is ExecuteFile File filename. A later version is planned to run from a URL. Files in the config defined directory can be named ".caleb" to show up in an autocomplete list.

 

 

I don't like adfly ads. Free is free.

 

Right now it's my http://commandrunnermod.com for the download files and notes. No ads.

 

width=689 height=300http://www.commandrunnermod.com/2014-12-30_14.32.18.png[/img]

 

Up tomorrow for sure.

 

Simple building.

# Hi, this calebmake5.caleb file is a simple building with 2 floors an opening and a chest
# it's used in city1.caleb
# always use /execute format for each line 
# comments are # then space
# clear space around me

# Note you can call command block and command blocks can call Executefill
# the /execute is optional on each line 
@p ~ ~ ~ fill ~5 ~-1 ~5 ~-5 ~10 ~-5 minecraft:air
# build floor
@p ~ ~ ~ fill ~5 ~-1 ~5 ~-5 ~-1 ~-5 minecraft:cobblestone
# walls 
@p ~ ~ ~ fill ~5 ~-1 ~-5 ~-5 ~10 ~-5 minecraft:cobblestone
@p ~ ~ ~ fill ~-5 ~-1 ~5 ~-5 ~10 ~-5 minecraft:cobblestone
@p ~ ~ ~ fill ~5 ~-1 ~5 ~5 ~10 ~-5 minecraft:cobblestone
@p ~ ~ ~ fill ~5 ~-1 ~5 ~-5 ~10 ~5 minecraft:cobblestone
# roof
@p ~ ~ ~ fill ~5 ~10 ~5 ~-5 ~10 ~-5 minecraft:cobblestone
# second floor
@p ~ ~ ~ fill ~5 ~5 ~5 ~-5 ~5 ~-5 minecraft:cobblestone
# first floor light 
@p ~ ~ ~ fill ~0 ~4 ~0 ~1 ~4 ~1 minecraft:glowstone
@p ~ ~ ~ fill ~0 ~8 ~0 ~1 ~8 ~1 minecraft:glowstone
#opening for door
#opening for door
@p ~ ~ ~ fill ~0 ~1 ~5 ~0 ~2 ~5 minecraft:air

@p ~ ~ ~ fill ~3 ~0 ~3 ~3 ~0 ~3 minecraft:chest

 

Mini city

 

# clear space around me - We are going z direction 
# build a city


@p ~ ~ ~ fill ~10 ~-1 ~-10 ~-10 ~10 ~50 minecraft:air
@p ~ ~ ~ fill ~10 ~-1 ~50 ~-10 ~10 ~120 minecraft:air
# fill site with a road of dark prismarine 
@p ~ ~ ~ fill ~10 ~-10 ~5 ~-10 ~0 ~120 minecraft:prismarine 1

@p ~ ~ ~ tp @p ~0 ~0 ~20
# build house 20 in z
@p ~ ~ ~ ExecuteFile File Calebmake5.caleb
@p ~ ~ ~ tp @p ~0 ~0 ~20
# build house 20 up
@p ~ ~ ~ ExecuteFile File Calebmake5.caleb
@p ~ ~ ~ tp @p ~0 ~0 ~20
# build house
@p ~ ~ ~ ExecuteFile File Calebmake5.caleb
@p ~ ~ ~ tp @p ~0 ~0 ~20
# build house
@p ~ ~ ~ ExecuteFile File Calebmake5.caleb
@p ~ ~ ~ tp @p ~0 ~0 ~20
# build floor
@p ~ ~ ~ ExecuteFile File Calebmake5.caleb

 

width=800 height=449http://www.commandrunnermod.com/2014-12-30_15.28.27.png[/img]

 

Still in work.

Posted

After looking at SPC , bukkit and worldedit components as well as forge I realize that this mod shouldn't have been needed to be written for 1.8. Sadly features like this vanished into the api lost horizon of DCMA, version upgrades, etc. The executefile file and executefile url features (like SPC macros), should be a sustaining feature of minecraft or at least forge.

 

The ability to share fragments or components of models for many amateurs is very hard to them in vanilla minecraft as well as a feature to look up components (houses, cities) from a catalog. It should just have been there.

  • 3 weeks later...
Posted

Seeking advice.

 

While this is running in a current version, I am considering the following features but the need and correct way to implement such features needs user advice.

 

I have the commands to draw a lighted bridge in the "caleb" files. (e.g. bridge.caleb) I'm thinking that it's useful to rotate the bridge before drawing using Z south facing as reference forward. I'd prefer to write bridge to be made of component commands (e.g. bridgelightedrailleft.caleb,bridgerailright.caleb;bridgeroadbed.caleb,bridgesupport.caleb) so I'd need to cascade rotations additively.

 

The mod will be (is) changed to have 2 modes, concatenate (like 1 command in a command block) and byline... each line is a command (like the user interface entry).

 

I am considering adding cardinal direction rotation for the execution in files (e.g.  playerFacing,rotateSouth,rotateNorth,rotateEast,rotateWest) and optional cascading rotation, just for the "fill" command in "caleb" files. ExecuteFile only contains minecraft execute commands and comments, or the ExecuteFile command.

 

e.g. /ExecuteFile File Bridge.caleb byline rotateWest

 

 

Only N,S,E,W directions, it's not particularly hard to do, but...

 

1) Is rotation necessary to executing fills in a command file?

2) How would cascading be supported for fills in component rotation? (A. Should I use highest rotation in the tree or B. add rotations for components, or C. only allow playerFacing on the highest call and then add rotations) or something else.

 

e.g. /ExecuteFile File Bridge.caleb byline rotateWest cascade

 

 

3) Should the mod support block rotation (e.g. detect and rotate minecraft stairs, dispensers, etc by datavalue) on fills?

4) what other commands other than fill are "essential" to usefully have commands for componentized builds.

 

Thanks Botjoe

 

Posted

I considered the following questions... I tried some,  here are results.

 

Rotation is useful, and the rotation in the coordinate (rx etc) needed the rotation of the commands in a file (rotatewest),  also. 

Also that rotation must in the future include block rotation (e.g. rotate the stair facing datavalues and the rotations have to be configurable to not just support minecraft:stone_stair but also yourmod:yourblock  ), and rotation must support other commands like tp, etc. Working on cascading next.

 

 

Posted

New version - Thanks to grey ghost now supporting stairs, and vanilla command language datavalue rotation.

 

File arrow.caleb

 

 

# hello

/execute @p ~ ~ ~ fill ~ ~1 ~2 ~ ~1 ~10 minecraft:cobblestone

/execute @p ~ ~ ~ fill ~-1 ~1 ~9 ~-1 ~1 ~9 minecraft:cobblestone

/execute @p ~ ~ ~ fill ~1 ~1 ~9 ~1 ~1 ~9 minecraft:cobblestone

/execute @p ~ ~ ~ fill ~0 ~2 ~10 ~0 ~2 ~10 minecraft:stone_stairs 3

 

 

 

width=800 height=411http://www.commandrunnermod.com/2015-01-27_19.22.24.png[/img]

Posted

This mod looks very cool! And I really like the idea! Just out of curiosity, and not to copy your mod code, is it possible i can see your source to read the file?

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

I like the ability to script out a chain of commands; this is very useful if it can be called by (eg) a command block as these only allow a single command, of course.  If building an Adventure map where you want to trigger complex actions via a command block, this would allow far more possibilities (I think Mojang dropped the ball a bit by not allowing a command block to run multiple commands)

 

For placing blocks, I think there is an easier way to do it than to script as a chain of commands.  May I suggest you take a look at the mod I've been working on for a couple of months now, the Builder's Helper  -- http://www.minecraftforge.net/forum/index.php/topic,26612.0.html -- this allows definition of structures using a 'blueprint' language, and can copy structures from the world as well as place them. 

 

It takes care of rotations, metadata, random selection, 'soft' blocks, block from other add-in modules, and (in the latest beta) randomising spawners and chest contents.  The source code is included in the zip file if you want to see how I achieved the rotations.

Posted

I considered using another language similar to your approach, and I just downloaded your mod. Neither approach invalidates the other, as there exists the need for both. Scripting structures by command language has some advantages but it's hard to visualize. Once  I have iterators by x y z, the scripting becomes more powerful. I'll look. Thanks for  the posting.

 

I'm not focusing on a mod as my end state, but to develop the concept for a vanilla minecraft suggestion, along with an eventgen command.

 

Very appreciated.

  • 1 year later...
Posted

I am thinking that this type of code should be in rolled into the forge. The ability to execute a command file as a script is a core feature of flexible modding.

Posted

I am thinking that this type of code should be in rolled into the forge. The ability to execute a command file as a script is a core feature of flexible modding.

  • 2 weeks later...
Posted

Updated for 1.9.4 forge, but a set of function to return the types of rotation for datavalues and tags would be useful.

 

My source is there, anyway. I'll think about hardening it to a set of functions.

  • 4 weeks later...
Posted

1.9.4 is Updated for 1.10.

 

fixes command completion. Sample .caleb files below.

 

Trefoil4.caleb (Creates a trefoil).

 

 

/execute @p ~ ~ ~ fill ~-1 ~-11 ~2 ~1 ~-9 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~-11 ~3 ~1 ~-9 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~-4 ~-1 ~1 ~-2 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~-4 ~-2 ~1 ~-2 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~-5 ~-2 ~1 ~-3 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~11 ~-2 ~1 ~13 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~11 ~-3 ~1 ~13 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~4 ~1 ~1 ~6 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~4 ~2 ~1 ~6 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-1 ~5 ~2 ~1 ~7 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~-11 ~2 ~0 ~-9 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~-3 ~0 ~0 ~-1 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~-3 ~1 ~0 ~-1 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~-4 ~-1 ~0 ~-2 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~-4 ~0 ~0 ~-2 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~11 ~-2 ~0 ~13 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~3 ~-1 ~0 ~5 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~3 ~0 ~0 ~5 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~4 ~0 ~0 ~6 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-2 ~4 ~1 ~0 ~6 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~-11 ~1 ~-1 ~-9 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~-11 ~2 ~-1 ~-9 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~-3 ~1 ~-1 ~-1 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~-3 ~2 ~-1 ~-1 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~11 ~-1 ~-1 ~13 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~11 ~-2 ~-1 ~13 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~3 ~-1 ~-1 ~5 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-3 ~3 ~-2 ~-1 ~5 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-4 ~-11 ~1 ~-2 ~-9 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-4 ~-3 ~2 ~-2 ~-1 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-4 ~-3 ~3 ~-2 ~-1 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-4 ~11 ~-1 ~-2 ~13 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-4 ~3 ~-2 ~-2 ~5 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-4 ~3 ~-3 ~-2 ~5 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~-11 ~0 ~-3 ~-9 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~-11 ~1 ~-3 ~-9 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~-2 ~3 ~-3 ~0 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~-3 ~3 ~-3 ~-1 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~11 ~-1 ~-3 ~13 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~11 ~0 ~-3 ~13 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~2 ~-3 ~-3 ~4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-5 ~3 ~-3 ~-3 ~5 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~-10 ~0 ~-4 ~-8 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~-11 ~0 ~-4 ~-9 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~-2 ~3 ~-4 ~0 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~-2 ~4 ~-4 ~0 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~10 ~0 ~-4 ~12 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~11 ~0 ~-4 ~13 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~2 ~-3 ~-4 ~4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-6 ~2 ~-4 ~-4 ~4 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~-1 ~4 ~-5 ~1 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~-10 ~-1 ~-5 ~-8 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~-10 ~0 ~-5 ~-8 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~-9 ~-1 ~-5 ~-7 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~1 ~-4 ~-5 ~3 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~10 ~0 ~-5 ~12 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~10 ~1 ~-5 ~12 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-7 ~9 ~1 ~-5 ~11 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~-1 ~-4 ~-6 ~1 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~-1 ~4 ~-6 ~1 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~-8 ~-1 ~-6 ~-6 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~-8 ~-2 ~-6 ~-6 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~-9 ~-1 ~-6 ~-7 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~0 ~-4 ~-6 ~2 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~0 ~4 ~-6 ~2 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~1 ~4 ~-6 ~3 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~8 ~1 ~-6 ~10 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~8 ~2 ~-6 ~10 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-8 ~9 ~1 ~-6 ~11 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-1 ~-4 ~-7 ~1 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-2 ~-4 ~-7 ~0 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-3 ~-3 ~-7 ~-1 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-3 ~-4 ~-7 ~-1 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-4 ~-3 ~-7 ~-2 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-5 ~-3 ~-7 ~-3 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-6 ~-2 ~-7 ~-4 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-6 ~-3 ~-7 ~-4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-7 ~-2 ~-7 ~-5 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~-8 ~-2 ~-7 ~-6 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~1 ~4 ~-7 ~3 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~2 ~4 ~-7 ~4 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~3 ~3 ~-7 ~5 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~3 ~4 ~-7 ~5 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~4 ~3 ~-7 ~6 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~5 ~3 ~-7 ~7 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~6 ~2 ~-7 ~8 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~6 ~3 ~-7 ~8 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~7 ~2 ~-7 ~9 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~-9 ~8 ~2 ~-7 ~10 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~-11 ~3 ~2 ~-9 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~-5 ~-2 ~2 ~-3 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~-5 ~-3 ~2 ~-3 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~-6 ~-3 ~2 ~-4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~11 ~-3 ~2 ~13 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~5 ~2 ~2 ~7 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~0 ~5 ~3 ~2 ~7 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~-10 ~3 ~3 ~-8 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~-11 ~3 ~3 ~-9 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~-6 ~-3 ~3 ~-4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~-6 ~-4 ~3 ~-4 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~10 ~-3 ~3 ~12 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~11 ~-3 ~3 ~13 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~6 ~3 ~3 ~8 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~1 ~6 ~4 ~3 ~8 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~10 ~-4 ~-2 ~12 ~-2 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~10 ~-5 ~-2 ~12 ~-3 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~10 ~-5 ~-3 ~12 ~-3 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~10 ~4 ~2 ~12 ~6 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~10 ~5 ~2 ~12 ~7 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~10 ~5 ~3 ~12 ~7 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~11 ~-3 ~-1 ~13 ~-1 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~11 ~-3 ~-2 ~13 ~-1 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~11 ~-4 ~-2 ~13 ~-2 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~11 ~3 ~1 ~13 ~5 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~11 ~3 ~2 ~13 ~5 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~11 ~4 ~2 ~13 ~6 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~-1 ~-1 ~14 ~1 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~-1 ~0 ~14 ~1 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~-2 ~-1 ~14 ~0 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~0 ~0 ~14 ~2 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~1 ~0 ~14 ~3 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~1 ~1 ~14 ~3 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~2 ~1 ~14 ~4 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~12 ~3 ~1 ~14 ~5 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~-10 ~3 ~4 ~-8 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~-10 ~4 ~4 ~-8 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~-6 ~-4 ~4 ~-4 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~-7 ~-4 ~4 ~-5 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~-9 ~4 ~4 ~-7 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~10 ~-3 ~4 ~12 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~10 ~-4 ~4 ~12 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~6 ~4 ~4 ~8 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~7 ~4 ~4 ~9 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~2 ~9 ~-4 ~4 ~11 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~3 ~-7 ~-4 ~5 ~-5 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~3 ~-8 ~4 ~5 ~-6 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~3 ~-9 ~4 ~5 ~-7 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~3 ~7 ~4 ~5 ~9 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~3 ~8 ~-4 ~5 ~10 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~3 ~9 ~-4 ~5 ~11 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-1 ~1 ~6 ~1 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-1 ~2 ~6 ~1 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-2 ~2 ~6 ~0 ~4 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-2 ~3 ~6 ~0 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-3 ~3 ~6 ~-1 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-5 ~4 ~6 ~-3 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-6 ~4 ~6 ~-4 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-7 ~-4 ~6 ~-5 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-7 ~4 ~6 ~-5 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~-8 ~4 ~6 ~-6 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~0 ~-1 ~6 ~2 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~0 ~0 ~6 ~2 ~2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~0 ~1 ~6 ~2 ~3 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~1 ~-1 ~6 ~3 ~1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~1 ~-2 ~6 ~3 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~2 ~-2 ~6 ~4 ~0 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~2 ~-3 ~6 ~4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~3 ~-3 ~6 ~5 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~5 ~-4 ~6 ~7 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~6 ~-4 ~6 ~8 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~7 ~-4 ~6 ~9 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~7 ~4 ~6 ~9 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~4 ~8 ~-4 ~6 ~10 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~-3 ~3 ~7 ~-1 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~-4 ~3 ~7 ~-2 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~-4 ~4 ~7 ~-2 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~-5 ~4 ~7 ~-3 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~-7 ~-4 ~7 ~-5 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~3 ~-3 ~7 ~5 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~4 ~-3 ~7 ~6 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~4 ~-4 ~7 ~6 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~5 ~-4 ~7 ~7 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~5 ~7 ~4 ~7 ~9 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~6 ~-7 ~-4 ~8 ~-5 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~6 ~7 ~4 ~8 ~9 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~7 ~-7 ~-4 ~9 ~-5 ~-2 minecraft:netherrack
/execute @p ~ ~ ~ fill ~7 ~7 ~4 ~9 ~9 ~6 minecraft:netherrack
/execute @p ~ ~ ~ fill ~8 ~-6 ~-3 ~10 ~-4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~8 ~6 ~3 ~10 ~8 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~9 ~-5 ~-3 ~11 ~-3 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~9 ~-6 ~-3 ~11 ~-4 ~-1 minecraft:netherrack
/execute @p ~ ~ ~ fill ~9 ~5 ~3 ~11 ~7 ~5 minecraft:netherrack
/execute @p ~ ~ ~ fill ~9 ~6 ~3 ~11 ~8 ~5 minecraft:netherrack

 

 

And a sample with command blocks.

 

# Hi, this sample.caleb file is a simple building with 2 floors an opening and a chest
# it's used in city1.caleb
# always use /execute format for each line
# comments are # then space
# clear space around me

# Note you can call command block and command blocks can call executefill
# the /execute is optional on each line
@p ~ ~ ~ fill ~5 ~-1 ~5 ~-5 ~10 ~-5 minecraft:air
# build floor
@p ~ ~ ~ fill ~5 ~-1 ~5 ~-5 ~-1 ~-5 minecraft:cobblestone
# walls
@p ~ ~ ~ fill ~5 ~-1 ~-5 ~-5 ~10 ~-5 minecraft:cobblestone
@p ~ ~ ~ fill ~-5 ~-1 ~5 ~-5 ~10 ~-5 minecraft:cobblestone
@p ~ ~ ~ fill ~5 ~-1 ~5 ~5 ~10 ~-5 minecraft:cobblestone
@p ~ ~ ~ fill ~5 ~-1 ~5 ~-5 ~10 ~5 minecraft:cobblestone
# roof
@p ~ ~ ~ fill ~5 ~10 ~5 ~-5 ~10 ~-5 minecraft:cobblestone
# second floor
@p ~ ~ ~ fill ~5 ~5 ~5 ~-5 ~5 ~-5 minecraft:cobblestone
# first floor light
@p ~ ~ ~ fill ~0 ~4 ~0 ~1 ~4 ~1 minecraft:glowstone
@p ~ ~ ~ fill ~0 ~9 ~0 ~1 ~9 ~1 minecraft:glowstone
#opening for door
@p ~ ~ ~ fill ~0 ~0 ~5 ~0 ~1 ~5 minecraft:air

@p ~ ~ ~ fill ~2 ~5 ~1 ~3 ~5 ~-1 minecraft:air
@p ~ ~ ~ fill ~3 ~0 ~3 ~3 ~0 ~3 minecraft:chest
@p ~ ~ ~ fill ~2 ~0 ~-3 ~3 ~0 ~-3 minecraft:stone_stairs 2
@p ~ ~ ~ fill ~2 ~1 ~-2 ~3 ~1 ~-2 minecraft:stone_stairs 2
@p ~ ~ ~ fill ~2 ~2 ~-1 ~3 ~2 ~-1 minecraft:stone_stairs 2
@p ~ ~ ~ fill ~2 ~3 ~0 ~3 ~3 ~0 minecraft:stone_stairs 2
@p ~ ~ ~ fill ~2 ~4 ~1 ~3 ~4 ~1 minecraft:stone_stairs 2
@p ~ ~ ~ fill ~2 ~5 ~2 ~3 ~5 ~2 minecraft:stone_stairs 2

@p ~ ~ ~ setblock ~0 ~0 ~5 minecraft:wooden_door 3
@p ~ ~ ~ setblock ~0 ~1 ~5 minecraft:wooden_door 9
@p ~ ~ ~ setblock ~-1 ~0 ~4 minecraft:prismarine 
@p ~ ~ ~ setblock ~-2 ~0 ~4 minecraft:redstone_lamp 
@p ~ ~ ~ setblock ~-1 ~1 ~4 minecraft:redstone_wire 0 replace
@p ~ ~ ~ setblock ~-1 ~0 ~3 minecraft:redstone_wire 0 replace
@p ~ ~ ~ setblock ~-3 ~0 ~3 minecraft:command_block 5 replace {Command:say hello}

@p ~ ~ ~ setblock ~-2 ~0 ~3 minecraft:lever 13 replace 
# sorry I don't yet rotate nbt tags inside command blocks

 

 

 

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.