Skip to content

1.20 Mob Support #25

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
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Maven CI/CD

on:
push:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14

- name: Build project with Maven
run: mvn -B package --file pom.xml
publish-job:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 14
- run: mvn -B package --file pom.xml -DskipTests
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v1
with:
name: Package
path: staging
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dynmap-mobs for 1.18+

HOW TO COMPILE:
use Maven to package with mvn package

27 changes: 17 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

Expand All @@ -42,32 +42,39 @@
<snapshots>
</snapshots>
<id>bukkit-repo</id>
<url>http://hub.spigotmc.org/nexus/content/groups/public/</url>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<releases>
</releases>
<snapshots>
</snapshots>
<id>dynmap-repo</id>
<url>http://repo.mikeprimm.com/</url>
<url>https://repo.mikeprimm.com/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.11-R0.1-SNAPSHOT</version>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
</dependency>
<!-- bStats -->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>us.dynmap</groupId>
<artifactId>dynmap-api</artifactId>
<version>2.2-SNAPSHOT</version>
<version>3.6-SNAPSHOT</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<version>1.4</version>
</project>
<version>1.8</version>
</project>
3 changes: 2 additions & 1 deletion src/main/assembly/package.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>bin</id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
Expand Down
1,010 changes: 787 additions & 223 deletions src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java

Large diffs are not rendered by default.

Binary file added src/main/resources/8x8/allay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/axolotl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/bee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/camel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/chest-boat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/cod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/drowned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/frog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/glowsquid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/8x8/goat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/hoglin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/illusioner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/panda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/parrot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/phantom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/piglin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/pillager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/pufferfish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/ravager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/salmon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/sniffer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/strider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/tadpole.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/traderllama.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/tropicalfish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/8x8/vanilladolphin.png
Binary file added src/main/resources/8x8/vanillafox.png
Binary file added src/main/resources/8x8/vanillagoat.png
Binary file added src/main/resources/8x8/vanillaturtle.png
Binary file added src/main/resources/8x8/wandering_trader.png
Binary file added src/main/resources/8x8/warden.png
Binary file added src/main/resources/8x8/zoglin.png
Binary file modified src/main/resources/8x8/zombiepigman.png
Binary file added src/main/resources/allay.png
Binary file added src/main/resources/axolotl.png
Binary file added src/main/resources/bee.png
Binary file added src/main/resources/camel.png
Binary file added src/main/resources/chest-boat.png
Binary file added src/main/resources/cod.png
209 changes: 137 additions & 72 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,90 +16,124 @@ update:
# Vehicle updates per tick (prevent lag spikes when large number of vehicles)
vehicles-per-tick: 20

mobs:
mocreat_mobs:
bear: false
bigcat: false
bird: false
boar: false
bunny: false
caveogre: false
crocodile: false
deer: false
dolphin: false
duck: false
fireogre: false
fishy: false
flamewraith: false
fox: false
goat: false
hellrat: false
horse: false
jellyfish: false
kitty: false
mouse: false
ogre: false
ostrich: false
polarbear: false
rat: false
ray: false
scorpion: false
shark: false
snake: false
turtle: false
werewolf: false
wildwolf: false
wraith: false

hostile_mobs:
blaze: true
cavespider: true
creeper: true
drowned: true
elderguardian: true
witherskeleton: true
stray: true
husk: true
zombievillager: true
enderdragon: true
enderman: true
endermite: true
evoker: true
vex: true
vindicator: true
creeper: true
skeleton: true
giant: true
ghast: true
zombiepigman: true
zombie: true
enderman: true
cavespider: true
spider: true
spiderjockey: true
silverfish: true
blaze: true
giant: true
guardian: true
hoglin: true
husk: true
illusioner: true
magmacube: true
phantom: true
piglin: true
pillager: true
ravager: true
shulker: true
silverfish: true
skeleton: true
slime: true
enderdragon: true
wither: true
spider: true
spiderjockey: true
stray: true
vex: true
vindicator: true
warden: true
witch: true
endermite: true
guardian: true
shulker: true
skeletonhorse: true
zombiehorse: true
wither: true
witherskeleton: true
zoglin: true
zombie: true
zombiepigman: true
zombievillager: true

