Holographic Entity Types

From MBedwars
Revision as of 11:52, 26 May 2019 by Marcely1199 (talk | contribs)
Jump to navigation Jump to search

! Legacy Warning !

You are currently visiting a prehistoric website of the Marcely's Bedwars plugin for v4 and older.

In 2021, we released version 5 and completely overhauled the wiki. A lot of information that you find here likely won't be up-to-date anymore. You may find the updated wiki on: https://wiki.mbedwars.com

MBedwars uses a comlex, yet smart, system to send realistic appearing entities via packets.
They do NOT actually exist in your world! They'll be gone as soon you are killing them by punching them or by simply removing the plugin.
The adventages of this system are:

  • It's possible to change their type without killing and respawning them
  • They do not move. No blocking needed anymore
  • They are silent
  • Adds ability to use new techniques, which aren't supported by vanilla, such as NPC[self]
  • No additional arena saving is needed to keep them

NPC[<UUID of skin owner>]

Skins aren't supported for 1.7.8 and older
Spawns a player looking like entity.
The <UUID of skin owner> parameter must be written by the UUID of the skin owner.
With services such as mcuuid.net it's easily possible to optain those UUIDs.
The UUID by Notch for instance is: 069a79f4-44e9-4726-a5be-fca90e38aaf5
The plugin will then make a request to mojang and download the skin and cache it for later use.
A caching is needed as mojang is restricting how often you may download a skin per minute per ip.
The skin will be saved as a '.mcskin' file under \plugins\MBedwars\data\skincache\. It's not a problem to copy these files to an other server.
Replacing a file can require a restart/reload afterwards as the plugin is also caching the skins in the RAM for quicker access.

NPC[self]

Skins aren't supported for 1.7.8 and older
Does the same as NPC[UUID of skin owner], but instead takes the skin of the player who's seeing it.
No skin may be shown when offline-mode is disabled.
No skin caching is being used for this type.

Villager

ArmorStand{<parameters}