开源软件名称(OpenSource Name):nhajratw/minecraft_api开源软件地址(OpenSource Url):https://github.com/nhajratw/minecraft_api开源编程语言(OpenSource Language):Ruby 100.0%开源软件介绍(OpenSource Introduction):A Ruby API for the Raspberry Pi version of minecraft SetupPrerequisites : Install the gem using the classic command : gem install minecraft_api Then, setup your code by importing the require 'minecraft_api'
# hostname should be the ip or hostname of your server.
# port defaults to 4711, but you can override it.
api = MinecraftApi.new(hostname) Playing around# Set a block somewhere
api.world.block(5,10,15,Block::WOOD)
# Teleport the player away
api.player.go(20,40,60)
# Place a colored wool
my_wool = Wool.new(Color.PURPLE)
api.world.block(1,5,10,my_wool) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论