MDungeon

Experimental MDungeon 1.0.0

Compatible API Versions
1.0.8
Contributors
MuffinHead
MDungeon
A room plugin with MRPGNPC's mob, custom dungeon settings and very little space occupied!!!

This plugin has language file!




This plugin can create different rooms at one place.Players in different rooms can't see each other!And mobs will just attack their room's mobs/players!
No waiting for empty room!


IMG_20210213_124703.jpg

qq_pic_merged_1613191678479.jpg




This plugin is depend MRPGNPC,so you need put MRPGNPC plugin in plugins first!

/md createRoomConfig [configname] To create a roomConfig!

/dungeon create Show a gui for player to create a new dungeon room.
/dungeon join Show a gui for player that room's public to join.(private rooms now can't join,because i haven't write code ;)
/dungeon quit To quit the room that now you stay.


Code:
Location:World:392.5909118652344:4.0:1364.4608154296875:275.16357421875:10.010116577148438
PlayersLimit: 4
LeastPlayers: 1
CountDown: 100
Conditions:
- summonMob-TestA~World~392.5909118652344~4.0~1364.4608154296875~275.16357421875~10.010116577148438-jump(1
- accumulativeKillMob-TestA~1-jump(2|accumulativeDeath-1-jump(3
- titleToAll-Finish~Finish!-Finish
- titleToAll-Defeat~Defeat!-Defeat
DefeatedMessages:
- '§cyou lose!!'
FinishedMessages:
- '§eyou won!!'
FinishedCommands:
- 50:give {all.name} 264 1&&tell {all.name} You have recived 1 diamon!
DefeatedCommands:
- 100:tell {all.name} You have recived nothing!
This is a easy room config:
Location is when you are a player in the server and send the command create a new RoomConfig, the location will record automatically.

PlayerLimit = Max Player,room's players wont > PlayerLimit.

LeastPlayer = When room's players > LeastPlayer,the dungeon will begin after the next function↓

CountDown countdown is tick,20tick = 1s ,so 100tick = 5s.

Conditions conditions is the most important part of this plugin! I will show you later.

Finish/Defeat Commands: probability(Max is 100, Integer):command&&command||command if command&&command these two command will run together.If command||command, these two commands will run 1 of them randomly.

How to write conditions to make a room fun?

conditionName-function1~function2~...-subCondition



summonMob-MobConfig~levelname~x~y~z~yaw~pitch To spawn a mob(MRPGNPC)

transportPlayers-levelname~x~y~z If you want to add yaw&pitch you can add '~yaw~pitch' after 'z'. Transport all players that in these room to a new location.

messageToAll-message Send message to all players.

titleToAll-title~subtitle Send title&subtitle to all players. subtitle is necessary,you can blank it but not to overlook.

accumulativeKillMob-MobConfig~amount If players have killed xx mob in this room for xx times.It will continue.

accumulativeDeath-times If players have died for xx times.It will continue.

accumulativeBeDamaged-amount If players have bedamaged for xx amount.It will continue.

setCountDown-tick Set count down for this room.

checkCountDown If count down in this room is <= 0.It will continue.




If you want to put two different condition to detect like If players can kill this mob ,they will win.If they died for 3 times, they will lose.

- accumulativeKillMob-TestA~1-jump(1|accumulativeDeath-1-jump(2
- titleToAll-Finish~Finish!-Finish
- titleToAll-Defeat~Defeat!-Defeat

Use | to put two condition to detect them together.

Subcondition always behind conditions.They control to jump to other conditions,finish this game or make players defeat.

subConditionName(function1/function2/...

jump(function let room read [function] line condition.
Ex:
- accumulativeKillMob-TestA~1-jump(1
- titleToAll-Finish~Finish!-Finish
Finish finish this game.And room will run finish messages and commands.

Defeat defeat this game.And room will run defeat messages and commands.

This is a experimental plugin,maybe some bugs or crashes.Plz report to me!

My discord:https://discord.gg/2qjdPwBp7m
  • Like
Reactions: Mewa
Author
MuffinHead
Downloads
44
Views
259
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from MuffinHead

  • MRPGNPC
    MRPGNPC
    An super amazing RPG mob plugin with many custom settings

Latest reviews

Thanks for making this plugin. I really like it.
Top