RedstoneFuture / missilewars

MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft
https://www.spigotmc.org/resources/62947
GNU General Public License v3.0
13 stars 9 forks source link

Reworking schematic equipment mgnt. + Adding shield schematics #112

Closed RedstoneFuture closed 10 months ago

RedstoneFuture commented 1 year ago

Goal: The real goal of this PR was to allow the shields to be handled as flexibly as the schematics, to have one or more shields on different maps. This feature has been missing on my server for a long time and is therefore useful in practice.

Overview about the changes:

Misc: Config generation, schematic pasting of missiles and shields, and the equipment randomizer was tested ingame. Facing rotation has only been implemented for missiles so far. This was not different before.


Most important changes:

I recommend looking at the 6 classes individually. The rest of the small things have been commented individually here in Github.

grafik


New Config:

[...]
missile:
  onlyBlockPlaceable: false
  onlyBetweenSpawnPlaceable: false
  northFacing: true
  eastFacing: true
  southFacing: true
  westFacing: true
  schematics:
  - egg: "CREEPER"
    down: 2
    dist: 2
    schematic: "Tomahawk.schematic"
    name: "&aTomahawk"
    occurrence: 3
  - egg: "BLAZE"
    down: 2
    dist: 2
    schematic: "Cruiser.schematic"
    name: "&eCruiser"
    occurrence: 2
  - egg: "SKELETON"
    down: 2
    dist: 2
    schematic: "Sword.schematic"
    name: "&7Sword"
    occurrence: 2
  - egg: "MUSHROOM_COW"
    down: 2
    dist: 2
    schematic: "Juggernaut.schematic"
    name: "&4Juggernaut"
    occurrence: 1
  - egg: "HORSE"
    down: 2
    dist: 2
    schematic: "Piranha.schematic"
    name: "&3Piranha"
    occurrence: 3
  - egg: "ENDERMAN"
    down: 2
    dist: 2
    schematic: "Tunnelbore.schematic"
    name: "&0Tunnelbore"
    occurrence: 1
shield:
  fly_time: 20
  schematics:
  - schematic: "shield.schematic"
    name: "&cShield"
    occurrence: 1
[...]