c0de paint 0.2.0Diese Seite auf Deutsch

CANVAS_ITEMS ​

The items that RENDER_CANVAS takes to build the canvas, as a HASH from item id to number: two slabs for a double slab, three candles for a block of three candles, a flower pot and the plant for a potted plant, a water bucket for water and for every waterlogged block. The upper halves of doors and plants, the heads of beds and piston heads take nothing, because the other part places them.

Parameters and results

  • canvas TYPE c0de_paint/cpaint/CANVAS: the canvas
  • result result HASH INTEGER: the items
  • result without_item HASH INTEGER: the blocks by id that no item places, like fire

Example

c0de
CALL c0de_paint/cpaint/CANVAS_ITEMS
    PARAMETER canvas c ;
    RESULT result shopping_list

Used in the tutorials ​