small Request : A filter that makes schematics randomly spawn through-out the world , and a sort of biome creator . If that isn't too hard for any coders out there.
small Request : A filter that makes schematics randomly spawn through-out the world , and a sort of biome creator . If that isn't too hard for any coders out there.
I'm unsure if you can actually use schematics in filters. You can also not make new biomes unless you install mods, and even then you have to know the NBT value of the new biome and edit Sethbling's biome filter.
Im making a map, and i was adding lore to items with sethblings modify item strings filter. I messed up, an i tried just replacing it, but it just added more... So. i need a filter where you select a chest, run it, and it strips the items in the chest of lore. That would be helpful, i belive it should be simple to do, and it would be a big help. ( :
I am working on it right now.
Rollback Post to RevisionRollBack
Contributer to MCEdit-Unified Please quote me if you want me to see your post!
small Request : A filter that makes schematics randomly spawn through-out the world , and a sort of biome creator . If that isn't too hard for any coders out there.
Hi, is there any filters that can exclude/include what blocks to export to a schematic? Im exporting a huge area because of a error I did a week ago I didnt notice before now, so ima need to export all my lava from my backup, but having to delete all blocks except lava it is a pain.
(Repop wont work properly because its a custom map, doesent use any seed )
Hi, is there any filters that can exclude/include what blocks to export to a schematic? Im exporting a huge area because of a error I did a week ago I didnt notice before now, so ima need to export all my lava from my backup, but having to delete all blocks except lava it is a pain.
(Repop wont work properly because its a custom map, doesent use any seed )
Take your schematic. Run the "Delete all but one" filter. Import.
Take your schematic. Run the "Delete all but one" filter. Import.
(also, where did I put that filter...?)
Ah thanks! I found one that does it tho "Inverse replace" by Kopasz7
Btw do you know if there is a way to exclude 2 or more blocks as well? or is only one possible? Its no big deal if its only one tho, just gotta make a double export for still and active lava.
Ah thanks! I found one that does it tho "Inverse replace" by Kopasz7
Btw do you know if there is a way to exclude 2 or more blocks as well? or is only one possible? Its no big deal if its only one tho, just gotta make a double export for still and active lava.
Guys I have a little bit of a problem with my code. Take a look at it and I'll explain the problem. It's a silly one, that's for sure.
from random import randint
displayName = "Random Filter"
inputs = (
("Average thickness", 6)
)
def createHole(level, box, options):
thickness = options["Average thickness"]
randx = randint(box.minx+thickness, box.maxx-thickness)
randz = randint(box.minz+thickness, box.maxz-thickness)
randy = randint(box.miny+thickness, box.maxy-thickness)
thickness /= 2
level.setBlockAt(randx, randy, randz, 0)
level.setBlockAt(range(randx + thickness), randy, randz, 0) #The problem is in this line. The range function doesn't work properly.
def perform(level, box, options):
thickness = options["Average thickness"]
for x in xrange(box.minx, box.maxx):
for y in xrange(box.miny, box.maxy):
for z in xrange(box.minz, box.maxz):
block = level.blockAt(x, y, z)
if block == 1 or block == 3 or block == 27:
createHole(level, box, options)
level.markDirtyBox(box)
So it has a problem with iterating over randx and thickness. Maybe that happens because randx is a list and thickness is an integer I tried making thickness a list, still nothing. I don't know. Any help is much appreciated and helpful. Thanks.
rangeOfX = range(randx + thickness)
for x in rangeOfX:
level.setBlockAt(x, randy, randz, 0)
Nope, doesn't do it. Basically, just so you can understand it as good as possible, I want it to pick a random spot, make that spot an air block and I want it to create a hole of blocks where the radius is the thickness variable divided by two (just so it is a radius, cause I want it to go both ways, both x and -x).
Nope, doesn't do it. Basically, just so you can understand it as good as possible, I want it to pick a random spot, make that spot an air block and I want it to create a hole of blocks where the radius is the thickness variable divided by two (just so it is a radius, cause I want it to go both ways, both x and -x).
Ok so for some reason I didn't do it correctly and it didn't work. Today (right now actually) I just did the same thing and it worked for some weird reason. Anyway, thanks for your help Now I can continue! Basically, the mistake was here, instead of this:
rangeOfX = range(randx + thickness)
for x in rangeOfX:
level.setBlockAt(x, randy, randz, 0)
you must do this:
rangeX = range(randx, randx + thickness) # watch this line, we both did a mistake here (probably I confused you and you did it by accident)
level.setBlockAt(randx, randy, randz, 0)
for x in rangeX:
level.setBlockAt(x, randy, randz, 0)
But I have one problem. It doesn't do it for negative coords. E.g. it makes a line of air blocks along the x axis, but it doesn't do the same for the -x axis, cause I have a centerpoint and I want it to go both ways and create air blocks.
I need a filter that you select your command block and input an equation (x value+input) (y value+input) (z value+input) And you could clone that so every command block it does is + or - your input in each selection.
I decided to have a stab at making a filter - I wanted to make one that I had not seen done before so it's at least useful. The filter converts wool blocks to their appropriate stained clay blocks. I have not tested my code yet, as I am travelling with my Mac Book Pro and I would need to go to the trouble of getting X11 to work to run MCEdit, and then installing filters is still five times more complicated, but when I am back on my Win8 PC I will test my code.
The filter is on my GitHub repo if you're interested - https://github.com/awsmazinggenius/mceditfilters
Edit: I am having trouble with indenting a filter. The filter simply converts all ores into the respective ore blocks, including coal, redstone and nether quartz The error I am getting when selecting my filter tool is:
Exception while importing filter module orestoblocks. See console for details.
unindent does not match any outer indentation level (orestoblocks.py, line 23)
The forum dosen't seem to handle indents that well so the filter is on my repo on GitHub.
Thanks in advance
Edit: I am having trouble with indenting a filter. The filter simply converts all ores into the respective ore blocks, including coal, redstone and nether quartz The error I am getting when selecting my filter tool is:
Exception while importing filter module orestoblocks. See console for details.
unindent does not match any outer indentation level (orestoblocks.py, line 23)
The forum dosen't seem to handle indents that well so the filter is on my repo on GitHub.
Thanks in advance
The error is actually on line 44 in the GitHub repo. The error is that on the line 44, it has 2 extra spaces, so Python does not know to which statement it belonged. Just delete them, and it will work fine.
I need a filter that you select your command block and input an equation (x value+input) (y value+input) (z value+input) And you could clone that so every command block it does is + or - your input in each selection.
Edit: I am having trouble with indenting a filter. The filter simply converts all ores into the respective ore blocks, including coal, redstone and nether quartz The error I am getting when selecting my filter tool is:
Exception while importing filter module orestoblocks. See console for details.
unindent does not match any outer indentation level (orestoblocks.py, line 23)
The forum dosen't seem to handle indents that well so the filter is on my repo on GitHub.
Thanks in advance
On line 44, the indent is wonky.
DrRadical beat me to it though
The Meaning of Life, the Universe, and Everything.
Join Date:
2/7/2012
Posts:
46
Member Details
I have an idea for an MCEdit filter that would benefit us all. You choose a string ("%") to represent the section sign (§) and a string ("%n") to represent a newline sequence ("\n"), and it replaces the strings with the section sign and newline sequence where it can find them in all of your command blocks.
I'm unsure if you can actually use schematics in filters. You can also not make new biomes unless you install mods, and even then you have to know the NBT value of the new biome and edit Sethbling's biome filter.
I am working on it right now.
Please quote me if you want me to see your post!
For the first one, take a look at Block Schematic Swapper.
http://www.brightmoore.net/mcedit-filters-1/blockschematicswapper
Combined with Sprinkle and Drape you can do things like this:
Here is a tutorial:
The last PE update changed the chests n' it seems that they work like the PC ones now, MCEdit recognize a PE chest but can't initialize it or edit it.
(Repop wont work properly because its a custom map, doesent use any seed )
Take your schematic. Run the "Delete all but one" filter. Import.
(also, where did I put that filter...?)
Ah thanks! I found one that does it tho "Inverse replace" by Kopasz7
Btw do you know if there is a way to exclude 2 or more blocks as well? or is only one possible? Its no big deal if its only one tho, just gotta make a double export for still and active lava.
As far as I know only one is possible.
Ok, thanks for the help, appreciate it!
~Lazini.
MCEdit: Minecraft World Editor
MCEdit: Minecraft World Editor
MCEdit: Minecraft World Editor
you must do this:
But I have one problem. It doesn't do it for negative coords. E.g. it makes a line of air blocks along the x axis, but it doesn't do the same for the -x axis, cause I have a centerpoint and I want it to go both ways and create air blocks.
EDIT: I fixed it don't worry.
MCEdit: Minecraft World Editor
The filter is on my GitHub repo if you're interested - https://github.com/awsmazinggenius/mceditfilters
The forum dosen't seem to handle indents that well so the filter is on my repo on GitHub.
Thanks in advance
The error is actually on line 44 in the GitHub repo. The error is that on the line 44, it has 2 extra spaces, so Python does not know to which statement it belonged. Just delete them, and it will work fine.
Please describe your filter more clearly.
On line 44, the indent is wonky.
DrRadical beat me to it though