This mod will be dead as always (:sad.gif: ), but take a look at dan200's ComputerCraft ComputerCraft
Hey, seriously, read this wall of text before using my mod :tongue.gif:
Current News:
I Wont use FScript anymore, will be switching to Java scripting
Old News:
I will make a CPU Version which loads .class files. ISNT THAT AWESOME?
Redstone IO will be delayed, because FScript doesnt have the requirements i need
Weather will maybe be added to 2.3
The Programmable CPU Block is a mod which adds a new scripting language into Minecraft.
Whats new:
2.2:
Fixed the GUI Issue, Horray!
2.1:
Now using a "trigger" to run script (look under this Quote for sample script)
Updated to 1.5_01
Updated folder structure (Now place scritps in SAVES/(YOUR SAVE)/cpu/script)
New texture:
Sample Script that works with current version (Floodgate):
func onTrigger(int global, int x, int y, int z, int random)
BlockPos(x, y+1, z, 1)
if global==0
BlockSpawn()
ChatMessage("Floodgate ON")
return 1
elseif global==1
BlockDel()
ChatMessage("Floodgate OFF")
return 0
endif
endfunc
What language is it?
Its a language i found on the internet which is called FScript
Its very easy to learn and easy to implement into Java, Thats why i choosed it :biggrin.gif:
I got a black screeen while installing this. How do i fix?
Did you install Modloader, and removed META-INF?
Remember that this works on 1.5_01 and not on Multiplayer.
Screenshots and Videos or this didnt happen.
Gimme the current API Functions or this didnt happen again.
Break() #Stops the script
BlockPos(int X, int Y, int Z, int BlockID) #Set XYZ where the block BlockID shall spawn
BlockSpawn() #Spawn the block
BlockDel() #Replaces the selected block with Air
ChatMessage(String Chatmessage) #Add text to Chat
ChatGlowMessage(String Chatmessage) #Make the text glow (Like the "Now Playing: Cat")
PlayerHealth(int Health) #Change the health of the player
PlayerJump() #Make the Player Jump
PlayerHurt() #Hurt the player 2 Lifes
WorldTime(int Time) #Change the world time
I am planning on making this a standalone mod (Like AdventureCraft) so it would be easier for me to develop the CPU. I am also planning to make the BPU (Bot Processing Unit) Which can be used to control a block to do several things. And ofcource, i shall fix that bug so every CPU has the same script when you change 1 of the CPU's script
Just wait until we can program it to play minecraft... then we'll mod the mod to put the CPU inside the CPU, so we'll be playing minecraft inside of minecraft inside of minecraft inside of minecraft.
3 LAYERS, LEONARDO DICAPRIO.
Skills! I can think of some used (Password protected doors ect) But how powerfull do you reckon this will be?
1. I may add a function that show a gui where you can enter a password to do that.
2. I will try to make the CPU Block very powerful, and it will replace alot of mods :smile.gif:
Do you think it would be possible, perhaps if you got the source from CCTV, to make a sort of monitor that you can code to animate?
Then it's theoretically possible to make a small game within minecraft.
Do you think it would be possible, perhaps if you got the source from CCTV, to make a sort of monitor that you can code to animate?
Then it's theoretically possible to make a small game within minecraft.
You mean a GPU? I will look into it! :biggrin.gif:
if the all the inputs are not null (so all connected with an wire) then it does that function and it returns a boolean to the output. but you could like program that you could return an mob or... well something else.. or the void:P
with the return boolean it could function as an AND/OR/XOR/etc..
Nice idea! I may make this an another time, but first, i need to extend the CPU :smile.gif:
Do you think it would be possible, perhaps if you got the source from CCTV, to make a sort of monitor that you can code to animate?
Then it's theoretically possible to make a small game within minecraft.
My idea and snake would be the only game you could make...
Rollback Post to RevisionRollBack
Quote from alexwarhammer »
I for one welcome our new spambot overlords.
Quote from Breadlord »
Quote from Ausm »
"Any exposure is good exposure"
Except when old people streak.
Quote from Xuanz »
The Op has not replied. I think they just died/kidnapped/brought to hell/had their soul taken.
I have another idea that is like an extend on my first idea
that you could make eventhandlers like:
CPU script:
onPower(test1):2 this is called when the Activate-Input = true And When 2 Input wire's are connected(any state)
onHeavyHit(test2) this is called when an Heavy object hits CPU (mobs)
onHit(test3) this is called when anything hits the CPU (everything)
onLightHit(test4) this is called when a light object hits the CPU (items)
Do you think it would be possible, perhaps if you got the source from CCTV, to make a sort of monitor that you can code to animate?
Then it's theoretically possible to make a small game within minecraft.
My idea and snake would be the only game you could make...
Playing snake is nice when you're hiding from all the monsters outside :smile.gif:
I have no Idea about the feasibility, but perhaps you could add a slightly more advanced version of teleport signs.
For example, You give each computer a name (you'd probably want this anyways). Then, when redstone is put in, the player is teleported to another computer.
Another idea, if you wanted to advance it specifically for multiplayer, would be to use this to make battle carts. A battle cart could be crafted like:
[] []
[] []
[] []
Where is a CPU and is the mincart.
Then, like in the programming game C-Robots, the players would program their battle bot on when to fire, where to aim, where to search for others, and where to move.
Rollback Post to RevisionRollBack
I have it! I have the answer! Schrödinger's cat is a zombie!
ComputerCraft
Hey, seriously, read this wall of text before using my mod :tongue.gif:
Sample Script that works with current version (Floodgate):
Its a language i found on the internet which is called FScript
Its very easy to learn and easy to implement into Java, Thats why i choosed it :biggrin.gif:
Here
Here
Did you install Modloader, and removed META-INF?
Remember that this works on 1.5_01 and not on Multiplayer.
In:
Have a nice day!
Call of Duty- ON MINECRAFT? Download Ace of Spades here! http://u.bb/370053/aceofspades
I LOVE SHAROSE
I am not a ♠ but I play one on the internet.
3 LAYERS, LEONARDO DICAPRIO.
And i hope i can release a new version soon.
1. I may add a function that show a gui where you can enter a password to do that.
2. I will try to make the CPU Block very powerful, and it will replace alot of mods :smile.gif:
Then it's theoretically possible to make a small game within minecraft.
You mean a GPU? I will look into it! :biggrin.gif:
Nice idea! I may make this an another time, but first, i need to extend the CPU :smile.gif:
My idea and snake would be the only game you could make...
The bad thing is that FScript doesnt support Booleans, so integers could be used :smile.gif:
Anyways, nice idea!
Playing snake is nice when you're hiding from all the monsters outside :smile.gif:
For example, You give each computer a name (you'd probably want this anyways). Then, when redstone is put in, the player is teleported to another computer.
Another idea, if you wanted to advance it specifically for multiplayer, would be to use this to make battle carts. A battle cart could be crafted like:
[] []
[] []
[] []
Where is a CPU and is the mincart.
Then, like in the programming game C-Robots, the players would program their battle bot on when to fire, where to aim, where to search for others, and where to move.