lez celebratez i hope the next update has bpu (squeals with excitement)
:biggrin.gif: i hope too! Anyways, the BPU will spawn a blocky entity over the BPU and the BPU's code controls the Blocky entity :biggrin.gif:
wow editing the script while the game runs really does work
btw i really feel if ur gonna add bpus then u need to add something for the trigger like (in english) when (ex. x+1) is on run script
u know wut i mean right because then we could add d-pad into the game oh and a tele player that way when u use ur d-pad u can tele right back to the center of it
did i get the script talk down (got it from wario ware:diy)
EDIT: almost forgot if u add gpu make it so they combine if stacked in a x and z(up and left?) fashion btw ur mod is amazing and a rly hope ppl share their scripts here
I have a good suggestion:
Make a block that acts like a redstone torch and produces a current. With that feature, the CPU could easily control circuits with BlockPos!
I have a good suggestion:
Make a block that acts like a redstone torch and produces a current. With that feature, the CPU could easily control circuits with BlockPos!
or make a "redstone()" which creates a current from the cpu but yeah i think there need to be a way to link cpus
btw biohazard i barely read the docs for fscript but the discussion on this thread is helping me understand fscript and java
im guessing a variable is like "any number" and a loop is a "repeating function"
I have a good suggestion:
Make a block that acts like a redstone torch and produces a current. With that feature, the CPU could easily control circuits with BlockPos!
or make a "redstone()" which creates a current from the cpu but yeah i think there need to be a way to link cpus
btw biohazard i barely read the docs for fscript but the discussion on this thread is helping me understand fscript and java
im guessing a variable is like "any number" and a loop is a "repeating function"
loops are loops and variables can be a string or a integer
I have a good suggestion:
Make a block that acts like a redstone torch and produces a current. With that feature, the CPU could easily control circuits with BlockPos!
I have a good suggestion:
Make a block that acts like a redstone torch and produces a current. With that feature, the CPU could easily control circuits with BlockPos!
or make a "redstone()" which creates a current from the cpu but yeah i think there need to be a way to link cpus
btw biohazard i barely read the docs for fscript but the discussion on this thread is helping me understand fscript and java
im guessing a variable is like "any number" and a loop is a "repeating function"
loops are loops and variables can be a string or a integer
string a = "my string"
or
int a = 93
idk wut a string is but i made my first script using ur flood gate as an example
btw does it need to be indented?
heres my script
func onTrigger (int global, int x, int y, int z, int random)
PlayerJump()
PlayerHealth(1)
return 0
endif
endfunc
if i use
BlockPos(x, y+1, z, int random)
will it spawn a random block after i add blockspawn()
omg idea
BlockPos() #with coords
trigger()
the trigger makes it so if a player or entity touches it it will create a current or run a certain part of the script
but wut if u want just the player or entity? simple
TriggerMob()
or for player
TriggerPlayer()
feedback welcome
btw instead of the idea where u could make a block u could just proggram the world so power would come out of there u know so if u wanted to disguise dirt as power or an invisible power source
um how do i make make it so it spawns in a random coord such as "BlockPos(x, y int random, z) " or a random id
btw wut does (int global, int x, int y, int z, int random) after func onTrigger do
Simply amazing. I'm trying to make a working movie theater on it. Sadly, only one person could see a movie. But whatevz. This is awesome! Here's notch coming to worship you and give you his 4 chests full of diamonds.
Rollback Post to RevisionRollBack
If you can't count up to 2,047 on your fingers, you're an idiot.
Simply amazing. I'm trying to make a working movie theater on it. Sadly, only one person could see a movie. But whatevz. This is awesome! Here's notch coming to worship you and give you his 4 chests full of diamonds.
if multiplayer and cpu links are made u can switch movies out and watch em with friends
um how do i make make it so it spawns in a random coord such as "BlockPos(x, y int random, z) " or a random id
btw wut does (int global, int x, int y, int z, int random) after func onTrigger do
Well to make it spawn in a random location you could use BlockPos(x+random,y,z,1)
however this will most likely not work because the location of the position is most likely so far away that the location haven't been generated or isn't loaded.
(int global, int x, int y, int z, int random) this is the parameters the function will accept, first is the data type this can be int, double or string for fscript, int is short for integer, double is a number variable that can hold decimal numbers witch so far for this mod doesn't really have the big uses, string is a variable that can contain text strings.
After the data type comes the name of the variable witch is used as a reference to the data, after that you can Place a "," and declare the next variable.
Hope this helped :smile.gif:
um how do i make make it so it spawns in a random coord such as "BlockPos(x, y int random, z) " or a random id
btw wut does (int global, int x, int y, int z, int random) after func onTrigger do
Well to make it spawn in a random location you could use BlockPos(x+random,y,z,1)
however this will most likely not work because the location of the position is most likely so far away that the location haven't been generated or isn't loaded.
(int global, int x, int y, int z, int random) this is the parameters the function will accept, first is the data type this can be int, double or string for fscript, int is short for integer, double is a number variable that can hold decimal numbers witch so far for this mod doesn't really have the big uses, string is a variable that can contain text strings.
After the data type comes the name of the variable witch is used as a reference to the data, after that you can Place a "," and declare the next variable.
Hope this helped :smile.gif:
good to know to keep the (int global, int x, int y, int z, int random) there btw i meant to use it so i can spawn a block at any hight or get a random block with a random integer for the id
wait wut r text strings
um how do i make make it so it spawns in a random coord such as "BlockPos(x, y int random, z) " or a random id
btw wut does (int global, int x, int y, int z, int random) after func onTrigger do
Well to make it spawn in a random location you could use BlockPos(x+random,y,z,1)
however this will most likely not work because the location of the position is most likely so far away that the location haven't been generated or isn't loaded.
(int global, int x, int y, int z, int random) this is the parameters the function will accept, first is the data type this can be int, double or string for fscript, int is short for integer, double is a number variable that can hold decimal numbers witch so far for this mod doesn't really have the big uses, string is a variable that can contain text strings.
After the data type comes the name of the variable witch is used as a reference to the data, after that you can Place a "," and declare the next variable.
Hope this helped :smile.gif:
good to know to keep the (int global, int x, int y, int z, int random) there btw i meant to use it so i can spawn a block at any hight or get a random block with a random integer for the id
wait wut r text strings
well you have to divide the random variable with something because it can get over 60000 (i dont know the precise number), and a text string is a connection of characters.
well you have to divide the random variable with something because it can get over 60000 (i dont know the precise number), and a text string is a connection of characters.
BlockPos(x + random, y + random, z + random, 1)
Will set a random position where a rock can spawn. But really, i dont suggest using random because it can spawn everywhere on the map and crash :/
lez celebratez i hope the next update has bpu (squeals with excitement)
:biggrin.gif: i hope too! Anyways, the BPU will spawn a blocky entity over the BPU and the BPU's code controls the Blocky entity :biggrin.gif:
wow editing the script while the game runs really does work
btw i really feel if ur gonna add bpus then u need to add something for the trigger like (in english) when (ex. x+1) is on run script
u know wut i mean right because then we could add d-pad into the game oh and a tele player that way when u use ur d-pad u can tele right back to the center of it
did i get the script talk down (got it from wario ware:diy)
EDIT: almost forgot if u add gpu make it so they combine if stacked in a x and z(up and left?) fashion btw ur mod is amazing and a rly hope ppl share their scripts here
Make a block that acts like a redstone torch and produces a current. With that feature, the CPU could easily control circuits with BlockPos!
or make a "redstone()" which creates a current from the cpu but yeah i think there need to be a way to link cpus
btw biohazard i barely read the docs for fscript but the discussion on this thread is helping me understand fscript and java
im guessing a variable is like "any number" and a loop is a "repeating function"
loops are loops and variables can be a string or a integer
or
Actually, its a good idea! :biggrin.gif:
idk wut a string is but i made my first script using ur flood gate as an example
btw does it need to be indented?
heres my script
btw i have a lot of ideas if u want to hear them
um LUA?
hmm im gonna go make a script that makes cpus spawn cpus...wait a minute that would be aweshum
if only there was a command u could use to add a script to a cpu thats spawned by a cpu
wtf is global
BlockPos(x, y+1, z, int random)
will it spawn a random block after i add blockspawn()
omg idea
BlockPos() #with coords
trigger()
the trigger makes it so if a player or entity touches it it will create a current or run a certain part of the script
but wut if u want just the player or entity? simple
TriggerMob()
or for player
TriggerPlayer()
feedback welcome
btw instead of the idea where u could make a block u could just proggram the world so power would come out of there u know so if u wanted to disguise dirt as power or an invisible power source
btw wut does (int global, int x, int y, int z, int random) after func onTrigger do
if multiplayer and cpu links are made u can switch movies out and watch em with friends
Well to make it spawn in a random location you could use BlockPos(x+random,y,z,1)
however this will most likely not work because the location of the position is most likely so far away that the location haven't been generated or isn't loaded.
(int global, int x, int y, int z, int random) this is the parameters the function will accept, first is the data type this can be int, double or string for fscript, int is short for integer, double is a number variable that can hold decimal numbers witch so far for this mod doesn't really have the big uses, string is a variable that can contain text strings.
After the data type comes the name of the variable witch is used as a reference to the data, after that you can Place a "," and declare the next variable.
Hope this helped :smile.gif:
good to know to keep the (int global, int x, int y, int z, int random) there btw i meant to use it so i can spawn a block at any hight or get a random block with a random integer for the id
wait wut r text strings
well you have to divide the random variable with something because it can get over 60000 (i dont know the precise number), and a text string is a connection of characters.
Will set a random position where a rock can spawn. But really, i dont suggest using random because it can spawn everywhere on the map and crash :/