Skip to content

Releases: CoolLord22/StructureCondition

Initial Release!

11 Dec 17:54
38902c9

Choose a tag to compare

StructureCondition 1.0.0

A new add-on for OtherDrops that lets you check if a block location is within a Minecraft Structure.


Usage Information

Using StructureCondition is as simple as dropping it into your plugins/ folder! OtherDrops will automatically handle the registration of the condition for you.

IMPORTANT:
It is crucial to use the latest OtherDrops Beta Release for this plugin. It depends on key config parsing methods that are only in OtherDrops3.2.8-b415.jar and on.

To use the new condition in your drops file, you can use the structure: keyword how you normally define OD conditions. See an example below.

    ANY_BLOCK:
        - trigger: RIGHT_CLICK
          structure: [VILLAGE_PLAINS, VILLAGE_SAVANNA, IGLOO, DESERT_PYRAMID]
          message.server: Clicked on Structure

Depending on your Minecraft version, the values supported by this condition may change. If you define something that could not be found by the plugin, please check your console log for a list of valid Enums.

Unknown structure type: _____
Possible Types: PILLAGER_OUTPOST, MINESHAFT, MINESHAFT_MESA, MANSION, JUNGLE_PYRAMID, DESERT_PYRAMID, IGLOO, SHIPWRECK, SHIPWRECK_BEACHED, SWAMP_HUT, STRONGHOLD, MONUMENT, OCEAN_RUIN_COLD, OCEAN_RUIN_WARM, FORTRESS, NETHER_FOSSIL, ENDCITY, BURIED_TREASURE, BASTION_REMNANT, VILLAGE_PLAINS, VILLAGE_DESERT, VILLAGE_SAVANNA, VILLAGE_SNOWY, VILLAGE_TAIGA, RUINED_PORTAL, RUINED_PORTAL_DESERT, RUINED_PORTAL_JUNGLE, RUINED_PORTAL_SWAMP, RUINED_PORTAL_MOUNTAIN, RUINED_PORTAL_OCEAN, RUINED_PORTAL_NETHER, ANCIENT_CITY, TRAIL_RUINS, TRIAL_CHAMBERS
  • For versions 1.17-1.18, this list consists of the now-deprecated StructureType.
  • For versions 1.19-1.21, this list largely contains values from Structure.

Supported Versions:

StructureCondition is highly version dependent as new supporting methods must be manually added every time a new NMS version is released. As of now it is built and tested on the following Spigot versions:

  • NMS 1_17_R1:
    • 1.17-R0.1-SNAPSHOT
    • 1.17.1-R0.1-SNAPSHOT
  • NMS 1_18_R1:
    • 1.18-R0.1-SNAPSHOT
    • 1.18.1-R0.1-SNAPSHOT
  • NMS 1_18_R2:
    • 1.18.2-R0.1-SNAPSHOT
  • NMS 1_19_R1:
    • 1.19-R0.1-SNAPSHOT
    • 1.19.1-R0.1-SNAPSHOT
    • 1.19.2-R0.1-SNAPSHOT
  • NMS 1_19_R2:
    • 1.19.3-R0.1-SNAPSHOT
  • NMS 1_19_R3:
    • 1.19.4-R0.1-SNAPSHOT
  • NMS 1_20_R1:
    • 1.20-R0.1-SNAPSHOT
    • 1.20.1-R0.1-SNAPSHOT
  • NMS 1_20_R2:
    • 1.20.2-R0.1-SNAPSHOT
  • NMS 1_20_R3:
    • 1.20.3-R0.1-SNAPSHOT
    • 1.20.4-R0.1-SNAPSHOT
  • NMS 1_21_R1:
    • 1.21.1-R0.1-SNAPSHOT
    • 1.21.1-R0.1-SNAPSHOT
  • NMS 1_21_R2:
    • 1.21.2-R0.1-SNAPSHOT
    • 1.21.3-R0.1-SNAPSHOT
  • NMS 1_21_R3:
    • 1.21.4-R0.1-SNAPSHOT

Full Changelog: https://github.com/CoolLord22/StructureCondition/commits/1.0.0