Skip to content

[UPDATE] Update project to 25w02a #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
30 tasks
Ayfri opened this issue Mar 25, 2025 · 0 comments
Open
30 tasks

[UPDATE] Update project to 25w02a #138

Ayfri opened this issue Mar 25, 2025 · 0 comments
Assignees
Labels
dsl Work on the main DSL module feature New feature or request refactor Refactor needed update Updates from game (usually snapshots)

Comments

@Ayfri
Copy link
Owner

Ayfri commented Mar 25, 2025

Minecraft version

25w02a

Changes

  • Update command text component format

    • Store text components inline as SNBT rather than as JSON wrapped in a string, for example, the item component minecraft:custom_name="{"text":"Renamed item"}" will become minecraft:custom_name={text:'Renamed item'}.
    • For commands like /tellraw and /title, use the new SNBT format.
    • Rename hover event field from hoverEvent to hover_event and update subfields:
      • For action show_text, rename field contents to text.
      • For action show_item, inline contents so that {action:'show_item',contents:{id:'minecraft:stick',count:2}} becomes {action:'show_item',id:'minecraft:stick',count:2}.
      • For action show_entity, inline contents and rename id to uuid and type to id.
    • Rename click event field from clickEvent to click_event and update subfields:
      • For action open_url, rename field value to url.
      • For actions run_command and suggest_command, rename field value to command, remove the / prefix no longer required.
      • For action change_page, rename field value to page and require an integer.
  • Update command syntax with new strict option

    • Modify fill, clone, setblock, and place template commands to accept a new optional strict flag.
    • Allow the replace option in the fill command to be followed by additional options rather than being terminal, but it can still only be used once.
  • Revise the crafting_transmute recipe type

    • Change the result field format to support an object with:
      • id: String
      • count: Int (default value: 1)
      • components: ComponentsRemovables
    • Enable applying a components patch to the transmuted item.
  • Add new item components for enhanced datapack configuration

    • Introduce the weapon component with Kotlin type:
      data class Weapon(val damagePerAttack: Int = 1, val canDisableBlocking: Boolean = false) : Component()
      
    • Introduce the potion_duration_scale component with type:
      data class PotionDurationScale(val value: Float) : Component()
      
      for scaling potion effect durations on items with potion_contents.
      Type is inlinable like max_damage.
    • Update the tool component by adding an optional field:
      • can_destroy_blocks_in_creative: Boolean? = null
  • Add data-driven Pig Variants support

    • Allow datapack authors to define pig variants in files under data/<namespace>/pig_variant/<id>.json.
    • Each pig variant must follow the Kotlin structure:
      data class PigVariant(
          val model: PigModel,
          val texture: String,
          val biome: InlinableList<BiomeArgument>
      )
      
    • Add the PigModel enum with values normal and cold.
    • Enable matching pig variants via a new pig entity sub-predicate in datapack functions.

Other

No response

@Ayfri Ayfri added the update Updates from game (usually snapshots) label Mar 25, 2025
@github-project-automation github-project-automation bot moved this to 📋 To do in Kore Mar 25, 2025
@Ayfri Ayfri self-assigned this Mar 25, 2025
@Ayfri Ayfri added feature New feature or request dsl Work on the main DSL module refactor Refactor needed labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dsl Work on the main DSL module feature New feature or request refactor Refactor needed update Updates from game (usually snapshots)
Projects
Status: 📋 To do
Development

No branches or pull requests

1 participant