resourcepack.ai
DOCS

Migrating

Moving from CraftEngine

RP Engine reads CraftEngine pack folders as they are, so you can move your items, furniture, blocks, images, emoji, sounds and recipes across without rewriting them.

  1. Copy a pack folder out of plugins/CraftEngine/resources/ into plugins/RPEngine/content/.
  2. Rename the folder to the namespace: its pack.yml declares (see the warning below).
  3. If the pack uses CraftEngine's templates, copy default_templates/ in too.
  4. Start the server, or run /rp reload, and read the console for warnings.
plugins/RPEngine/content/
  default/                 ← a CraftEngine pack folder, renamed to its namespace
    pack.yml
    configuration/         ← items, blocks, furniture, images, recipes...
    resourcepack/          ← its art, in any namespace, minecraft: included
  default_templates/       ← CraftEngine's templates, if the pack uses them

There is nothing to turn on. A folder with a pack.yml and a configuration/ folder is read as CraftEngine's, and a single CraftEngine file also works inside a pack of yours, which is handy for moving over a piece at a time. It is built against CraftEngine 26.9.

The folder is the namespace

The namespace is the first half of every ID (default:topaz). In RP Engine it is the folder's name, not the namespace: in pack.yml. CraftEngine's own default_assets declares namespace: default, so as it stands it loads as default_assets:topaz. Rename the folder to default and the ids match. The load warns once per namespace that differs.

Templates and version keys#

CraftEngine packs lean on templates, and RP Engine applies them: template: (one or a list) with arguments, overrides and merges, ${arg} and ${arg:-default} placeholders, and the typed arguments (conditions, lists, maps, self-increasing numbers, arithmetic expressions). Templates are shared across every loaded pack, as in CraftEngine. Most packs use CraftEngine's bundled default: templates, so copy its default_templates folder in beside them; a template that cannot be found is a warning naming it.

Version keys such as $$>=1.21.2:, $$<=1.21.1:, $$1.20.5~1.21.4: and $$fallback: are resolved for the server's version, and a::b: deep keys are nested, so a pack written for several versions loads the part meant for yours. A pack's subpacks: are chosen the same way.

What comes across#

CraftEngineRP Engine
iteman item
material, lore, unbreakable, enchantmentsthe same
item_name, custom_namename, with MiniMessage colors turned into color codes and <lang:...> keys resolved to their English text
attribute_modifiersattributes
food, max_damage, max_stack_size, enchantment_glint_overridefood, durability, stack, glow
model: as a path, a minecraft:model definition or an inline modelmodel, read from the pack's resourcepack/ where it already is
model: with select, condition or range_dispatchits default model
texture: / textures:the item's art; tools get a handheld model, several textures become layers
equippable and equipments:armor, drawn from the equipment texture it names
block_item with a block of the same ida custom block carrying the item's name
block state with auto_state: solid or a mushroom groupthe block, on note blocks or mushroom stems
block textures (1 to 6) or modelits model; textures become a cube, column, top-bottom or six-sided model
block hardness, correct_tools, place soundhardness, tool, sound
block luminancelight
block lootdrop: the item the table drops when mined normally
block states: properties, appearances and variantsproperties and appearances, state for state, each appearance's turn (x, y, uvlock) kept
an appearance with several modelsrandom:, a look picked as each is placed
a block whose appearances are a stair's, slab's, door's or trapdoor's state: (stairs_block, slab_block, door_block, trapdoor_block)that shape:, on the same vanilla block the pack took, so the ones already in a world stay. A grate or bulb hidden in a vanilla grate or bulb does the same
auto_state tripwire, sugar_cane, sapling and the like, or a plant behaviora plant, on cut tripwire
leaves_block, or a leaves auto_stateshape: grate, the see-through full block
crop_block, stem_block, sapling_block (grow_speed, light_requirement, bone meal)grow: on age or stage
falling_block · strippable_block (stripped) · simple_storage_block · lamp_blockfalls · strip · storage · shape: bulb
a right-click cycle_block_property, or toggleable_lamp_blockclick:, so a lamp or a safe switches its look
furniture, inline under furniture_item or on its ownplace:
ground, wall and ceiling variantssurface
rotation: any, four, eightfacing: free, 4 ways, 8 ways
interaction hitboxwidth and height
shulker hitboxsolid: true
seatseat
glowing_furniture lightlight
furniture lootdrop
item, block and furniture eventsactions, with particle as a particle step: see below
imagean icon, with its height and ascent
image grid (grid_size, or chars as rows)one icon per cell, <id>_<row>_<column> from 0, the way <image:id:row:column> counts
emoji with a :word: keywordan icon called word, so :word: works in chat with chat icons on
shaped, shapeless, smelting, blasting, smoking, campfire and stonecutting recipesrecipes, with vanilla and pack ingredients
smithing_transform and smithing_trim recipessmithing and smithing_trim recipes; merge_components: false turns off copy-data
brewing recipesbrewing recipes, which need Paper
shaped_transform and shapeless_transform recipesordinary shaped and shapeless recipes, with a warning: the result is made fresh rather than inheriting the source ingredient's data
sounda sound, with volume, pitch, stream and subtitle
resourcepack/copied into the pack RP Engine builds, as written

