Hey, I've got a simple scripting question
I need a script that when activated will check within a 10x6x10 area around the player for a specific block
If that block is found, then the entire 3x3x3 area around that specific block will be activated (assuming there are trigger blocks around it)
How would this be done, if it can be done
my map, the legend of zelda epic dungeons,must be on the map page on adventurecraft wikii but when I finished my map page, there
is writed This map's state has not been properly set, and thus has been hidden from the maps page.I verificate all
on my page but that continues to display this craps message! can people in charge of this site can help me?
first:
categorie:block
name:combo block
description:make if two blocks or more are activated in same moment,that activate other block.
color:brown
image:combo block
second:
categorie:block option
name:color gradation
description:create a gradation folder in the map and you may add in this folder some color gradation like this: gradation
there is adapted to work with the effect block
when there is activated(there is the same thing than overlay)
that change the used environnement color for remplace all pixel by the most ressembling color of the gradation. you can add a script that make when you undergo damage, a gradation is used 3 seconds!!!
please comment my idea!
my map, the legend of zelda epic dungeons,must be on the map page on adventurecraft wikii but when I finished my map page, there is writed This map's state has not been properly set, and thus has been hidden from the maps page.
You forgot to capitalize the A in Alpha
>.>
You're welcome
Hey, I've got a simple scripting question
I need a script that when activated will check within a 10x6x10 area around the player for a specific block
If that block is found, then the entire 3x3x3 area around that specific block will be activated (assuming there are trigger blocks around it)
How would this be done, if it can be done
It can be done. I'm about to go out for the day but I'll whip something up when I get back, which should be in about 8-9 hours.
It can be done. I'm about to go out for the day but I'll whip something up when I get back, which should be in about 8-9 hours.
Is there a command that scans the area around the player or a specific block?
Like for example
I'm thinking it should look something like
getBlockID/player (minX, minY, minZ, maxX, max Y, maxZ)
if getBlockID/player (minX, minY, minZ, maxX, max Y, maxZ) == blockID(??)
{
then world.triggerBlock/blockID(??) (minX, minY, minZ, maxX, max Y, maxZ)
}
Would anyone be willing to write me a script that causes your character to begin sprinting faster and faster after walking in one direction for a set amount of time?
Is there a command that scans the area around the player or a specific block?
Like for example
I'm thinking it should look something like
getBlockID/player (minX, minY, minZ, maxX, max Y, maxZ)
if getBlockID/player (minX, minY, minZ, maxX, max Y, maxZ) == blockID(??)
{
then world.triggerBlock/blockID(??) (minX, minY, minZ, maxX, max Y, maxZ)
}
You could try building something off of the Bow and Arrow Switch script!
var arrowTargetId = 19
for each(var entity in player.getEntitiesWithinRange(40))
{
if(entity.classType == "Arrow")
{
if(entity.isPlayersArrow && entity.inBlockID == arrowTargetId)
{
thisBlock3 = entity.inBlockCoords
world.triggerBlock(thisBlock3.x, thisBlock3.y, thisBlock3.z+1) // North
world.triggerBlock(thisBlock3.x, thisBlock3.y, thisBlock3.z-1) // South
world.triggerBlock(thisBlock3.x+1, thisBlock3.y, thisBlock3.z) // East
world.triggerBlock(thisBlock3.x-1, thisBlock3.y, thisBlock3.z) // West
world.triggerBlock(thisBlock3.x, thisBlock3.y+1, thisBlock3.z) // Up
world.triggerBlock(thisBlock3.x, thisBlock3.y-1, thisBlock3.z) // Down
}
}
}
And obviously remove any part the arrow plays and just like.... check player.position (not quite sure what you'd do with the rest, I'd have to think about it.. anyway I'm sure gabriel will be able to help more
You could try building something off of the Bow and Arrow Switch script!
var arrowTargetId = 19
for each(var entity in player.getEntitiesWithinRange(40))
{
if(entity.classType == "Arrow")
{
if(entity.isPlayersArrow && entity.inBlockID == arrowTargetId)
{
thisBlock3 = entity.inBlockCoords
world.triggerBlock(thisBlock3.x, thisBlock3.y, thisBlock3.z+1) // North
world.triggerBlock(thisBlock3.x, thisBlock3.y, thisBlock3.z-1) // South
world.triggerBlock(thisBlock3.x+1, thisBlock3.y, thisBlock3.z) // East
world.triggerBlock(thisBlock3.x-1, thisBlock3.y, thisBlock3.z) // West
world.triggerBlock(thisBlock3.x, thisBlock3.y+1, thisBlock3.z) // Up
world.triggerBlock(thisBlock3.x, thisBlock3.y-1, thisBlock3.z) // Down
}
}
}
And obviously remove any part the arrow plays and just like.... check player.position (not quite sure what you'd do with the rest, I'd have to think about it.. anyway I'm sure gabriel will be able to help more
Yep you can do that for triggering blocks or you can use:
Is there a command that scans the area around the player or a specific block?
Like for example
I'm thinking it should look something like
getBlockID/player (minX, minY, minZ, maxX, max Y, maxZ)
if getBlockID/player (minX, minY, minZ, maxX, max Y, maxZ) == blockID(??)
{
then world.triggerBlock/blockID(??) (minX, minY, minZ, maxX, max Y, maxZ)
}
To search for blocks with specific id use this in OnLoad and put in the x,y,z ranges:
RangeX = Put the range from player here for X
RangeY = Put the range from player here for Y
RangeX = Put the range from player here for Z
And Put this in OnUpdate. Replace ## with the id of the block:
var ppos = player.getPosition();
var px = Math.round(ppos.x);
var py = Math.round(ppos.y);
var pz = Math.round(ppos.z);
for (var i = px - RangeX; i < px + RangeX; i++)
{
for (var j = py - RangeY; j < py + RangeY; j++)
{
for (var k = pz - RangeZ; k < pz + RangeZ; k++)
{
if (world.getBlockID(i,j,k) == ##)
{
Code to run if there are blocks in range
}
}
}
}
Hey guys this is a really cool mod but I am wondering how do you get mods like too many items with Adventurecraft? plz reply to me because I am hopeless at these things.
Hey guys this is a really cool mod but I am wondering how do you get mods like too many items with Adventurecraft? plz reply to me because I am hopeless at these things.
Yep you can do that for triggering blocks or you can use:
triggerArea(minX, minY, minZ, maxX, maxY, maxZ)
To search for blocks with specific id use this in OnLoad and put in the x,y,z ranges:
RangeX = Put the range from player here for X
RangeY = Put the range from player here for Y
RangeX = Put the range from player here for Z
And Put this in OnUpdate. Replace ## with the id of the block:
var ppos = player.getPosition();
var px = Math.round(ppos.x);
var py = Math.round(ppos.y);
var pz = Math.round(ppos.z);
for (var i = px - RangeX; i < px + RangeX; i++)
{
for (var j = py - RangeY; j < py + RangeY; j++)
{
for (var k = pz - RangeZ; k < pz + RangeZ; k++)
{
if (world.getBlockID(i,j,k) == ##)
{
Code to run if there are blocks in range
}
}
}
}
I just reapropriated this script from the Heat damage script here: http://adventurecraf...iki/Heat_Damage Let me know if it works as I haven't tested it.
Alright well the range works right but now I need help with the code part
if (world.getBlockID(i,j,k) == 19)
{
world.triggerBlock( x, y, z+1) // North
world.triggerBlock( x, y, z-1) // South
world.triggerBlock( x+1, y, z) // East
world.triggerBlock( x-1, y, z) // West
world.triggerBlock( x, y+1, z) // Up
world.triggerBlock( x, y-1, z) // Down
}
Would this work?
I need all the Debug Blocks surrounding block 19 to be activated
I can't use specific coords because block 19 will be found throughout the map and each one activates a different thing
See where I'm going with this?
I was talking about the java, which the quote clearly shows. "JRE 1.5".
(Mod dimensions using: Twilight Forest, [looking for more that are 1.0.0 comp.]
I think he meant JAVA 1.6.
Link Removed
I found this on a forum site try it:
Forum site here: http://translate.google.com.au/translate?hl=en&sl=fr&u=http://forum.ubuntu-fr.org/viewtopic.php%3Fid%3D588731&ei=Wa8HT6HbN8eUiQf8ypG0CQ&sa=X&oi=translate&ct=result&resnum=10&ved=0CHsQ7gEwCQ&prev=/search%3Fq%3Dadventurecraft%2Bon%2Bubuntu%26hl%3Den%26safe%3Dactive%26biw%3D1366%26bih%3D624%26prmd%3Dimvns
Link Removed
(Mod dimensions using: Twilight Forest, [looking for more that are 1.0.0 comp.]
Nobody here known how to solve the problem so your only hope is to contact Cryect, but I don't think that is currently possible. Sorry :sad.gif:
Link Removed
This is now a meme
XD
From now on, when someone asks a stupid question that has an obvious answer, everyone should just respond with this
:3
I need a script that when activated will check within a 10x6x10 area around the player for a specific block
If that block is found, then the entire 3x3x3 area around that specific block will be activated (assuming there are trigger blocks around it)
How would this be done, if it can be done
is writed This map's state has not been properly set, and thus has been hidden from the maps page.I verificate all
on my page but that continues to display this craps message! can people in charge of this site can help me?
thanks
Alexarock3
first:
categorie:block
name:combo block
description:make if two blocks or more are activated in same moment,that activate other block.
color:brown
image:combo block
second:
categorie:block option
name:color gradation
description:create a gradation folder in the map and you may add in this folder some color gradation like this:
gradation
there is adapted to work with the effect block
when there is activated(there is the same thing than overlay)
that change the used environnement color for remplace all pixel by the most ressembling color of the gradation. you can add a script that make when you undergo damage, a gradation is used 3 seconds!!!
please comment my idea!
alexarock3
>.>
You're welcome
It can be done. I'm about to go out for the day but I'll whip something up when I get back, which should be in about 8-9 hours.
Link Removed
Like for example
I'm thinking it should look something like
(Would this even be possible?)
You could try building something off of the Bow and Arrow Switch script!
And obviously remove any part the arrow plays and just like.... check player.position (not quite sure what you'd do with the rest, I'd have to think about it.. anyway I'm sure gabriel will be able to help more
thanks you
I can't know what I making whithout you!!!
big thanks
alexarock3
Yep you can do that for triggering blocks or you can use:
To search for blocks with specific id use this in OnLoad and put in the x,y,z ranges:
And Put this in OnUpdate. Replace ## with the id of the block:
I just reapropriated this script from the Heat damage script here: http://adventurecraft.wikkii.com/wiki/Heat_Damage Let me know if it works as I haven't tested it.
Link Removed
This is just way too easy
Alright well the range works right but now I need help with the code part
Would this work?
I need all the Debug Blocks surrounding block 19 to be activated
I can't use specific coords because block 19 will be found throughout the map and each one activates a different thing
See where I'm going with this?