This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
viniciuslrangel's profile picture

[1.8]Creative Peripheral

Started by viniciuslrangel, 21 January 2016 - 09:23 PM
viniciuslrangel #1
Posted 21 January 2016 - 10:23 PM
This is a single peripheral that add minecraft world manipulation commands, such change block states(wip), change blocks, entity and blocks nbt(including players) and world properties.


Downloads: https://github.com/v...pheral/releases

Command already implements:

getPlayers([boolean uuid]) //Return all nick/uuid of the players
getWorlds() //Return all dimensions id and his names.
getWorldSeed() //Return world seed
getWorldTime(number dimension) //Return dimension time
isWorldBlockLoaded(number dimensionId, number x, number y, number z) //Check if the block's chunk is loaded
getBlock(number dimensionId, number x, number y, number z) //Return block name
getAllBlocksName() //Return table of all game's block
setBlock(number dimensionId, number x, number y, number z, name) //Set block
setBlockState //WIP
getBlockState(number dimensionId, number x, number y, number z) //Return table with blockstate
getBlockNbt(number dimensionId, number x, number y, number z) //Return table with nbt of this block, if he has TileEntity or false
setBlockNbt(number dimensionId, number x, number y, number z, json nbt) //Set block nbt using table getted in last command !!Warning. Can bug your game with invalid nbt!!
addBlockNbt(number dimensionId, number x, number y, number z, json nbt) //Plus block nbt with the argument nbt, I recommend you this instead setBlockNbt
getEntityList([number dimensionId, number x, number y, number z,] string match) //Get list with all entities UUID from the match minecraft's style (http://minecraft.gamepedia.com/Commands#Target_selector_arguments), default coord/world is 0,0,0,0
getPlayer(nick/uuid) //Return table with some player stats, but for more complexity action, use commands for change entity nbt.
getEntityNbt(UUID) //Return table with entity nbt.
setEntityNbt(UUID, nbt) //Set entity nbt !!Warning. Can bug your game with invalid nbt.!!addEntityNbt(UUID, nbt) //Plus entity nbt with the argument nbt, safer than setEntityNbt.
setEntityPosition(UUID, boolean relative, number x, number y, number z) //More efficient than change position via nbt.
setEntityRotation(UUID, boolean relative, number yaw, number pitch) //More efficient than change rotation via nbt.
setEntityVelocity(UUID, boolean relative, number x, number y, number z) //More efficient than change motion via nbt.


This mod still in WIP, I'll add new command and update to 1.8.9 later.

@Edit
This mod don't have texture yet.
@Edit2
Now have :D/>/>
@Edit3
Updated to 1.8.9 (check Github for new commands)


Sorry for my bad english.
Edited on 13 February 2016 - 03:33 PM
Waitdev_ #2
Posted 22 January 2016 - 02:16 AM
Now this is something i'm gonna use in my testing world! also, want some help with those textures? i'm not the best, but i can do something you can work off

edit: meant testing world, not survival world :P/>
wasn't thinking straight
Edited on 22 January 2016 - 03:12 AM
viniciuslrangel #3
Posted 22 January 2016 - 02:24 AM
Now this is something i'm gonna use in my survival world! also, want some help with those textures? i'm not the best, but i can do something you can work off
My friend made a model for me, I'll implement later, anyways thanks. :D/>