Skip to content

Commit

Permalink
Add block/item display names
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcap committed Jan 12, 2014
1 parent 0c78090 commit 0abe074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class ToolsPlugin
#game.plugins?.get('voxel-carry').inventory.give new ItemPile('plankOak', 10)

enable: () ->
@registry.registerBlock 'plankOak', {texture: 'planks_oak'}
@registry.registerBlock 'plankOak', {displayName: 'Oak Planks', texture: 'planks_oak'}

@registry.registerItem 'pickaxeWood', {itemTexture: '../items/wood_pickaxe', speed: 2.0, maxDamage:10} # TODO: fix path
@registry.registerItem 'pickaxeStone', {itemTexture: '../items/stone_pickaxe', speed: 10.0, maxDamage:100}
@registry.registerItem 'pickaxeWood', {displayName: 'Wooden Pickaxe', itemTexture: '../items/wood_pickaxe', speed: 2.0, maxDamage:10} # TODO: fix path
@registry.registerItem 'pickaxeStone', {displayName: 'Stone Pickaxe', itemTexture: '../items/stone_pickaxe', speed: 10.0, maxDamage:100}
@registry.registerItem 'stick', {itemTexture: '../items/stick'}

# recipes
Expand Down
3 changes: 3 additions & 0 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0abe074

Please sign in to comment.