#Custom Lectern

3 messages · Page 1 of 1 (latest)

raven rootBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

limber nimbus
#

To my knowledge...Adding blocks is a little more involved than adding items, because you have to define a new block, but also refer to its model and textures in the .minecraft\kubejs\assets folder. You'll need:

  1. A startup script to define the new block (see the KubeJS docs for how to do this),
  2. A texture or several (probably an edited version of the vanilla Lectern textures) in kubejs\assets\your_mod_namespace_here\textures
  3. A JSON model definition in kubejs\assets\your_mod_namespace_here\models

The JSON model file is easier than it sounds, because you're just reusing the parent model (block/lectern), followed by assigning textures to each of that block model's named sides. I don't remember how you find out the names of those sides, though...

#

Here's an example of the model JSON for a simple, cubic block I made with different side textures:
{ "parent": "minecraft:block/cube", "textures": { "up": "kubejs:block/herbal_tea_block_up_down", "down": "kubejs:block/herbal_tea_block_up_down", "north": "kubejs:block/herbal_tea_block_north_south", "south": "kubejs:block/herbal_tea_block_north_south", "east": "kubejs:block/herbal_tea_block_east_west", "west": "kubejs:block/herbal_tea_block_east_west", "particle": "kubejs:block/herbal_tea_block_east_west" } }