empty-inventory
and shapes/line
set-game-mode
lambdaisland.witchcraft.shapes/arch
lambdaisland.witchcraft.matrix/extrude
lambdaisland.witchcraft.matrix/rotation-matrix
lambdaisland.witchcraft.matrix/cross-product
:material
to set-blocks
as a defaultlambdaisland.witchcraft.shapes/line
configurablenil
when asking for the material of a vector that doesn't have one, instead of erroring outitem-meta
more generally (read-only currently)lambdaisland.witchcraft.shapes/line
in the order of the line, instead of a setlambdaisland.witchcraft.shapes/line
satisfies?
calls in lambdaisland.witchcraft
,
leading to a big speedup for a lot of operationsmap->Location
for vectors that contain material/direction infoloc
for blocksset-block
accept vectors for consistencylambdaisland.witchcraft.adventure.text
, which contains a conversion
from Hiccup-like markup (a la lambdaisland.witchcraft.markup
) to a Adventure
Componentinto-inventory
as a convenience functiondespawn
create-explosion
util/when-class-exists
, in an attempt to appease cljdoc-block
, -block-state
, -set/get-custom-name
, -player
player
, display-name
, set-display-name
, get-block
locv
as an alias to xyz
listen-raw!
for when you want to skip the bean
call and get the raw bukkit evente/cancel!
for convenient cancelling of eventsprivate-chest
to the gallery, a mini-mod for when there's too much stealing on the serverlaunch!
to the more accurate launch-cmd
HasXYZ
, HasPitchYaw
, HasEntity
, and CanSpawn
protocolx
/y
/z
/pitch
/yaw
use the newer protocol + reflected
implementation generation approachspawn
work with anything that CanSpawn
, including Citizens NPCscursor/block-facing
:palette
option to set-blocks
, similar to how the palette works
with cursors:block-facing
option in the cursor, to force the direction
blocks face regardless of cursor direction.lambdaisland.witchcraft.cursor
: blocks
and
facing-direction?
.material-name
/mat
and xmaterial
to handle keywords and vectors
consistentlydisplay-name
, return nil
if the
type of object passed in does not provide a display-nameitem-stack
break-naturally
blockv
wc/location
check for HasLocation
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