Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.denizenscript.denizen.events.entity;

import com.denizenscript.denizen.events.BukkitScriptEvent;
import com.denizenscript.denizen.objects.EntityTag;
import com.denizenscript.denizen.objects.LocationTag;
import com.denizenscript.denizen.objects.MaterialTag;
import com.denizenscript.denizen.utilities.implementation.BukkitScriptEntryData;
import com.denizenscript.denizen.events.BukkitScriptEvent;
import com.denizenscript.denizencore.objects.ObjectTag;
import com.denizenscript.denizencore.scripts.ScriptEntryData;
import org.bukkit.event.EventHandler;
Expand All @@ -27,8 +27,8 @@ public class EntityFormsBlockScriptEvent extends BukkitScriptEvent implements Li
// For example, when a snowman forms snow.
//
// @Context
// <context.location> returns the LocationTag the block.
// <context.material> returns the MaterialTag of the block.
// <context.location> returns the LocationTag of the block.
// <context.material> returns the MaterialTag of what the block will become.
// <context.entity> returns the EntityTag that formed the block.
//
// -->
Expand Down Expand Up @@ -74,7 +74,7 @@ public ObjectTag getContext(String name) {
@EventHandler
public void onEntityFormsBlock(EntityBlockFormEvent event) {
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getBlock());
material = new MaterialTag(event.getNewState());
entity = new EntityTag(event.getEntity());
this.event = event;
fire(event);
Expand Down