Closed 00Hrtz closed 3 years ago
How is light source implemented, i have creativeitemscontrol which can prevent stuff from being placed, the lantern model can be placed so it's not an issue as far as the model goes. it's when the light source is added.
nevermind, i've fixed it, i placed the light level attribute before the entity: armor_stand and it's working, there is an issue still though, when you place it after the entity line, it bugs out and fails to place, requiring a server restart.
if you want to try replicate it, create this lantern, add it all to the server, try to place it and it should refuse to place until you restart the server.
I created a model lantern and it places fine on the floor or ceiling and uses Paper as material, as soon as i add light_level attribute to it and run iareload, then place the lantern, everything that shares the material Paper becomes unplaceable .
Lantern Config: https://paste.helpch.at/cineqocofe.bash
No Errors in Console
[09:05:21 INFO]: Plugins (73): AdvancedAchievements, AdvancedEnchantments, AdvancedPortals, AdvancedRegionMarket, AnimatedScoreboard, Arcade, ArmorStandTools, AuctionGUIPlus, BattlePass, BedWars, BookNews, BuildBattle, ChatControlRed, CMILib, ColoredSigns, CraftingStore, CreativeItemControl, DeluxeMenus, DiscordSRV, Elevator, EpicBackpacks, EpicGuard, Essentials, FastAsyncWorldEdit (WorldEdit), HeadDatabase, HideAndSeek, HoloExtension, HolographicDisplays, HolographicPlaceholders, Images, ItemsAdder, Jobs, KeepChunks, Lib1711, LibsDisguises, LightAPI, LoneLibs, LuckPerms, MinigamesPerks, MobDisabler, Multiverse-Core, NashornPlus, Parkour, PartyAndFriends, PhatLoots, PlaceholderAPI, PlayerPoints, PlotSquared, PluginConstructorAPI, ProtocolLib, PyroFishingPro, PyroWeatherPro, QualityArmory, RandomEvents, RPGBank, SepareWorldItems, ServerNPC, ServerSigns, SetSpawn, ShopGUIPlus, SimpleStack, Spartan, SpecializedCrates, StackMob, Stylizer, SuperiorSkyblock2, SurvivalGames, TheLab, TradePlus, Vault, VoidTeleportPlus, WorldEditSUI, WorldGuard
Server version: Paper 1.17.1
Client version: MC 1.17.1
ItemsAdder version: 2.4.7 <- on purpose because of the errors already reported with later versions.
LightAPI Fork version: 3.5.2
LoneLibs version: 1.0.14
ProtocolLib version: #531