passive_mobs:
allay: true
bat: true
camel: true
cat: true
chicken: true
chickenjockey: true
cod: true
cow: true
donkey: true
frog: true
golem: true
llama: true
mooshroom: true
mule: true
bat: true
ocelot: true
panda: true
parrot: true
pig: true
pufferfish: true
rabbit: true
salmon: true
sheep: true
cow: true
chicken: true
chickenjockey: true
skeletonhorse: true
snowgolem: true
squid: true
wolf: true
strider: true
sniffer: true
tadpole: true
tamedwolf: true
mooshroom: true
snowgolem: true
ocelot: true
cat: true
golem: true
traderllama: true
tropicalfish: true
vanilladolphin: true
vanillafox: true
vanillahorse: true
rabbit: true
vanillapolarbear: true
llama: true
vanillaturtle: true
villager: true
horse: false
fireogre: false
caveogre: false
ogre: false
boar: false
polarbear: false
bear: false
duck: false
bigcat: false
deer: false
wildwolf: false
flamewraith: false
wraith: false
bunny: false
bird: false
fox: false
werewolf: false
shark: false
dolphin: false
fishy: false
kitty: false
hellrat: false
rat: false
mouse: false
scorpion: false
turtle: false
crocodile: false
ray: false
jellyfish: false
goat: false
snake: false
ostrich: false
wandering_trader: true
wolf: true
zombiehorse: true
bee: true
glowsquid: true
vanillagoat: true
axolotl: true

vehicles:
# Specific minecart types
Expand All @@ -112,9 +146,40 @@ vehicles:
minecart: false
# Boats
boat: false
chest-boat: false

layer:
name: "Mobs"
mocreatlayer:
name: "Mo'Creatures Mobs"
# Make mobs layer hidden by default
hidebydefault: false
# ordering priority in layer menu (low goes before high - default is 0)
layerprio: 10
# (optional) if true, use tiny marker icons (8x8) - default is 16x16
tinyicons: false
# (optional) if true, don't show labels on mob icons
nolabels: false
# (optional) set minimum zoom level when mob icons should be visible (0=default, any zoom)
minzoom: 0
# (optional) include coordinate in label for icon
inc-coord: false

hostilelayer:
name: "Hostile Mobs"
# Make mobs layer hidden by default
hidebydefault: false
# ordering priority in layer menu (low goes before high - default is 0)
layerprio: 10
# (optional) if true, use tiny marker icons (8x8) - default is 16x16
tinyicons: false
# (optional) if true, don't show labels on mob icons
nolabels: false
# (optional) set minimum zoom level when mob icons should be visible (0=default, any zoom)
minzoom: 0
# (optional) include coordinate in label for icon
inc-coord: false

passivelayer:
name: "Passive Mobs"
# Make mobs layer hidden by default
hidebydefault: false
# ordering priority in layer menu (low goes before high - default is 0)
Expand All @@ -141,4 +206,4 @@ vehiclelayer:
minzoom: 0
# (optional) include coordinate in label for icon
inc-coord: false


Binary file added src/main/resources/drowned.png
Binary file added src/main/resources/frog.png
Binary file added src/main/resources/glowsquid.png
Binary file modified src/main/resources/goat.png
Binary file added src/main/resources/hoglin.png
Binary file added src/main/resources/illusioner.png
Binary file added src/main/resources/panda.png
Binary file added src/main/resources/parrot.png
Binary file added src/main/resources/phantom.png
Binary file added src/main/resources/piglin.png
Binary file added src/main/resources/pillager.png
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: dynmap-mobs
main: org.dynmap.mobs.DynmapMobsPlugin
version: "${project.version}"
api-version: "1.18"
author: mikeprimm
depend: [ dynmap ]

Binary file added src/main/resources/pufferfish.png
Binary file added src/main/resources/ravager.png
Binary file added src/main/resources/salmon.png
Binary file added src/main/resources/sniffer.png
Binary file added src/main/resources/strider.png
Binary file added src/main/resources/tadpole.png
Binary file added src/main/resources/traderllama.png
Binary file added src/main/resources/tropicalfish.png
Binary file added src/main/resources/vanilladolphin.png
Binary file added src/main/resources/vanillafox.png
Binary file added src/main/resources/vanillagoat.png
Binary file added src/main/resources/vanillaturtle.png
Binary file added src/main/resources/wandering_trader.png
Binary file added src/main/resources/warden.png
Binary file added src/main/resources/zoglin.png
Binary file modified src/main/resources/zombiepigman.png