Art stays where CraftEngine keeps it. A pack that references minecraft:item/custom/ruby from resourcepack/assets/minecraft/ resolves with no file moved, and so does a model CraftEngine would generate from textures: it is written inline instead.

What does not#

Each of these is a warning naming the ID when the pack loads, so nothing is dropped silently.

Most of a world does not come across

Block and furniture definitions translate. Most of what is already placed in a world does not: CraftEngine stores its furniture its own way, and a block hidden in a note block, a tripwire or a mushroom took a vanilla state CraftEngine chose, where RP Engine hands out a spare state of its own. Those have to be rebuilt, and the load names each block it applies to.

Shapes are the exception. A stair, slab, door or trapdoor keeps the very vanilla block the pack took, so the ones already standing in a world are still those blocks after the move.

Block behaviors with no equivalent, each named with its reason: fences and fence gates, buttons and pressure plates (RP Engine has none of those to take over), spreading like grass, drawers and items shown on a block (storage: is the nearest), seats on blocks (a placed model's seat is the answer here), bouncing, particles from a standing block, chimes, budding, decaying, stacking, snowy variants, placement rules, dropped experience and biome tints. Also what a sapling or stem becomes when it has finished growing (a tree, a fruit), and entity_renderer. The block still loads.

Some of a block's states: a state's own settings (a different light or hardness per state), since an RP Engine block's states share one set; property values RP Engine blocks cannot have, which are drawn at their default; a block with more states than a note block's pool holds, whose extra states are placed as its first; and leaves' decay properties, which are the game's own rules. A toggleable_lamp_block switches its look on a click but gives no light; shape: bulb is the block whose light redstone switches.

Item settings and furniture interactions: fuel, repair items and the like, and furniture interactions. The item still loads.

Events and functions with nothing to land on: step and fall, a left click on a block or a piece (that is mining or breaking it here); functions such as titles, teleports and anything that switches a furniture variant or a block state other than by a right-click; a run with a delay; anything behind a condition other than a permission; and a function aimed at other players.

More than one of something: extra furniture elements, hitboxes, seats and lights, and the extra models of an item model definition. The first comes across and the warning names the rest.

Pinned characters: an image's char is ignored, because RP Engine hands out its own. Write the icon as :<namespace>:<id>: rather than the character.

Dye recipes, smithing recipes without a template or an addition (RP Engine's smithing table takes all three), and any recipe with a tag or a choice of ingredients. Those are skipped whole and named, rather than loaded with an ingredient missing.

Sounds that replace a vanilla one: put those in resourcepack/assets/minecraft/sounds.json.

Sections with no RP Engine equivalent: categories, jukebox songs, loot tables for vanilla blocks and mobs, paintings, advancements, world features and the rest. Each is one line in the load, with a count.

Entities: CraftEngine's entities: section is not a mob of its own. Each entry names an existing entity type (a vanilla mob, or one another plugin such as MythicMobs spawns) and gives every one of them attribute values and tags for CraftEngine's damage rules; there is no model, name or spawn in it. An RP Engine entity is a new mob wearing a model, so there is nothing for one to take, and the load says so. To put a model on mobs that already exist, bind one.

Good to know#

Seats are worth a look in game. CraftEngine measures a seat from the entity it mounts the rider on and RP Engine from where they sit, so seats are converted and the load says so. If a chair sits people slightly wrong, adjust its seat:.

English is what comes across. Names and lore that read a lang: key are resolved to their English text once, at load. A pack's other languages are noted in one warning.