Skip to content

Instantly share code, notes, and snippets.

@progre
Last active August 29, 2015 14:23
Show Gist options
  • Save progre/860f4f9019f6d6f56f86 to your computer and use it in GitHub Desktop.
Save progre/860f4f9019f6d6f56f86 to your computer and use it in GitHub Desktop.
ComputerCraftからOpenComputersへのスクリプト移行メモ
  • getItemCount([slot]) → count([slot])
  • getSelectedSlot() → select()
  • getItemSpace([slot) → space([slot])
  • inspect() → geolyzer.analyze(3)
  • inspectUp() → geolyzer.analyze(1)
  • inspectDown() → geolyzer.analyze(0)
  • 左 → geolyzer.analyze(5)
  • 右 → geolyzer.analyze(4)
  • 後ろ → geolyzer.analyze(2) analyze戻り値の
{
  hardness,
  harvestLevel,
  name,
  color,
  metadata,
  harvestTool
}
  • getItemDetail
    • inventoryController.getStackInInternalSlot()に置き換え 戻り値
{
  name,
  damage,
  maxDamage,
  count → size,
  maxSize,
  hasTag,
  label,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment