fill
API can now take a set of :materials
instead of a :pred
set-blocks
when using vectors:start
and :anchor
in set-blocks
inventory
now returns a sequence of maps, use get-inventory
if you want
the bukkit object.target-block
: find the block you are looking atblock-data
: get info about block properties as a map (post-flattening only)set-block-data
: complimentary setter, set block data as mapcursor/rotation
: helper for a previously hidden flag to add an extra
rotatio n to every blockmaterial
and material-name
to be more polymorphicset-blocks!
and cursor/build!
now both optionally take an :start
, to
make the pattern easier of having location-independent structure generatorsset-block
, set-blocks
, cursor/material
shapes/rectube
, handy for houses and lot of other stuff.set-lore
and set-display-name
now implicitly render markup(wc/default-world)
start-paper!
and lambdaisland.witchcraft.paper
.
This means you have now the option to use Witchcraft with a fully up-to-date
1.17.1 version of Minecraftloc
, like location
, but returns a Clojure map instead of a bukkit Location
xmaterial
to coerce to an XSeries XMaterial
instancebukkit/Block
lambdaisland.witchcraft.palette
:red-wool
instead of
[:wool 14]
, :crafting-table
instead of :workbench
)start!
is gone, use start-glowstone!
or start-paper!
players
is now called online-players
set-block-direction
is now called set-direction
set-block
no longer takes a vector of [material data]
, since this is going
away post-flattening. Variants can be specified with their flattened name
directly, direction can be provided in the map as a :direction
keyword.direction
now returns a direction keyword rather than a Vector. The former
is now called direction-vec
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close